Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup WebStorm for Elixir (Project SDK is not defined)

I've been trying to setup WebStorm to work with Elixir and I'm getting a Project SDK is not defined message.

enter image description here

This is what I have:

$ elixir -v
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.5.1

I also have Elixir's plugin for WebStorm, version: 5.1.0

I first had Elixir installed with brew but read people where having this problem with brew installs. Now I just tried installing it with MacPorts but nothing changed.

Extra info:

$ which elixir
/opt/local/bin/elixir

$ which mix
/opt/local/bin/mix

And this is how I'm trying to setup Elixir External Tools:

enter image description here

Am I doing something wrong?

P.S.: I saw a similar SO question answered here, but couldn't fix the problem with the information there, nor the followup issues on github.

like image 844
rafaelbiten Avatar asked Aug 06 '17 22:08

rafaelbiten


1 Answers

In last input (Elixir SDK path) you have to point to elixir installation folder. Since plugin have to find other files, not just elixir executable.

Edit: In my case, installed with Homebrew, the folder was:

enter image description here

like image 61
Milan Jaric Avatar answered Oct 19 '22 02:10

Milan Jaric