Open luxx opened 6 years ago
Experienced this too
I've never added explicit support for Chocolatey on Window, only the Erlang Solutions installer, but the SDK Home directory is never the bin
directory: it would likely be the C:\ProgramData\chocolatey\lib\Elixir
as a Home Path needs the closest common ancestor of the bins and ebin
directories.
Here is my setup.
Using chocolatey installation procedures, I still got error when pointing the erlang home folder (not valid erlang directory). Checking the chocolatey install code, it only copying erlang binary file to chocolatey\bin and the erlang folder in chocolatey only consist of install - uninstall script and erlang logo. It makes the plugin detected it as wrong Erlang SDK folder.
So, i try install Erlang and Elixir SDK manually using installer from their site then pointing it in Intellij project SDK setting. Erlang detected successfully, but Elixir get error "Probably SDK Installed in C:\Program Files (x86)\Elixir is corrupt". The intellij is adding the Elixir successfully though (unknown elixir version).
So i guess, using Erlang & Elixir from chocolatey is not supported since it changed files in erlang SDK directory. But it works using manual installation albeit with unknown Elixir version on SDK label.
+1 any advice?
+1 chocolatey o/
Just choose chocolatey folder as Erlang SDK path (as Erlang is in /bin there) And for Elixir SDK - /lib/Elixir
Does anyone know of a Windows VM download with Chocolatey and the Erlang and Elixir octaves already installed? It takes awhile for me to setup Windows VM, so I rarely get around to testing Windows issues.
I see why this happened. You are supposed to first select the Erlang SDK path, then on the next prompt, select the Elixir SDK path. Chocolatey does not install Erlang SDK when installing Elixir it seems. I think the prompt text can be clearer to avoid this mistake.
A workaround that worked for me was adding the Erlang SDK first through Project Structure >> Platform Settings >> SDKs
and then add the Elixir SDK.
Then I can create a new project with the Elixir SDK
A workaround that worked for me was adding the Erlang SDK first through
Project Structure >> Platform Settings >> SDKs
and then add the Elixir SDK.Then I can create a new project with the Elixir SDK
Worked for me. Thank you @FelixStumvoll
I have elixir working fine on windows, however I cannot get the intellij-elixir plugin to work. When configuring the elixir SDK to use, I get this error:
The selected directory is not a valid home for Erlang SDK for Elixir SDK
I am on windows 10, have installed elixir using chocolatey (following these steps: https://medium.com/@rpw952/elixir-development-on-windows-10-ff7ca03769d).
I have also reviewed #242, and reinstalled elixir, but there does not appear to be install corruption
Any ideas?