Debugger cannot start: ERR timeout after 1000 ms: Error: timeout after 1000 ms
See original GitHub issueEnvironment
Most of this can be filled out by running the VSCode command (by default bound to Ctrl+Shift+P) “ElixirLS: Copy Debug Info”
-
Elixir & Erlang versions (elixir --version): Erlang/OTP 22 [erts-10.7] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] Elixir 1.9.4 (compiled with Erlang/OTP 20)
-
VSCode ElixirLS version: 0.4.0
-
Operating System Version: win32 10.0.18363
Troubleshooting
- [ x] Restart your editor (which will restart ElixirLS) sometimes fixes issues
- [ x] Stop your editor, remove the entire
.elixir_ls
directory, then restart your editor
Crash report template
After upgrading from v0.4.0 -> v0.5.0 debugging has stopped working. The Developer’s Console states:
ERR timeout after 1000 ms: Error: timeout after 1000 ms
at t.RawDebugSession.handleErrorResponse (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3160:190)
at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3159:451
at async t.RawDebugSession.shutdown (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3157:536)
Using git bisect
I was able to track it down to this specific commit:
https://github.com/elixir-lsp/vscode-elixir-ls/commit/97066cefed8cf4111b63241ff5d931b2f3e39614
My guess is, perhaps on Windows machines, the workspace scanner times things out? The strange thing is, even on a relatively empty project (i.e. generated from mix phx.new myproj
) it still does this.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
That’s correct. The commit before this one works, and everyone afterwards fails with the timeout.
Fixed in #115