-
Notifications
You must be signed in to change notification settings - Fork 191
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
elixir-ls 0.20.0 Crashes occasionally #1080
Comments
I don’t see why it should not crash when its data folder is deleted while it is reading or writing to files there. Please explain what is you workflow and post a way to reproduce. |
hey @lukaszsamson thanks for the quick response! I'm not an expert in how everything is wired up in terms of the LSP but I'm using neovim through LazyVim and using the elixir-tools package to install elixir-ls. I tried a new phoenix app and after a few saves (format on save) the Lsp logs look like
I'm not sure how else I can help you but I'm willing to try! If there's anything else I can help with please let me know. What I can promise you is that I'm not nuking or deleting anything on purpose! |
|
I have reproduced this issue on a project which had its With Elixir updated to 1.16.2-otp-26, ElixirLS continues to work. The LS also works when I upgrade to Erlang 26.2.2, but fails when I upgrade to 26.2.3. Here's the full ElixirLS log:
FWIW, while deleting Since the directory will be rebuilt even if it has been deleted with previous versions of Erlang/Elixir, I wouldn't solely blame the missing directory for these crashes. Here's a screen recording where I have ElixirLS running, save some changes, and confirm the LS has reformatted the file. When I delete elixir_ls_rebuild_on_deleted_dir.mov |
No @type1fool, that's an OTP issue, please downgrade to a working version. See https://elixirforum.com/t/crash-dump-when-installing-phoenix-on-mac-m2-eheap-alloc-cannot-allocate-x-bytes-of-memory-of-type-heap-frag/62154/6 erlang/otp#8238
Do you also run
You are being lucky. If you delete the directory during compilation things will break. If you remove _build, deps or project dir during |
Any updates on this? I have been facing a similar error frequently:
|
@rauann Your stacktrace is something else. ElixirLS tracer crashes when trying to sync ETS to DETS somewhere inside OTP in |
I don't have logs handy but I think I've seen this issue caused by running two editors side-by-side both inadvertently using the same |
If that’s the reason then it won’t be easy to address given that OTP does not expose filesystem locks API |
Closing as there is no repro |
Environment
Current behavior
The Language Server occasionally crashes
The text was updated successfully, but these errors were encountered: