Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Refactor elixir checker to accept phoenix projects #17

Closed
wants to merge 3 commits into from

Conversation

BernardNotarianni
Copy link
Contributor

The elixir checker uses the mix compile command. This command
has to be executed from the root of the project containing
the mix.exs config file.

The commit allows the checker to find this root directory and launch
the command from here, giving access to all libs dependencies.

This is kind of a hack. An issue exist in the flycheck project:
flycheck/flycheck#312

Any feedback and improvement are more than welcome.

The elixir checker uses the `mix compile` command. This command
has to be executed from the root of the project containing
the `mix.exs` config file.

The commit allow the checker to find this root directory and launch
the command from here, giving access to all libs dependencies.

This is kind of a hack. An issue exist in the flycheck project:
flycheck/flycheck#312
@BernardNotarianni
Copy link
Contributor Author

This approach does not seem to comply with flycheck design and best practices.

I withdraw it.

@bodil
Copy link
Owner

bodil commented Jan 1, 2016

Shame. Been struggling with this myself - the only reasonable fix seems to be to get mix to do the right thing. :(

@BernardNotarianni
Copy link
Contributor Author

They have a PR which should solve the issue. It should be accepted within few weeks (months?)

Meanwhile, I use the functions I proposed, but as it is kind of a hack, I moved them to user.el

@BernardNotarianni
Copy link
Contributor Author

Another solution could be to use elixirc instead of mix compile. However, this would require to have the deps/libs paths working. This would be correct according to flycheck design.

Maybe a road to try for the week-end ;-)
(OMG I just cannot stop hacking with those little emacs lisp functions...)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants