What editor are you using (there are known issues with vim and one of its plugins)
Have you installed the dependencies to make filesystem watching work? I’m not sure if there is a fallback to FS polling when the necessary tools arent available.
Well it turned out to just be a coincidence that it worked without tmux. It seems to work sometimes. It is really annoying. So Views are recompiled on change but controllers and other application code are rarely.
In my experience changes to the controllers usually recompile when the page is reloaded, but the controllers don’t recompile directly after code changes because they aren’t being watched for changes by live_reload, but if needed, you should be able to add them in config/dev.exs.
Yeah I did not explain my self properly. It does not recompile controllers and any app code in lib/app on reload. That is the problem. Views are properly compiled on change.
It seems like Elixir doesn’t know that any files has changed. If I type recompile in iex I get :noop sometimes.
I was able to reproduce the bug when using both Vim and vscode. Vim I’ve been using for many years and I’ve never had this issue. So I can’t see it being the cause right now.
Perhaps my Macbook is just acting up… I am not able to reproduce it right now!
This is not what the question was about, this question was about a feature of the phoenixframework which should automatically recompile changed code when the development server is running.
yes and the problem is only with the dependencies and when you specify the path in mix.exs mix will recompie whenever we change something in that dependency.
it happened with me and when i try to recompile iex returned :noop, the process mentioned solved the issue.
A better way to do what? As I said already, neither it is idiomatic to change code in deps nor is it necessary.
If you have the feeling you have to edit code in that folder, then you are probably doing things wrong and you should stop. Tell us what you actually want to achieve and we can tell you the proper way to do so.
I had a situation to change a dependency for my project to work. not phoenix dependency its just an example. i faced the same issue and this worked for me