castwide / solargraph

A Ruby language server.
https://solargraph.org
MIT License
1.89k stars 158 forks source link

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

Closed WayneNoschang closed 2 years ago

WayneNoschang commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

OK thank you 👍