Skip to content

Unintuitive process for re-enabling VSCode extension after a Ruby update #2411

Open

Description

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:

2024-08-05 16:22:52.632 [info] (api) rbenv: ruby-lsp: command not found

2024-08-05 16:22:52.648 [info] (api) 
The `ruby-lsp' command exists in these Ruby versions:

2024-08-05 16:22:52.649 [info] (api)   3.2.1
  3.2.2
  3.3.0
  3.3.1

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. Regular bundle 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp-wantedExtra attention is neededpinnedThis issue or pull request is pinned and won't be marked as stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions