alice
Unexpected :noop after 'recompile' (mix / iex)
Hey guys,
I just installed Elixir 1.10 on my Arch Linux and I am starting to learn this nice language.
I am experiencing some problems with my compiler.
I created a new project:
mix new cards
This worked fine. The project was created. However after I make a change to the .ex file in the lib folder and save it and then type recompile iex returns :noop. Oddly enough if I do:
recompile force: true
Then it works fine and the new code is compiled and accessible.
I get the same behavior with mix. ‘mix compile --force’ works but ‘mix compile’ doesn’t output anything.
Yes I made sure that I made and saved changes to the file before trying to recompile and I made sure I am in my project when trying to recompile. Any ideas?
System:
Arch Linux
FS: ext4 mounted on /
Not a virtual machine
Most Liked
sergio-ocon
I had the same problem, and it was an extension in VS Code calling Credo. Disabling it made recompile work again.
alice
I did remove some Atom autocomplete-elixir package that was giving out an error. ‘recompile’ seems to be working fine now:
iex(46)> recompile
Compiling 1 file (.ex)
warning: variable "muff" is unused (if the variable is not meant to be used, prefix it with an underscore)
lib/cards.ex:41: Cards.bro/2
:ok
iex(47)>
Thanks guys!
Alex-Anev
Not sure if relevant but I had this vscode extension for “elixir linting” which I removed and then recompile started working again. Forgot which extension it was exactly.
ityonemo
Inotify-tools shouldn’t be required for mix compile to detect a change, should it? I thought it was only for hot recompiles for phoenix
NobbZ
For me, that’s about an hour in the future 
Also please do not post screenshots. Instead copy and paste into the forum and use markdown code fences to mark your code.
For me, the following workflow triggers a rebuild, does it for you as well?
$ mix compile
...
$ touch lib/foo.ex
$ mix compile
...
Also, what editor are you using? Does it perhaps recompile on save? Vim with some “ale” plugin was known to cause exactly this kind of problems.







