Closed LiteracyFanatic closed 2 years ago
This could be related to an issue of vscode-languageclient
v7.x: https://github.com/microsoft/vscode-languageserver-node/issues/726#issuecomment-866052250 which is used by ionide-vscode-fsharp . The issue is fixed since vscode-languageclient v8.
Note I tried updating to vscode-langaugeclient@8.0.1
but build failed...
ERROR in ./node_modules/vscode-languageclient/lib/node/main.js 267:50 Module parse failed: Unexpected token (267:50)
const options = node.options ?? Object.create(null);
I think it is realted to that issue @vain0x. The FSAC LSP implementation recently took a fix around this that we haven't released yet, but I agree that updateing to the v8 version of the language client will be the correct fix. That'll be a multi-step operation, though, as the F# bindings need to be updated first.
This will be fixed by #1713
I am no longer experiencing this issue with Ionide v6.0.5.
Describe the bug
Closing and relaunching VS Code or executing the Reload Window command creates a new
fsautocomplete
process but does not kill existing ones. Over time, many processes are created and consume lots of memory.Steps to reproduce
Just close and reopen VS Code a few times or use the Reload Window command. Observe the instances of
fsautocomplete
in a process viewer.Expected behavior
All processes spawned by the extension close with it. Only one instance of
fsautocomplete
is present at a time.Machine info
Additional context
I captured logs of the active
fsautocomplete
processes using a small shell script,watch-ionide
. Observing the changes in PIDs from several runs, I noticed that when restarting VS Code completely has a tendency to eventually stabilize to a fixed number of running processes while reloading will keep increasing the number of processes without bound.reload.log restart.log
Here are the logs from the extension window for the same two trials.
extension-reload.log extension-restart.log
Not sure if it matters, but I'll mention that I launch VS code with
--extensions-dir="$XDG_DATA_HOME/vscode/extensions"
.