Suricopathe

Suricopathe

ElixirLS "Failed to run elixir command" on a Windows machine

Hello everyone,
I am pretty new to the Elixir world and at the same time, I feel like I fall in love with the language, the ecosystem around it and the community.

Currently, I am trying to follow basic elixir exercise and will try to improve upon playing with the Phoenix server and maybe LiveView as well.

So far, I have setup my environment :

  • Installed Erlang OTP (27.1) (Directly downloading the Windows installer from the website)
  • Installed Elixir (1 .17.3) (Directly downloading the Windows installer from the website)
  • Installed the ElixirLS VSCode extension (v0.23.1)
  • Opening an Elixir project in VSCode (Basic exercise for Exercism : Hello World in Elixir on Exercism

At this point I have the following error :

When I take a look at the PATH that is logged, I can see the bin directories of both my elixir and erlang installation.

[Extension Host] Failed to run ‘elixir’ command. Current process’s PATH: C:\Program Files\Exercism;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\Elixir\bin;C:\Program Files\Erlang OTP\bin

(I trimmed the path logged of unnecessary other paths, to ease readability)

The ElixirLS VSCode extension doesn’t work and it’s a pain to not have a good code editor working properly.
I already tried to restart my laptop several times, uninstall and re-installing everything from scratch.

Do someone experience the same issue ? Can somebody have another idea that I cant see ?

Thank you for your help :slight_smile:

First Post!

krwenholz

krwenholz

If you open the interactive terminal, can you run elixir in there? I’ve found debugging path locations from that terminal to be helpful. I install elixir and friends in a devcontainer with nix, so I’ve hit path issues a number of times.

You might also try running > Reload Window. I know you’ve rebooted, but the window reload can pick up env changes that happen after VSCode starts (a “common” issue for nix+devcontainer).

Where Next?

Popular in Questions Top

pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

Other popular topics Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement