-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
au run --watch doesn't detect file changes in some cases #787
Comments
Could you provide a repository that has this setup? That would make it easier to start debugging |
I had a similar issue observing file changes in a samba mount. Adding usePolling to gulp.watch configuration solved it.
|
This is likely a limitation from chokidar (which gulp-watch uses) instead of aurelia-cli. The solution is similar to @ccrd suggested, just use polling. |
documentation edge case with watching not real file system |
added this to #787 |
I'm submitting a bug report
Aurelia cli 0.32.0
Please tell us about your environment:
Operating System:
Linux (Debian Jessie inside Docker container), Windows 10 (Docker Host)
Node Version:
8.9.1
5.5.1
Browser:
all
Language:
TypeScript 2.6
Loader/bundler:
RequireJS
Current behavior:
I'm testing Aurelia, and since I didn't want to install too much things directly on my machine, I decided to try to create a Docker image for development with Aurelia. I based it upon Debian Jessie and installed all the necessary dependencies to get Aurelia CLI working (Git, NodeJs, NPM).
I have linked the ports (9000 and 3001) of the Docker image to the same ports on my Windows 10 host, and created a volume in the Docker image that is linked to a local folder in the host. I then created a new Aurelia project using
au new
inside of the volume used by the Docker image. This way, I can access the app code from my local machine as well as from the Docker image.When I start the app with
au run --env dev --watch
, it builds and I can access it fine by going to localhost:9000 from my local machine. If I modify a file directly from the Docker image (using vi for example), it detects that the file changed and triggers a rebuild, and I see the changes in the page directly.However, if I change the files from the host, the watcher doesn't see that a file has changed and doesn't trigger the build. I can see that the file has changed on the Docker image, and that the "modified date" was updated, but the watcher doesn't see it. If I simply
touch filename
, then the watcher triggers a rebuilds and serves the new file.I would expect the watcher to detect the file change, even if it's coming from the host.
The text was updated successfully, but these errors were encountered: