This linter plugin for Linter provides an interface to elixirc/mix.
It will be used with files that have the "source.elixir" syntax
There are limitations with ElixirC that:
Plugin requires Linter package and it should install it by itself. If it did not, please follow Linter instructions here.
$ apm install linter-elixirc
Plugin should work with default settings. If not:
Edit > Preferences (Ctrl+,)
Packages > Search "linter-elixirc" > Settings
elixirc path option - use
which elixirc to find path. ie.
mix path option - use
which mix to find path. ie.
always use elixirc option - leave it disabled, unless
mix compile is too slow.
mix env option - Allows changing the Mix environment for lint runs. If using IEx at the same time as Atom this can be changed to allow IEx to pick up code changes.
If you open folder with mix project (
mix.exs exists in project's root
folder), linter will use
mix compile to include all dependencies, unless you
enable "Always use elixirc" setting.
If you open single file, linter will use
elixirc. This will try to find
dependencies in a place where mix projects do (_build/dev/lib/*/ebin). If
dependency path is different, then every external dependency will trigger
*.ex files are not compiled by
mix compile, they are always linted
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.