-
Notifications
You must be signed in to change notification settings - Fork 42
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
Failed to start Elixir. using Ubuntu wsl on Windows 10 #16
Comments
Hm. For starters, this probably requires that this ticket be done first: JakeBecker/elixir-ls#12 It's going to be tricky to make this work out-of-the-box, but maybe it's possible to let the user override the launch command so you can run it with |
Try to use doskey |
You can use it for aliases like nodejs, elixirc, elixir, mix |
In Windows, the server is launched from a batch file using the |
I haven't been able to get this working myself. I've added the alias to both powershell and cmd and made sure that they persist and load through sessions but the extension continues to throw an error for not being able to find Any help would be appreciated as getting NIFs working on windows is a real pain outside of the WSL. Edit: Just to follow up. I was not able to get this working. I ended up just getting everything working in windows and found Powershell Community Extensions which has a function for bringing in the MSBuild tool variables into the session to make building NIFs possible. It works. |
I tried all of it, including changing the language_server.bat inside extensions, no luck, maybe because Im not that expert on bash and batch |
Yeah, I've done everything I could think of to get the above to work. I'm at an absolute loss, and I'm hoping this is somewhere on the roadmap. |
To point it out, the only solution I found for it was to run Visual Code within WSL, and open your project there, it works just fine most of the time On how to do it, check this https://gist.github.com/fdmnio/604c6b811939468fdad06e3fbba942ed If you are working with nifs and want to make elixirls work inside windows natively, check my post on Elixir Forum |
I attempted to look into this again. From what I can tell, the node.js child-process library doesn't seem to load in the doskey aliases. I haven't been able to figure out a way to make sure that happens. I then decided to simply modify the commands the extension used. So in
Not sure where to go from here. |
I have configured my system so that elixir runs only on Ubuntu (No elixir etc.. installed in Windows)
Elixir and Phoenix works fine from the bash console (and I also manage to work in cmd by using
bash.exe -c "elixir %*"
in a .bat file), but ElixirLS simply don't work with WSL, here the log:There is any way to make this work correctly? :D
Greetings
The text was updated successfully, but these errors were encountered: