Gupta

Gupta

Problem While installing Elixir for vs code

Hi ! I ws as trying to install elixir on my windows so i successfully installed it and i can see my elixir IDE showing on my start menu.

Now i was trying to setup my vs code for Elixir so I installed one extension named : ElixirLS: Elixir support and debugger

Now i was trying to create a new file named : elixir1.exs
and i was trying to run it on my terminal of vs code using this command : elixir elixir1.exs

PS D:\BE.MECHATRONICS\Elixir> elixir elixir1.exs
elixir : The term 'elixir' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, 
or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ elixir elixir1.exs
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (elixir:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

pls help me out !!

Marked As Solved

MuddIes

MuddIes

Is your issue creating files or are you not sure whether Elixir is installed in the first place?
For the latter, open the terminal in VScode and type ‘elixir -v’ and you should get something like the following

PS C:> elixir -v
Erlang/OTP 24 [erts-12.3.2.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.13.4 (compiled with Erlang/OTP 22)

You can always just go into your folder using the explorer and make a new file and just call it elixir1.exs btw

Last Post!

Gupta

Gupta

I used installer and for IDE i means this thing


Where Next?

Popular in Questions Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
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

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement