I’m using Elixir and Phoenix in a new open source project and I noticed that incremental builds are unreliable. Sometimes they work fine, and other times start yielding odd behaviours:
- It fails to compile an external dependency that had previously been successfully compiled.
- It starts compiling all the projects even if I only change one line of code in a file. I checked with
--sinkand no other module has a compile dependency with it.
My guess is that something is odd in my module graph, but
xref is not revealing anything useful. How would you recommend debugging this issue? I was excited about everything Elixir would offer, but incremental builds that often get invalidated worsen the experience significantly.
I just noticed that the incremental build got invalidated after seeing an error popping in the bottom right corner of VSCode so it might have something to do with either the ElixirLS or Credo extensions.