Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot setup elixir 1.80.0 #3670

Open
nitingupta910 opened this issue Dec 21, 2024 · 3 comments
Open

Cannot setup elixir 1.80.0 #3670

nitingupta910 opened this issue Dec 21, 2024 · 3 comments

Comments

@nitingupta910
Copy link

Describe the bug

When setting up SDK, the IDE accepts 1.17.3 but fails when trying to add elixir 1.18.0 as SDK due to changed directory structure in 1.18.0.

The error from IDE is:

A valid home for Elixir SDK has the following structure: 

ELIXIR_SDK_HOME
* bin
 ** elixir
 ** elixirc
 ** iex
 ** mix
* lib
 ** eex
 ** elixir
 ** ex_unit
 ** iex
 ** logger
 ** mix 

However, 1.18.0 as the following directory structure:

/opt/homebrew/Cellar/elixir/1.18.0
├── CHANGELOG.md
├── INSTALL_RECEIPT.json
├── LICENSE
├── NOTICE
├── README.md
├── bin
│   ├── elixir -> ../lib/elixir/bin/elixir
│   ├── elixirc -> ../lib/elixir/bin/elixirc
│   ├── iex -> ../lib/elixir/bin/iex
│   └── mix -> ../lib/elixir/bin/mix
├── lib
│   └── elixir
├── sbom.spdx.json
└── share
    └── man

To Reproduce
Steps to reproduce the behavior:

In IntelliJ IDEA Ultimate:

Setup Module SDK, Goto Platform Settings -> SDKs, Click '+' and navigate to /opt/homebrew/Cellar/elixir/1.18.0 and select this directory.

Once the folder is selected, click open and then you will see the above message about the expected directory structure.

Expected behavior

The plugin should accept 1.18.0 as the Elixir SDK.

Screenshots
image

Logs

None

Desktop:

  • OS: MacOS
  • Version 15.2

Erlang:

  • Installer homebrew
  • Version 27.2

Elixir:

  • Installer homebrew
  • Version 1.18.0

Plugin:

  • Version 20.0.1

Additional context

None

@joshuataylor
Copy link
Collaborator

joshuataylor commented Dec 22, 2024 via email

@joshuataylor
Copy link
Collaborator

Interesting, this looks like it's just homebrew. Compiling from source, and using mise both works.

@joshuataylor
Copy link
Collaborator

joshuataylor commented Dec 25, 2024

One of these commits broke things: https://github.com/Homebrew/homebrew-core/commits/a1f2d157ef737b83b31e2888f1fbd94e811f1480/Formula/e/elixir.rb

When doing a bisect:

brew uninstall elixir ; brew install elixir.rb --formula && ls $(brew --cellar elixir)/$(brew info --json elixir | jq -r '.[0].installed[0].version')/*

I highly recommend pinning Elixir and other dependencies and not relying on brew.

Log an issue with Homebrew, it'll probably impact others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants