-
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
syntax_suggest CLI doesn't work when it is a standard gem #215
Comments
@andrykonchin and I noticed the same issue when updating to Ruby 3.2.4.
It would be good to fix this or to remove this executable if unnecessary. |
graalvmbot
pushed a commit
to oracle/truffleruby
that referenced
this issue
Jun 24, 2024
It's removed because it doesn't work. See ruby/syntax_suggest#215
@schneems @hsbt Could you look at this? It's still broken in 3.3.5:
|
Probably it should be |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The syntax_suggest CLI that ships in Ruby 3.3.0 and Ruby 3.2.3 fails:
To handle this case, I think syntax_suggest should rescue a LoadError failure in the
require_relative
call, and try to use a regular require. You can userequire File.join(RbConfig::CONFIG['rubylibdir'], 'syntax_suggest', 'api')
if you want to use an absolute path.The text was updated successfully, but these errors were encountered: