angus icon indicating copy to clipboard operation
angus copied to clipboard

Live reload fails

Open dub4u opened this issue 9 years ago • 4 comments

On a fresh install of 0.8.1

angus create my-app
cd my-app
angus dev

I'm now pointing my browser to http://localhost:9000 and it works fine.

Now I make one change to src/core/app.js and the browser reloads and shows the change. But that is the last time the browser reloads and shows a change. Any subsequent changes to src/core/app.js or even src/index.html are not being reflected in the browser.

System is Ubuntu 14.04, node v0.10.32 installed via nvm.

(By the way, installing node via nvm also solves #18)

dub4u avatar Sep 27 '14 01:09 dub4u

Hi @dub4u, sorry for my late answer. I could not replicate the issue on my mac and it's likely an ubuntu issue. I will play around later with a docker container on ubuntu 14.04 to see if I can replicate it there.

nickjanssen avatar Sep 29 '14 15:09 nickjanssen

I just played with this again and it isn't as consistent as my inital submission sounds. But it does go wrong eventually. Just make a few changes and eventuelly live reload stops. When you then C-c kill the "angus dev" process and restart it things start to work again.

dub4u avatar Sep 30 '14 06:09 dub4u

I tried again, but it still keeps working even after making changes for 20 times. Can you give me an exact way to replicate your issue? Can you do it with the example apps? What kind of project are you working on?

nickjanssen avatar Oct 02 '14 18:10 nickjanssen

I'm just evaluating starter kits, so I'm seeing this in hello-world-jquery. I have Google's web-starter-kit installed on the same system which uses the same gulp version as this project (3.8.8). web-starter-kit live reloads fine and as expected.

I dug a bit further into this and it seems that somehow the filesystem watch stops working. I added a console.log('getting here') in node_modules/gulp/index.js at line 36 and I can see that when the live reload fails the debugging statement also isn't run. So things already break in the watcher somehow.

It's odd that on the same system, the same fs watcher works absolutely fine in web-starter-kit, but doesn't work in angus' hello-world-jquery.

dub4u avatar Oct 03 '14 09:10 dub4u