Closed adamzapasnik closed 1 week ago
Thanks for the report, but we'd need some more information to investigate.
If you restart your machine, and keep an eye on the processes while doing things, then you can try find the steps for a reproducible case.
I did restart shortly after raising this issue and I see it's the same thing again
I get this 👇 if I kill one of them (logs btn shows an empty tab)
I believe this is the same issue as #1865, which we never managed to reproduce in order to fix. Can you share the logs printed to the Ruby LSP
channel in the Output
tab?
It seems like there's some sort of race condition when launching the language server. Is your Rails app at the root of the directory where you open VS Code?
i'm facing same issue. (I have 8 repositories with multi-root workspace)
Followings are the experiments I did:
'killall bundle' -> this kills all lsp processes (confirmed by using top)
reload window
with no open files -> launches 17 lsp processes
killall bundle
-> all of the processes are killed normally
opening any rb file while all lsp servers are killed -> Error: Connection is disposed. (Expected)
Description
I have multiple lsp processes running at the same time and killing my battery and freezing everything on updates? I'm just running vscode with a rails project opened, nothing unusual 🤷
Might be related to https://github.com/Shopify/ruby-lsp/issues/2446? But don't have time to investigate more, feel free to close if it's a duplicated issue.
Ruby LSP Information
User
Reproduction steps
Not sure?