All dependent files are recompiled on a save #4511
Labels
component: ghcide
priority: high
High priority item
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
When a save a file, recompilation is triggered for all the files which depend on the file I saved.
I tracked down the bug to the fact that
-haddock
option set.-haddock
is not set.This seems to be complicated with all the logic with turning -haddock on in some situations and not in others.
The following diff "fixes" the immediate problem for me, but I don't know if there are some situations where interfaces are created without
-haddock
being enabled.It would be simpler if the options chosen to compile a file were fixed at the start of compilation and not modified in ad-hoc places later on.
In my opinion this is a serious bug.
The text was updated successfully, but these errors were encountered: