Closed tiger808 closed 4 years ago
I don't think this is specific to Scenic, as we're seeing it in Phoenix and other non-Phoenix projects as well. See #185 .
Have been experiencing this myself with various Plug and Phoenix projects using Elixir 1.9.x. Using 1.8.x always resolves the issue for me.
Did some tinkering this weekend and it appears this is where things are going awry: https://github.com/JakeBecker/elixir-ls/blob/ca277c10a81ab0486cd1426da1386ef573701240/apps/debugger/lib/debugger/server.ex#L566
With 1.8.x, Mix.Task.run
does not return
With 1.9.x, Mix.Task.run
returns with :ok
.
Elixir is still very much a language I'm working with in my spare time and next steps for me would be to compare differences between 1.8.x and 1.9.x in regards to Mix.Task.run
.
Additional notes
Curious if its related to this change in 1.9.x from 1.8.x where Process.sleep
is no longer called in favor of System.no_halt
I just published version 0.2.28 of the ElixirLS fork that solves this issue: https://github.com/elixir-lsp/elixir-ls
And thanks @joshua-andrassy for the investigation! That was very helpful.
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!
Environment
Crash Report
Attempting to debug an app using Scenic: https://github.com/boydm/scenic
The Scenic app window flashes on the screen for a fraction of a second, and then exits.
I don't see anything suspicious looking in the logs.