Unintuitive process for re-enabling VSCode extension after a Ruby update #2411
Labels
bug
Something isn't working
help-wanted
Extra attention is needed
pinned
This issue or pull request is pinned and won't be marked as stale
Description
System: Ubuntu 24.04
Shell: Zsh
Ruby version: 3.3.4
Ruby version manager: rbenv
IDE: VSCode
Reproduction
After updating my project's Ruby version from 3.3.1 to 3.3.4, the extension stopped working with the following error:
Uninstalling, restarting extensions and reinstalling the extension didn't work.
Closing and reopening the project window did not work (although I didn't fully close vscode, there was another project open, maybe a full restart would have worked?)
Using
ctrl+shift+p -> Update language server gem
command in VS Code fixed the issue.I think the extension expected the
ruby-lsp
gem to be already installed through the custom gemfile inside.ruby-lsp
, and wasn't prepared for this. Regularbundle install
did nothing because it only works for gems in the project's gemfile.Ultimately it took me around 20 minutes to figure it out, not a big deal, but it could have been more, and there could be a way to improve this, either through code or documentation
The text was updated successfully, but these errors were encountered: