Convert ELIXIR_MODULEs in Small IDEs to Projects with Elixir Facets #1443
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1378
Test Plan
rm -rf **/*.iml **/.idea projectFilesBackup*
*.iml
files withELIXIR_MODULE
exist in root andapps/*
directories*.iml
files withELIXIR_MODULE
are gone.apps/*
directories show up as projects (bolded)Test Report
WebStorm does not support attaching projects. It cannot support umbrella projects, but the converting will clean up the incorrect
ELIXIR_MODULE
s still.Could not reliably get
eex_test
to attach while it worked foreex_test_umbrella
at the root andeex_test_web
as a sibling.Summary
Attaching multiple project is unreliable outside of Rubymine, so only allow it in Rubymine and raise a notification in other small IDEs telling users of projects with multiple OTP apps to use IntelliJ (preferred) or Rubymine.
Changelog
Enhancements
Bug Fixes
ELIXIR_MODULE
modules inDirectoryConfigurator
. This matches the manual steps of opening the OTP apps as separate directories after opening the root of the project.ELIXIR_MODULE
s:ELIXIR_MODULE
*.iml
filesELIXIR_MODULE
entries root project'smodules.xml
file.doOpenProject
will triggerDirectoryProjectConfigurator
s to be run, which will setup the project and runDirectoryConfigurator
to attach theapps
OTP apps and Elixir facets.