Hey. I am trying to setup pants for our project bu...
# general
l
Hey. I am trying to setup pants for our project but get the following error even before setting anything up. I don’t even care about these files too much at this steps, so even just ignoring them somehow would work for me
pants count-loc ::
Copy code
Exception: Could not parse "integration_tests/lib/connected_socials/cassettes/test_fetch_account_connection_url[AccountNetworkType.TWITTER-https:/api.twitter.com].yaml" as a glob: PatternError { pos: 33, msg: "invalid range pattern" }
h
Is this a line from the
BUILD
file? Try commenting it out?
l
its not in BUILD file, its just a file in my path. I got around it by just excluding the folder in pants_ignore, but at one point will definitely want to add these files to pants
h
My guess is that some kind of escaping is missing in the path. (Disclaimer: I'm not a maintainer)
b
Paths can't have pathsep in them. Try searching this channel, someone had the same issue a few days ago
Although the error suggests that we're trying to parse it like a glob (invalid range) I wonder if open bracket is disallowed as well...
h
Yeah, this is a bug where we don't handle unusual path characters well.
Did we file an issue? I don't find one
but we should fix, clearly