-
Notifications
You must be signed in to change notification settings - Fork 37
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
warning: already initialized constant StringScanner::Version #102
Comments
Could you provide a way to reproduce this? |
I am also seeing the same thing on my Rails project:
I get this when I run my test suite - rspec. |
I've created a minified version of the project here: https://github.com/dabroz/strscantest But the strangest thing is that there have to be very specific circumstances to observe this problem:
|
Thanks for preparing a minified project. Why do you want to use |
Overall sure, but this happens even on a clean rbenv install, where only gems are the ones installed from the Gemfile. |
Could you show |
Bingo!
After pinning it:
it doesn't show the warning anymore. I had to pin rubocop to an earlier version (
So can we do anything if a newer version of a default gem is needed? |
The next REXML version that includes ruby/rexml#132 will change the situation. It relaxes required strscan version. |
Got the same message when running only rspec without bundle exec. The message appeared after going from ruby 3.1.6 to ruby 3.2.0. |
If |
This is not a strscan problem. |
When using this gem with ruby 3.3.1 I'm getting
The text was updated successfully, but these errors were encountered: