-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating static files never triggers recompilation #94
Comments
Note: this is not a high priority, urgent issue, but I would like to get some feedback on what's going on here and how difficult it would be to fix. |
We keep a flag internally whether we should invoke ghc at the next call to |
Let's go for the easy fix: just setting the flag on |
Only verified that it does not break the current tests. Specific tests will be added to the other branches later on.
Perfect, thanks. And yes, the ping was very good, we don't get notifications when commits have been made. @jwiegley Can you update our ide-backend on master to use this change? |
@snoyberg Doing so now. |
Only verified that it does not break the current tests. Specific tests will be added to the other branches later on.
Thank you. |
Consider the following code:
I've added an invalid Hamlet file, and a source file which references this Hamlet file. As expected, compilation fails. However, updating the data file with a valid Hamlet file does not trigger any recompilation, and the only way to get the change noticed is to actually change the source file. Going in the reverse direction, updating the Hamlet file with something invalid does not trigger recompilation either.
Note that Hamlet uses qAddDependentFile (http://hackage.haskell.org/packages/archive/template-haskell/2.7.0.0/doc/html/Language-Haskell-TH-Syntax.html#v:qAddDependentFile) internally, so under normal circumstances GHC is able to detect that a recompilation is necessary.
The text was updated successfully, but these errors were encountered: