KronicDeth / intellij-elixir

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

SDK auto configuration does not support Apple Silicon homebrew location #3141

Open bopm opened 1 year ago

bopm commented 1 year ago

Describe the bug

On the Apple Silicon, the default homebrew location is /opt/homebrew/ not /usr/local which leads to broken SDK auto configuration. Instead of configuring, plugin shows project root folder.

To Reproduce Steps to reproduce the behavior: Use the plugin on the Apple Silicon machine.

Expected behavior SDK auto-configuration should work.

KronicDeth commented 1 year ago

I don’t have an Apple Silicon machine, so while I can add that path to the paths to check, you’d have to verify it works correctly

bopm commented 1 year ago

I am happy to provide testing for this one. I was able to manually configure this one, but it's not that on the surface for a standard user as OSX does not show non-standard root paths in the finder window by default.

bopm commented 1 year ago

And just to confirm I did not mistype anything:

# ls /opt/homebrew/Cellar/elixir/1.14.3/
CHANGELOG.md         INSTALL_RECEIPT.json LICENSE              NOTICE               README.md            bin                  lib                  share
# ls /opt/homebrew/Cellar/erlang/25.3/
AUTHORS              INSTALL_RECEIPT.json LICENSE.txt          README.md            bin                  lib                  share
zidk commented 1 year ago

on mac m1, with 16.0.0 fresh install I tried to select the sdk manually but I cannot make it work (if I pick /opt/homebrew/Cellar/elixir/1.15.6/ it asks for erlang, if I pick the erlang folder says that its not a valid elixir sdk folder)

I did this workaround:

sudo ln -s /opt/homebrew/Cellar/elixir /usr/local/Cellar/elixir
sudo ln -s /opt/homebrew/Cellar/erlang /usr/local/Cellar/erlang

And the program recognize all well after this symlink