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

Ensure all ruby-lsp dependencies are installed before launch #2730

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

vinistock
Copy link
Member

Motivation

One way launching the server may fail is if the user decided to uninstall one of our required dependencies for any reason.

For example, if you run gem uninstall prism and delete all installations, launching the language server will fail because rubygems will raise saying not all dependencies are satisfied.

Implementation

Our previous check was a bit too simple. We just verified if the ruby-lsp was present, but in fact we need to verify that all dependencies are installed or else launching will fail.

@vinistock vinistock added bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes labels Oct 16, 2024
@vinistock vinistock self-assigned this Oct 16, 2024
@vinistock vinistock requested a review from a team as a code owner October 16, 2024 20:57
@vinistock vinistock requested review from andyw8 and st0012 October 16, 2024 20:57
vscode/src/workspace.ts Show resolved Hide resolved
@vinistock vinistock force-pushed the vs-ensure-dependencies-are-installed branch from 707fe31 to 32585fe Compare October 17, 2024 13:22
@vinistock vinistock enabled auto-merge (squash) October 17, 2024 13:27
@vinistock vinistock merged commit 063b933 into main Oct 17, 2024
33 checks passed
@vinistock vinistock deleted the vs-ensure-dependencies-are-installed branch October 17, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants