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

Use SmallIDE setting for SDK path for elixir path #855

Merged
merged 2 commits into from Oct 19, 2017
Merged

Use SmallIDE setting for SDK path for elixir path #855

merged 2 commits into from Oct 19, 2017

Conversation

KronicDeth
Copy link
Owner

Fixes #853

Test Report

Tested with Rubymine on C-S-D/alembic running mix test.

Changlelog

Bug Fixes

  • Change error to say mix, elixir, or erlang path is not set instead of just mix path.
  • Rewrite of MixRunningStateUtil#setElixir to support calling erl directly in IntelliJ IDEA added a check that sdk type was the Elixir SDK Type, but there was no else clauses to handle that there IS an SDK, but its NOT Elixir, which is the common case on all Small IDEs (like Rubymine). To fill this gap, if the SDK is not Elixir and a Small IDE is detected, then the SDK Home from Preferences > Other Settings > Elixir External Tools > Elixir SDK > Path will be used to get the absolute path to the elixir (or elixir.bat executable and set it in the GeneralCommandLine.

Fixes #853

Rewrite of `MixRunningStateUtil#setElixir` to support calling `erl`
directly in IntelliJ IDEA added a check that sdk type was the Elixir SDK
Type, but there was no `else` clauses to handle that there IS an SDK,
but its NOT Elixir, which is the common case on all Small IDEs (like
Rubymine).  To fill this gap, if the SDK is not Elixir and a Small IDE
is detected, then the SDK Home from
Preferences > Other Settings > Elixir External Tools > Elixir SDK > Path
will be used to get the absolute path to the `elixir` (or `elixir.bat`
executable and set it in the GeneralCommandLine.

Tested with Rubymine on C-S-D/alembic running `mix test`.
@KronicDeth KronicDeth self-assigned this Oct 19, 2017
@KronicDeth KronicDeth merged commit 4ce77ac into master Oct 19, 2017
@KronicDeth KronicDeth deleted the 853 branch October 19, 2017 18:14
@KronicDeth KronicDeth added this to the v6.3.0 milestone Oct 19, 2017
KronicDeth added a commit that referenced this pull request Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant