-
Notifications
You must be signed in to change notification settings - Fork 52
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
Dynamic analysis stops with "`gsub': invalid byte sequence in US-ASCII (ArgumentError)" #81
Comments
Thanks for the report. It seems that one of your sources has wrong combination of magic comment and character code. Isn't the error raised when you run |
Hi, thanks for the quick reply. I have no explicit magic comments set. Also, I don't see any errors with MRI, but I might be looking in the wrong place: is there a specific command I can run to check? The only explicit encoding setting I have is in my application.rb, where I have: config.encoding = "utf-8". |
Could you try this: $ git clone https://github.com/yujinakayama/transpec.git
$ cd transpec
$ git checkout issue-81
$ cd /path/to/your-project
$ /path/to/cloned/transpec/bin/transpec Some |
It seems it does not reach that particular BaseRewriter code, since I'm still getting the exact same output as above; the "DEBUG" string is not written:
|
Ah, you are right. Now it should work. Please |
Yes! That worked great. Turns out I had a spec file with currency symbols in it. I added the "# encoding: UTF-8" comment to the top of that spec file and then the conversion went fine. This DEBUG info was very useful for finding the issue. Maybe it is an idea to add it as a command line switch. Thanks so much of your quick and great help! |
You're welcome :) Yeah, maybe I'll add some error handling for this to find the issues. |
When I run transpec, the execution stops in the dynamic analysis phase with the following stack trace:
I'm not sure how to proceed...
The text was updated successfully, but these errors were encountered: