KronicDeth / intellij-elixir

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

Can't set up SDK #3659

Open quetsalkoatl opened 2 weeks ago

quetsalkoatl commented 2 weeks ago

Describe the bug I'm new to Elixir and Erlang and tried to set up the SDK in the IntelliJ plugin but wasn't able to do so. No matter what I try I get the error "Internal Erlang SDK is not in Elixir SDK. Set it before picking this Elixir SDK". And I'm pretty sure I set up the Erlang SDK before picking the Elixir SDK.

I'm on Windows 10 and installed both Erlang and Elixir through the Windows installer in D:\Programs...

I'm probably doing something wrong here but I couldn't find another way to get support.

To Reproduce Steps to reproduce the behavior:

  1. Install Erlang and Elixir with Windows installer
  2. Setup new Elixir project in IntelliJ
  3. Setup new Erlang and Elixir SDK as asked by pop-ups
  4. Choose SDK
  5. Click Create

Expected behavior I should be able to create an Elixir project after setting up and choosing Elixir SDK.

Screenshots image image image image

Logs none

Desktop:

Erlang:

Elixir:

Plugin:

quetsalkoatl commented 2 weeks ago

I was able to get it working by setting up the Elixir SDK through the "Project Structure" dialogue on another (non-Elixir) project. Then I could choose the SDK in the "New Project" dialogue without the error. But I still think this is a bug.

I also figured out that "elixir-tut" is not a valid app name so I changed it to "elixir_tut". Is it possible that that caused the issue and it just displayed the wrong error?

alanbem commented 6 days ago

I had the same issue on MacOS with libs installed through brew. Also new to Elixir and unfortunately it halted my progress, with using IntelliJ, as didn’t know how to work around it.

joshuataylor commented 6 days ago

I'll see if I can figure out a good workaround for this..

Unfortunately Jetbrains has changed how SDKs work, so there are a few wonky bugs with setting up the SDK, I have been unable to replicate it locally, but I'm going to put effort into instead focusing on hopefully implementing how they want custom languages to be done in 2024.x+ IDEs.

On Sat, 16 Nov 2024 at 14:32, Alan Gabriel Bem @.***> wrote:

I had the same issue on MacOS with libs installed through brew. Also new to Elixir and unfortunately it halted my progress, with using IntelliJ, as didn’t know how to work around it.

— Reply to this email directly, view it on GitHub https://github.com/KronicDeth/intellij-elixir/issues/3659#issuecomment-2480449796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABW62Z23LR3QFSTKMQ3RYT2A3RHVAVCNFSM6AAAAABRCYS4QCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGQ2DSNZZGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>