📦 intellij-elixir/ KronicDeth
Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Установка и запуск
Run/Debug Configurations
Distillery Release CLI
Distillery's mix release produces a CLI for running the release.
-
Build the release:
mix release==> Release successfully built! You can run it in one of the following ways: Interactive: _build/ENV/rel/NAME/bin/NAME console Foreground: _build/ENV/rel/NAME/bin/NAME foreground Daemon: _build/ENV/rel/NAME/bin/NAME start -
Run > Edit Configurations...
-
Click +
-
Select "Distillery Release CLI"
-
Fill in the "Release CLI path" with the full path to the
_build/ENV/rel/NAME/bin/NAMEpath produed bymix releaseabove. -
Fill in the "Release CLI arguments".
consoleruns a shell with the release loaded similar toiex -S mix.foregroundto runs the release without a shell, likemixormix run. The available commands are controlled by your release configrel/config.exsthat Distillery uses.
-
(Optionally) fill in "
erlarguments" with arguments toerlbefore it runselixir. This is the same as theERL_OPTSenvironment variable supported by Distillery. -
(Optionally) fill in "
elixir -extraarguments" with arguments to pass toelixirbefore it run the release. This is the same as theEXTRA_OPTSenvironment variable supported by Distillery. -
(Optionally) change the "Code loading mode" This is the same as the
CODE_LOADING_MODEenvironment variable supported by Distillery.- "Use default" - use whatever is configured in
rel/config.exs. Don't setCODE_LOADING_MODEenvironment variable. embedded- load all code immediately on boot. SetCODE_LOADING_MODE=embedded.interactive- load code on-demand as it
- "Use default" - use whatever is configured in
…
Run the expander
The expander is the plugin's own implementation of how Elixir expands code: imports, aliases, use and macros, answered the way the compiler does. It is off by default, and the Run the expander setting under Settings | Languages & Frameworks | Elixir | Experimental Settings turns it on, for every open project, without a restart.
Today the expander answers the keys of config files: usages, navigation, completion and the unread config key inspection. It also colours a call by what it finds the call reaches, so a call to a function or macro that a macro defines gets its function or macro colour.
With the expander off, a config key written as a module (config :my_app, MyApp.Repo, ...), a read through an alias or a nested import, and a setting in a file import_config reaches from a subfolder (config/prod/database.exs), are not answered. The unread config key inspection can warn on a key that is read that way; turning the expander on removes the warning.
Из README репозитория · полный README на GitHub