-
-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backtrace_formatter.rb - invalid byte sequence in US-ASCII (ArgumentError) #2650
Comments
👋 Will need a bit more information to help here, this is likely an encoding error with the regular expression, so your config and command line usage would help |
Jon, I wanted to create an issue in case something else causes the same error. Sometime I'll investigate more, but I've got a few other 'fires' that need attending... |
I just ran the same tests on Appveyor, and I got the same error. I briefly looked at the code: rspec-core/lib/rspec/core/backtrace_formatter.rb Lines 8 to 20 in 77dbc84
I may try and adjust the code and see if anything changes, but the only way I know how to repo it is running the bundler test suite with ruby-head/trunk. There are a few parenthesis in the regex, and "The behavior is unspecified if any given pattern contains capture." Not quite sure exactly what's meant by that... |
I've always taken that to read as, "don't expect your captures to line up correctly" |
I haven't thought about possible solutions, but this may be due to how Azure Pipelines deals with ANSI escape sequences, which don't affect the displayed logs... Ok to close. |
Mm.. I'd like a fix here, even if its just us issuing a warning about invalid escape chars... |
(We know our Windows support isn't great, anything we can do to improve it is a good thing..) |
You're testing on Appveyor (maybe add 2.6 or trunk?), so you're doing fine. I wonder if Maybe something involving a |
At the moment we don't :/ https://github.com/rspec/rspec-core/blob/master/appveyor.yml#L34-L41 Added 2.6 : rspec/rspec-dev#220 |
I'd like to see if 2.6 has this issue for us, or otherwise replicate it on appveyor, @benoittgt do you want to take care of that? |
Bundler has some color 'add-ins' that are used in their testing, and the issue is only ocurring when bundler is tested as it exists in the ruby/ruby repo. I'm assuming the code in question is only called when a backtrace needs to be formatted. It may be a few days, but what I'll do is add a patch for |
Since 2.7 is out, I've opened #2688 and it failed hard https://ci.appveyor.com/project/rspec/rspec-core/builds/30139185 |
Subject of the issue
While running bundler tests in ruby/ruby (currently done with Azure Pipelines running an Ubuntu job and a MacOS job), the following error appears:
I work with trunk/master/2.7.0 and I've never come across this error before. Anyone have any ideas?
Your environment
Steps to reproduce
Run Ruby Azure Pipelines tests, the 'bundler' jobs'...
The text was updated successfully, but these errors were encountered: