-
Notifications
You must be signed in to change notification settings - Fork 26
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
Cannot Find Phoenix.Router, others in new Phoenix project. #5
Comments
I will look into but can you attempt instead.
Then edit the file while the whole tree is open. It worked that way for me. |
Same result. |
What OS are you on? I am able to use this on both my OSX machine and an Ubuntu VM. |
NixOS where both Elixir and SublimeText are installed via Edit: Note that outside of |
I'm getting this same issue on OSX Yosemite |
I had the same issue and discovered that the linter plugin cannot find the mix project. When That happens because class ElixirLinter(Linter):
...
def cmd(self):
...
for path in find_ebin_folders(find_mix_project(self.filename)):
command.extend(['-pa', path]) I’m not sure if this will break other stuff since I never wrote a sublime linter plugin (and that’s why I’m not making a PR), but it works for me. |
That fixed it for me @andref |
Because @andref didn't send a PR, and it works for me too...
Fixed by PR #13 |
I have same problem despite of this PR. With |
To @vladra and others: When I ran into this same issue, it wasn't due to ElixirSublime, but instead from the SublimeLinter elixirc plugin in a Mix context. The appropriate config for a Mix project for that plugin is specified here: https://github.com/smanolloff/SublimeLinter-contrib-elixirc#example |
In Phoenix projects,
use Phoneix.X
gives a lint warning saying that it cannot find the proper module.Steps to reproduce:
See a red dot on line 2 with statement "Error: module Phoenix.Router is not loaded and cannot be found.
The text was updated successfully, but these errors were encountered: