KronicDeth / intellij-elixir

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

SDK selection dropdown not displayed for Chocolatey on Windows or pacman on arch linux #1413

Open zorzysty opened 5 years ago

zorzysty commented 5 years ago

In the File | Settings | Languages & Frameworks | Elixir there is no option to select SDK. The dropdown is not displayed.

Reproduction steps Open a project created with mix new command`.

Expected behavior SKD selection dropdown visible in File | Settings | Languages & Frameworks | Elixir, like so: expected

Screenshots Actual result: actual And here are settings for SDKs and Internal Erlang SDKs: SDK ERLANG

Desktop:

Erlang:

Elixir:

Plugin:

IDE WebStorm 2018.3.5, GoLand 2018.3.5

Additional context So far I only encountered this bug for projects created with mix new. I couldn't reproduce it for simple folders containing .exs files or projects in any other language.

zorzysty commented 5 years ago

I've just tried it on another laptop. And the result is the same. System: Arch Linux / x86_64 Linux 5.0.0-arch1-1-ARCH / KDE 5.55.0 / Plasma 5.15.2 Elixir: 1.8.1 (installed via pacman) Erlang: 21 (installed via pacman) Plugin: 10.3.0

KronicDeth commented 5 years ago

Which IDE and IDE version?

zorzysty commented 5 years ago

Bug is present on WebStorm 2018.3.5 and on GoLand 2018.3.5. Both on Windows 10 and Arch Linux.

@KronicDeth I just noticed something rather important: The bug only occurs when I open a project created with mix new. When I open any other Elixir project or a project in another language, the SDK selection dropdown is displayed correctly and allows selection of the SDK. This is true for GoLand and Webstorm both on Windows and Arch Linux.

I've added this information to the original post.

lyk0rian commented 5 years ago

I can confirm the bug on MacOS and Php Storm 2019.1. Erlang was installed by kerl, elixir was installed by kiex. Elixir version is 1.8.1.

I've found a walkaround:

  1. Create a new project with mix new project_name
  2. Move the mix.exs file to another directory outside the project.
  3. Add files to an IDE via 'Create New Project from Existing Files'.
  4. Choose an SDK, everything should work as expected.
  5. You may move the 'mix.exs' back to the project directory.

I hope it helps to fix the bug in future releases.