You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opening a file that does not exist crashes ErlangLS.
To work around this, one can touch the file before attempting to open it.
Based on the crash report it looks like this originated from the new shallow indexing functions introduced in #1260.
To Reproduce
Open a file that does not exist yet in your editor. This happens for me within an existing workspace like a rebar3 project but also outside of workspaces on any file. This may be difficult to reproduce in any editor that immediately writes a file when it opens it. I expect it occurs with something like vim f.erl where f.erl doesn't exist yet. In my case: hx f.erl.
Expected behavior
Mainly I would like to avoid the crash. Diagnostics for the buffer would be gravy.
Actual behavior
ErlangLS crashes and terminates leaving an erl_crash.dump.
Describe the bug
Opening a file that does not exist crashes ErlangLS.
To work around this, one can
touch
the file before attempting to open it.Based on the crash report it looks like this originated from the new shallow indexing functions introduced in #1260.
To Reproduce
Open a file that does not exist yet in your editor. This happens for me within an existing workspace like a rebar3 project but also outside of workspaces on any file. This may be difficult to reproduce in any editor that immediately writes a file when it opens it. I expect it occurs with something like
vim f.erl
wheref.erl
doesn't exist yet. In my case:hx f.erl
.Expected behavior
Mainly I would like to avoid the crash. Diagnostics for the buffer would be gravy.
Actual behavior
ErlangLS crashes and terminates leaving an
erl_crash.dump
.Logs:
Context
erlang_ls
version (tag/sha):0.9.0-500-g2dfb48a
(git describe)See also helix-editor/helix#2474 which includes a log of the LSP messages.
The text was updated successfully, but these errors were encountered: