-
Notifications
You must be signed in to change notification settings - Fork 52
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
ElixirLS debugger unexpectedly stops when used with Phoenix and VSCode #185
Comments
Experiencing exactly the same issues. Looks like it's not related to Phoenix, because I see the same behavior with just |
I have a somewhat similar behavior, though the debugger dies with the following error message in my case:
|
Have you tried disabling phoenix live reload? It's recompiling modules on the fly and my guess is it's interfering with the debugger. |
I'm not using Phoenix at all, and no live reload of any kind, and the issue is still present. |
I am using Phoenix in this project, but only as a pure JSON api. Disabling the live reloading changed nothing - but thanks for the suggestion. |
Environments:
Steps to repeat:
|
Well, well, well. Turns out my variant of the issue was the Ubuntu packaging.
|
For me |
I spoke too soon, it would seem. Side note: this is an API Phoenix project, using the Commanded framework.
|
same problem here... but that does not help with the main problem of this thread. |
@phpcitizen nope - just an observation in case it somehow was related. Another observation is that Cowboy seems to never start.
|
I experience the same too! |
Ensure debugger process continues to run, adapts to the new behavior in Elixir 1.9 that changed `Mix.Task.run` to return instead of sleeping indefinitely: elixir-lang/elixir@3673849 - Fixes JakeBecker/elixir-ls#194 - Fixes JakeBecker/elixir-ls#185
I just published version 0.2.28 of the ElixirLS fork that solves this issue: https://github.com/elixir-lsp/elixir-ls |
Thanks! This reminded me that I "upgraded" my macos to Catalina yesterday. I reinstall erlang and elixir and it's all working again and I can debug. :) |
@axelson any chance you can PR against this plugin to get this one working again? |
@dealloc A PR hasn't been merged in this repo since march of last year (not including the license PR) so I doubt a PR that I made would be merged. |
@axelson Ah yes I see, that's rather unfortunate. I installed the fork for now :) |
This project has moved! It's now being maintained by proactive volunteers from the Elixir community over at elixir-lsp/elixir-ls. Updates will continue to be published from that repo to the original VS Code extension, so no need to switch plugins if you're using VS Code. To avoid inundating the new maintainers with issues, please verify that your issue persists with the latest version of the extension (which is published from the new repo) before re-filing your issue there. Thanks for using ElixirLS! |
Trying to debug my Phoenix project in VSCode using ElixirLS. The launch config is defined as
The debugger starts and displays call stack for a fraction of a second but then immediately stops after "[info] Access TestAppWeb.Endpoint at http://localhost:4000". Has anyone gotten this to work?
Demo: https://i.stack.imgur.com/VMrkG.gif
Erlang/OTP 22 [erts-10.4.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
Elixir 1.9.1 (compiled with Erlang/OTP 22)
The text was updated successfully, but these errors were encountered: