so I am on ubuntu 18.04 and vscode version 1.35.1, I tested it by modifying the router.ex file. I tried both with ElixirLS plugin enabled and disabled, and I do have inotify-tools installed.
I tried it with atom editor and the atom editor works… not sure what specifically is going on with VScode, it has nothing to do with the plugins.
I also tried changing MIX_ENV=test then running the compile, as suggested by several posts, this did not solve the problem.
Lastly on my system, I have an issue with recompile. I think this recompile error is related to the above problem AND its easier to reproduce
so if you create a new project: mix new foo
Then open that project in vscode file -> open -> foo
Then inside the integrated terminal, do iex -S mix
then do recompile -> answer is :noop (as expected because iex -S mix compiles your files)
if you change something in an ex file in the lib folder(for example, inside foo.ex inside the hello world function, change :world to “hi there!”, then save it with vscode
THEN inside the integrated terminal do recompile
it shows :noop! when it should show :ok
This is definitely caused by vscode because if I perform the above steps in atom or in terminal(using gedit as the file editor) it show :ok instead of :noop.