-
Notifications
You must be signed in to change notification settings - Fork 30
Hard refresh required for alternate template compiles. #36
Comments
I was unable to reproduce the issue. Browser refreshed after each file edit. Using Chrome Stable. What browser are you using?
|
Hmm, that's strange. I'm using Chrome stable on Windows Mine compiles properly every time (i.e. the logs are the same), but it only reloads once, then it gets stuck. The favicon is replaced by chrome's loading animation and it just keeps rotating.. |
So the browser got the auto-reload signal and is trying to refresh, but the built-in brunch server is not responding? That happens on the second edit or the first? Does it eventually time out if you leave it alone? Anything in the console? |
Yes, just tried and it does eventually time out. There's nothing being logged to the console at all. edit: sorry and it happens only on the second edit. Sometimes (rarely) it'll happen on the 3rd edit and not the 2nd. |
If you make an edit after the timeout? |
After the timeout, chrome is displaying the "web page not available" screen, so if I save a changed file again it doesn't trigger a reload. |
The spinning icon thing only happens the second time you make an edit? After the first successful refresh? Do you have a version of this site with links to different pages? Can you navigate through the site normally after that first refresh (clicking links, etc)?
The issue may be in https://github.com/paulmillr/pushserve (brunch's web server), maybe windows-specific. |
This only happens when changing jade templates, and not |
If you just stay on http://localhost:3333 (no hash paths), the same thing happens? Should you possibly be using hashbang syntax (http://localhost:3333/#!/someotherpage)? |
The same thing is happening without any hash paths. For example if I go to just |
In fact, it's worse. The changes are never shown - the page refreshes properly the first time but the html is the same as before. I'm guessing the only reason the partials are working the first time then is because they're being turned into javascript which is properly reloaded. As a test, I just disabled the cache on chrome. Now it gets stuck on first save of a |
I'll have to try to reproduce on windows later. My current theory is that it has to do with the Another thing you could try is to locally edit |
Just tried adding a delay to the reload as you suggested and it solved the issue. I suspect you are right about the collision with Could it alternatively be related to the fact that I'm developing on a laptop with a fairly slow HDD and processor? EDIT p.s. thanks for the help and the interim fix - it's making my life a lot easier! |
System slowness could definitely be a factor. And windows file system works very differently from linux/mac in ways that I know from experience can lead to these types of behavior changes, even though I am not well-versed in the low-level details. You could probably scale that setTimeout back from a full second, experiment to see how much you really need. Closing this, will open a new one about adding a configurable auto-reload delay. |
I'm having a strange issue where the first time I save changes to a jade template, the page refreshes as expected, but for subsequent saves it's getting stuck, and a manual refresh is required.
I would provide some debugging info but I have no idea where to start!
I can reproduce the issue in my skeleton: https://github.com/redders6600/writers-vanilla-brunch
Just change boilerplate.jade whilst watching with a server running...
The text was updated successfully, but these errors were encountered: