nickjanssen / angus

Declarative build tool for the web.
http://slides.com/nickjanssen/declarative-build-configurations
210 stars 13 forks source link

Live reload fails #19

Open dub4u opened 9 years ago

dub4u commented 9 years ago

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)

nickjanssen commented 9 years ago

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.

dub4u commented 9 years ago

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.

nickjanssen commented 9 years ago

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?

dub4u commented 9 years ago

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.