-
Notifications
You must be signed in to change notification settings - Fork 14
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
RSpec won't use syntax_suggest #171
Comments
The gem is included in Ruby 3.2.0 you don’t need to add it to your Gemfile. can you check with Ruby 3.2.0 and see if it still fails? |
I removed "syntax_suggest" from Gemfile and ran against Ruby 3.2.0: But the result did not change:
|
Thank you for the error report 🙏 I found the problem and possible solution. It's written here rspec/rspec-core#2990. TLDR is that rspec needs to re-raise the SyntaxError or the contents won't be written to the screen. I'm out on vacation at the moment but I hope there is enough information for someone to pick up the work and move forward. |
I wrote a sample RSpec code to test syntax_suggest and Ruby 3.2.0rc1: https://github.com/JunichiIto/syntax_suggest_sandbox
I have a wrong spec file:
https://github.com/JunichiIto/syntax_suggest_sandbox/blob/main/spec/sample_spec.rb
I added
gem "syntax_suggest"
to Gemfile and--require syntax_suggest
to.rspec
according to README.I ran
bundle exec rspec
but RSpec won't use syntax_suggest:CLI command works fine:
How can I use syntax_suggest when I ran
bundle exec rspec
?The text was updated successfully, but these errors were encountered: