-
Notifications
You must be signed in to change notification settings - Fork 136
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
erlang ls with vscode stops working, uses 100% CPU when vscode is closed #1177
Comments
Thanks for reporting @hackerjones . Is the issue consistently or occasionally happening? Could you share your |
I have tried disabling and enabling different diagnostics such as dialyzer and crossref as well as various lenses without any improvement. It is quite consistent I cannot work more than 5 minutes without this happening. |
I have also noted that when exiting vscode while having the erlang_ls extension enabled. erlang_ls sometimes never appears to stop executing. If I reopen vscode I then get the following issue: |
This seems related or the same issue as #1155 ? |
For me this is happening occasionally, yet I was able to trace one of those occasions and reconstruct the following scenario.
This sequence of events causes I guess that adding a codepath to handle For the sake of completeness:
|
Also make sure that functions dealing with temporary group leader here have no chance to get stuck altogether. Fixes erlang-ls#1177.
Also make sure that functions dealing with temporary group leader here have no chance to get stuck altogether. Fixes erlang-ls#1177.
Proposed a fix in #1198. |
Describe the bug
While using erlang ls with vscode all functions stop working. Exiting vscode or doing a window reload will restore functionality.
If I exit vscode and look at top (htop) I can see erlang_ls using ~100% CPU. I have to use kill to terminate these processes.
The following line is seen in the server log when this happens:
[2022-01-19T13:30:13.152297-06:00] [info] noop_group_leader got [message={get,#Ref<0.967863121.2412249089.236661>,<0.139.0>}] [els_sup:noop_group_leader/0 L115] <0.135.0>
To Reproduce
Use erlang_ls with vscode
Expected behavior
Not to stop functioning and using ~100% CPU
Actual behavior
All functions stop working and when exiting vscode erlang_ls processes are still running using ~100% CPU
Context
erlang_ls
version (tag/sha):The text was updated successfully, but these errors were encountered: