Skip to content
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

VSCode stops LS after completion on OTP 26 Windows #391

Closed
mrtkp9993 opened this issue Nov 5, 2023 · 6 comments
Closed

VSCode stops LS after completion on OTP 26 Windows #391

mrtkp9993 opened this issue Nov 5, 2023 · 6 comments

Comments

@mrtkp9993
Copy link

After typing & character, language-server is crashing.

Environment

  • Elixir & Erlang versions (elixir --version): Erlang/OTP 26 [erts-14.1.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Elixir 1.15.7 (compiled with Erlang/OTP 26)

  • VSCode ElixirLS version: 0.17.6
  • Operating System Version: win32 10.0.22621

Crash report

  1. ElixirLS output:
[Error - 5:13:46 PM] Stopping server failed
Error: Stopping the server timed out
    at c:\Users\murat\.vscode\extensions\jakebecker.elixir-ls-0.17.6\out\extension.js:89:9067
  1. Developer tools errors:
notificationsAlerts.ts:42 Client ElixirLS - elixir_gen_alg: connection to server is erroring. Shutting down server.
c @ notificationsAlerts.ts:42
log.ts:441   ERR Model is disposed!: Error: Model is disposed!
    at W.ib (vscode-file://vscode-app/c:/Users/murat/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:728:263)
    at W.getLineCount (vscode-file://vscode-app/c:/Users/murat/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:730:4302)
    at vscode-file://vscode-app/c:/Users/murat/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1657:31631
@lukaszsamson
Copy link
Collaborator

Screenshot 2023-11-05 at 16 27 55 I cannot reproduce that. Please share a repo that reproduces the crash. Please attach logs from Output tab https://github.com/elixir-lsp/vscode-elixir-ls#check-elixirls-output

@mrtkp9993
Copy link
Author

It clears Output tab automatically. This is the last output after clearing:

[Error - 6:34:15 PM] Stopping server failed
Error: Stopping the server timed out
    at c:\Users\murat\.vscode\extensions\jakebecker.elixir-ls-0.17.6\out\extension.js:89:9067

Recording 2023-11-05 at 18 34 35

@lukaszsamson
Copy link
Collaborator

Still cannot reproduce. Please provide more details
Screenshot 2023-11-05 at 23 55 11
01">

@infinityfye
Copy link

I can confirm a similar behaviour. The only difference in the environment is I'm using ElixirLS v0.17.7 even the windows version is the same. This happens ONLY on windows, it doesn't happen when running vscode in wsl for example.

For me the LS crashes when typing a map or a struct. To be precise it crashes when typing any character after %. If I restart the LS in the middle of the map and finish it it works normally.

I couldn't recreate this behaviour on the & character, however.

@lukaszsamson
Copy link
Collaborator

Please downgrade to OTP 25. See details in elixir-lsp/elixir-ls#1023 and OTP bug report erlang/otp#7838

@lukaszsamson lukaszsamson changed the title LS crashes after typing & character VSCode stops LS after completion on OTP 26 Windows Nov 8, 2023
@lukaszsamson
Copy link
Collaborator

OTP 26.2.1 is out and with with fix for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants