Skip to content
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

Ruby parser version is included on each diagnostic message. #597

Closed
WayneNoschang opened this issue Sep 13, 2022 · 2 comments
Closed

Ruby parser version is included on each diagnostic message. #597

WayneNoschang opened this issue Sep 13, 2022 · 2 comments

Comments

@WayneNoschang
Copy link

WayneNoschang commented Sep 13, 2022

I get a message under each diagnostic about the ruby version parser. I honestly find this message distracting and would like to get rid of it.
Error occurs while using neovim in iTerm2 on MacOS. Neovim plugins and configuration includes nvim-lspconfig with default settings. Here are two examples showing the recurring message "(Using Ruby 3.0 parser; configure using TargetRubyVersion parameter, under AllCops)"
Screen Shot 2022-09-13 at 12 46 26 PM
Screen Shot 2022-09-13 at 12 51 03 PM
However, formatting messages do NOT have this issue...
Screen Shot 2022-09-13 at 12 54 55 PM
Screen Shot 2022-09-13 at 12 55 26 PM
I already tried to set the ruby version with a .rubocop.yml file and also made a .solargraph.yml config with default settings however nothing changed.
Screen Shot 2022-09-13 at 1 15 54 PM
Any help on this would be appreciated, thanks.

@grncdr
Copy link
Contributor

grncdr commented Sep 24, 2022

This message comes from the Rubocop syntax lint and not Solargraph, you should probably open an issue there. https://github.com/rubocop/rubocop/blob/00e7ac78fb83383ef537e9e08ecf2301a1427578/lib/rubocop/cop/lint/syntax.rb#L19-L24

@WayneNoschang
Copy link
Author

OK thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants