KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.83k stars 153 forks source link

Arch Linux SDK support #1369

Open KronicDeth opened 5 years ago

KronicDeth commented 5 years ago
/usr/share/licenses/elixir
/usr/lib/elixir
/usr/lib/elixir/lib/elixir
/run/media/me/95936a51-3671-4a9d-9567-5059c3a086db/home/yo/.vim/bundle/syntastic/syntax_checkers/elixir

and for elixir and elixirrc

[me@me-pc sqliteauth]$ whereis elixir
elixir: /usr/bin/elixir /usr/lib/elixir /usr/share/man/man1/elixir.1.gz
[me@me-pc sqliteauth]$ whereis elixirc
elixirc: /usr/bin/elixirc /usr/share/man/man1/elixirc.1.gz

but I've tried all these folders and intellij always tell me that it's not a valid path, just a question, what files must have the elixir sdk path and the erlang sdk path???...thank you

Originally posted by @cocodrino in https://github.com/KronicDeth/intellij-elixir/issues/141#issuecomment-429505469

bolivier commented 5 years ago

It seems to have worked for me with /usr/lib/elixir.

I'm not an intellij expert, so I'm not totally confident it works properly, but I got through adding the sdk.

scj7t4 commented 5 years ago

For anyone having issues with this, for me the following worked:

From an existing open project in IntelliJ:

  1. File > Project Structure
  2. Platform Settings : SDKs
  3. Click the + and choose Elixir SDK
  4. Choose /lib/erlang, IntelliJ pops up the file chooser window again, this time choose /lib/elixir
  5. IntelliJ adds two entries, one for "Elixir 1.8.1" and one for "Erlang for Elixir 21"

At this point I was able to create a new Elixir project and run a Hello World program.

cocodrino commented 5 years ago

@scj7t4 can you import a phoenix project following the README guide???...this didn't work for me using the latest intellij, thank you...