-
Notifications
You must be signed in to change notification settings - Fork 28
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
Crashing on startup when connecting to the database #521
Comments
There is a somewhat suspicious |
Turned on LSP message debugging... I think there's something wrong with CodeLens. In the space of a minute, it sent 300 CodeLens requests which seems, excessive. Truncated log ...
|
I might try more things. This could very well be "my setup is broken somehow" but it definitely feels weird how the language server just stops. I wonder if the Rails Add on is having a bad time. |
Fwiw I'm seeing similar issues with my setup this morning. |
As a first step, please try downgrade to the previous VS Code release (find Ruby LSP in the extensions panel then Right Click-> Install Specific Version -> 0.8.12) and report if you're still seeing the issue. |
Also please check if you see this on a plain Ruby repo, or if it only happens for a Rails app. |
Did that. Still broken
Will do, but that'll be tomorrow. Bit late here now in Australia 😄 🇦🇺 |
On the terminal, if you run |
I've renamed the issue to better reflect what's currently known. |
Hi, @andyw8 . I have the same problem and tried what you said here:
It failed, really didn't connect to the db. That's because I don't use rails natively while developing. I do all my testing inside a docker container. I don't know if this helpful for you somehow. |
Thank you, that helps. #517 should help. |
We have merged a fix. To help us verify before shipping in the next release, please try tempoarily pointing your app's
(then run bundle and reload your editor) |
(I should move this issue to the |
@andyw8 Can confirm that fixed my problem! Also nicer error message too! I'm happy for this issue to be closed off. Before: Couldn't save files 😢
After: Can save files 🥳
|
Description
Ruby LSP Information
Suddenly since yesterday, when I save a ruby file it brings up the "Ruby LSP is formatting the document... " wait message and never actually completes. I think this is more related to the LSP server crashing but I can't prove it yet.
Downgrading the extension to v0.18.2 removes the "problem" so there's something going on. EDIT - It did not remove the problem.I need to actually do work so I'm keeping it at this version and when I get more time (shortly) I'll update this issue with all the diagnostics and debug information I can.
Raising this issue incase anyone else has strange crashes in v0.18.3
User
Reproduction steps
TBA
The text was updated successfully, but these errors were encountered: