Ruby LSP memory leak #25118
Replies: 5 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
I'm assume this is likely an upstream It might be worth trying older versions of ruby-lsp in case there is a regression there: I'm not best sure how to instrument Sorry! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Created Ruby LSP issue Shopify/ruby-lsp#3258 |
Beta Was this translation helpful? Give feedback.
-
I'm trying to narrow down the Ruby LSP file indexing scope, maybe it will help. They have a configuration example for VSCode // PROJECT/.vscode/settings.json
{
"rubyLsp.indexing": {
"excludedPatterns": ["**/test/**/*.rb"],
"includedPatterns": ["**/bin/**/*"],
"excludedGems": ["rubocop", "rubocop-performance"],
"excludedMagicComments": ["compiled:true"],
},
} For Zed the correct place would be "lsp": {
"ruby-lsp": {
"initialization_options": {
...
"indexing": {
"excludedPatterns": ["**/test/**/*.rb"],
"includedPatterns": ["**/bin/**/*"],
"excludedGems": ["rubocop", "rubocop-performance"],
"excludedMagicComments": ["compiled:true"], |
Beta Was this translation helpful? Give feedback.
-
Summary
Experiencing random memory leaks when using Ruby LSP last few weeks. It resolves after
restart language server
command.I don't know how to reproduce it. I experience it from once in a few days. Seems there are no issues when using Solargraph.
LSP logs were lost after restart.
Zed logs somewhere around the memory leak
zed.log
Zed Version and System Specs
Zed: v0.173.9 (Zed)
OS: macOS 12.7.6
Memory: 16 GiB
Architecture: x86_64
Beta Was this translation helpful? Give feedback.
All reactions