-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
New Project From Existing Sources... #112
Conversation
Detect mix projects when using New Project from Existing Sources by their mix.exs.
Adds eex, elixir, ex_unit, iex, logger, and mix paths as library homes.
Mark lib as sources and test as test sources by making them both DetectedSourceRoots of the ModuleDescriptor.
Mark _build from mix and rel from exrm as excluded.
projectStructureDetector is only available in IntelliJ, so make it's definition optional so intellij-elixir remains compatible with all JetBrains IDEs.
|
It's some difference between the deployment intellij-elixir.zip as if I uninstall intellij-erlang I get no types besides Content. |
Ok, so if I don't make the projectStructureDetector optional then the intellij-elixir.zip works. |
Optional depends on com.intellij.modules.java doesn't work with depends on com.intellij.modules.lang. I don't know why.
Detect the mix.exs projects and automatically marks directories and libraries.
_build
andrel
are marked excluded.lib
is marked as sources.test
is marked as test sources. The user is prompted to select the Elixir SDK based on the directory abovebin/elixir
andbin/mix
, but the SDK isn't used for anything yet. Support of its selection was only completed in this PR because it was a requirement of defining a new ModuleType.This implements part of #22 and resolves #79
Verification Steps
Rich Platform support
.idea directory. Click Yes.
mix.exs
. Uncheck any project roots that you don't want added.bin/elixir
in it._build
andrel
are marked Excludedlib
is marked Sourcestest
is marked TestsLanguage Platform support