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

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

Open
camiloforero opened this issue Aug 5, 2024 · 2 comments
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

Comments

@camiloforero
Copy link

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

@camiloforero camiloforero added the bug Something isn't working label Aug 5, 2024
@camiloforero camiloforero changed the title Unintuitive process for enabling VSCode extension after a Ruby update Unintuitive process for re-enabling VSCode extension after a Ruby update Aug 5, 2024
@st0012 st0012 added the help-wanted Extra attention is needed label Aug 23, 2024
@st0012 st0012 removed their assignment Aug 23, 2024
@Petercopter
Copy link

I think I just came across this when I updated from 3.3.4 to 3.3.5. I thrashed around for a bit, then did gem install ruby-lsp, restarted vscode, and saw it install the rest of what it needed.

Copy link
Contributor

github-actions bot commented Nov 4, 2024

This issue is being marked as stale because there was no activity in the last 2 months

@github-actions github-actions bot added the Stale label Nov 4, 2024
@vinistock vinistock added pinned This issue or pull request is pinned and won't be marked as stale and removed Stale labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants