standardrb / vscode-standard-ruby

The official VS Code extension for the Standard Ruby linter and code formatter
Other
101 stars 7 forks source link

Ruby 3.2 unsupported #4

Closed aheumaier closed 1 year ago

aheumaier commented 1 year ago

On setting the standardrb path to ruby@3.2 results in

[client] Disabling because the extension does not support this version of the standard gem.
[client]   Version reported by `/opt/homebrew/opt/ruby@3.2/bin/ruby -v`: ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin22] (>= 1.24.3 required)
[client] Restarting language server...
[client] Disabling because the extension does not support this version of the standard gem.
[client]   Version reported by `/opt/homebrew/opt/ruby@3.2/bin/ruby -v`: ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin22] (>= 1.24.3 required)
gfguthrie commented 1 year ago

It's saying the version of the standard gem you have installed for Ruby 3.2 is not high enough.

searls commented 1 year ago

Yes, the issue here seems to be that you may have standardRuby.commandPath set to something that's resulting in the extension seeing your standardrb command as /opt/homebrew/opt/ruby@3.2/bin/ruby, so it's passing the version check before launching. Can you send your JSON config for every key starting with standardRuby.?