-
Notifications
You must be signed in to change notification settings - Fork 374
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
Cassius/Lucius changes trigger recompilation #1425
Comments
After some catching up with yesod-bin latest changes, I think this behavior emerges from the use of stack's Edit: By using yesod-bin 1.4.18.7 (commit: 1aed870) the recompilation does occur for |
I do not reproduce this. Stack tracks which files to rebuild based on |
Yes, I just created a new instance of the scaffolding with:
And the recompilation occurs on every Does this not happen to you in the scaffolded site? Could it be that I'm doing something wrong but not seeing it (?) |
@alx741 Curious to know what version of
|
Not sure if relevant, but just in case:
|
What resolver are you using?
…On Mon, Jul 31, 2017, 2:19 AM Daniel Campoverde ***@***.***> wrote:
Not sure if relevant, but just in case:
ag -h "addDependent gave me (in a fresh scaffolded site)
.stack-work/dist/x86_64-linux-nopie/Cabal-1.24.2.0/build/src/Handler/Home.dump-hi
384:addDependentFile "templates/homepage.lucius"
385:addDependentFile "templates/homepage.julius"
386:addDependentFile "templates/homepage.hamlet"
387:addDependentFile "templates/homepage.lucius"
388:addDependentFile "templates/homepage.julius"
389:addDependentFile "templates/homepage.hamlet"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1425 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBBzSRYddxv8A3IDYL2P0B2Nbkz3G5ks5sTQ-YgaJpZM4Ongqk>
.
|
Have a couple projects, the same behavior occurs in all of them. These are the resolvers I got:
Edit: yesod-bin 1.5.2.3 in all of them |
So I just freshly installed Ubuntu 16.04 in a virtual machine, then tried with a fresh scaffolded site, and observed the same behavior (needless recompilation after |
Unfortunately I don't think I'm going to get to this soon. The most likely
cause is that `addDependentFile` _is_, for some reason, being called for
functions like cassiusFileReload. If you can track that down in the
shakespeare package, that will probably be the appropriate solution here.
…On Tue, Aug 1, 2017 at 1:35 AM, Daniel Campoverde ***@***.***> wrote:
So I just freshly installed Ubuntu 16.04 in a virtual machine, then tried
with a fresh scaffolded site and observed the same behavior (needless
recompilation after cassius, lucius, julius templates changes)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1425 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBB4djf8HoXo5I6bmssGcLwal-9RR_ks5sTlbMgaJpZM4Ongqk>
.
|
@snoyberg thanks, I was trying to track it down by understanding how Stack handles that stuff (with little success), will take a look into Shakespeare. |
When a change is made in a
cassius
orlucius
file, the change takes effect immediately and can be observed if the page is refresh within <1s after saving the change to the file (time in whichyesod devel
hasn't started recompilation yet). Although the change takes effect,yesod devel
detects the change in the file system and triggers recompilation of the module that invokes the template file, forcing a ~10s unnecessary wait on theThe application isn’t built
page.After saving the change in the template file, the output of
yesod devel
is:Followed by usual recompilation output.
A few months ago a change in a
cassius
orlucius
file didn't use to trigger recompilation (reload mode).Not sure if this new behavior arises from a yesod-bin, or scaffolding update though.
The text was updated successfully, but these errors were encountered: