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

Ruby-LSP and Ruby-LSP-Rails downgrade randomly #2947

Open
stathis-alexander opened this issue Dec 2, 2024 · 2 comments
Open

Ruby-LSP and Ruby-LSP-Rails downgrade randomly #2947

stathis-alexander opened this issue Dec 2, 2024 · 2 comments
Labels
bug Something isn't working vscode This pull request should be included in the VS Code extension's release notes

Comments

@stathis-alexander
Copy link

Description

Ruby LSP Information

This is a strange bug that I'm not sure how to reproduce, but I've been experiencing it for a while. Sometimes, the Ruby-LSP gem versions will randomly resolve and downgrade to v0.11.2. It seems to happen most often when I restart Ruby-LSP after updating the Gemfile or other gems. I am logging it here in case others are experiencing it also, or if others have figured out what causes and resolves it.

If I then cd into the .ruby-lsp directory and run bundle update, I can reverse the behavior.

I think it is related to the versions of other dependencies, but there's something weird about how they're setup so that they resolve incorrectly.

cd .ruby-lsp
❯ bundle update ruby-lsp
Fetching gem metadata from https://gems.graphql.pro/..
Fetching gem metadata from https://gems.contribsys.com/..
Fetching gem metadata from https://gem.fury.io/angellist/...
Fetching gem metadata from https://rubygems.pkg.github.com/angellist/..
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Resolving dependencies...
Using logger 1.6.2 (was 1.6.1)
Using ruby-lsp 0.11.2 (was 0.22.1)
Using ruby-lsp-rails 0.2.6 (was 0.3.27)
Note: ruby-lsp version regressed from 0.22.1 to 0.11.2
Bundle updated!
2 installed gems you directly depend on are looking for funding.
  Run `bundle fund` for details
❯ bundle update ruby-lsp
Fetching gem metadata from https://gems.graphql.pro/..
Fetching gem metadata from https://gems.contribsys.com/..
Fetching gem metadata from https://gem.fury.io/angellist/...
Fetching gem metadata from https://rubygems.pkg.github.com/angellist/..
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Resolving dependencies...
Using ruby-lsp 0.22.1 (was 0.11.2)
Using ruby-lsp-rails 0.3.27 (was 0.2.6)
Bundle updated!
2 installed gems you directly depend on are looking for funding.
  Run `bundle fund` for details
@stathis-alexander stathis-alexander added bug Something isn't working vscode This pull request should be included in the VS Code extension's release notes labels Dec 2, 2024
@andyw8
Copy link
Contributor

andyw8 commented Dec 3, 2024

👋 Thank you for the report.

Just to rule out anything obvious, can you ensure you're on the latest release of bundler?

@stathis-alexander
Copy link
Author

We only upgrade bundler versions every so often to prevent annoying lock file changes, but I think we did recently:

❯ bundler --version
Bundler version 2.5.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

No branches or pull requests

2 participants