question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

au run --watch doesn't detect file changes in some cases

See original GitHub issue

I’m submitting a bug report

  • Library Version: 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

  • NPM Version: 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.

  • What is the expected behavior?

I would expect the watcher to detect the file change, even if it’s coming from the host.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JeroenVinkecommented, Mar 19, 2018
1reaction
Alexander-Tarancommented, Feb 27, 2018

documentation help_needed

edge case with watching not real file system

Read more comments on GitHub >

github_iconTop Results From Across the Web

Aurelia au run --watch... not watching - Stack Overflow
I downloaded an Aurelia project for testing purpose. After restoring the packages ( npm install ) and running the application ( au run...
Read more >
linux - How to execute a command whenever a file changes?
Simple, using inotifywait (install your distribution's inotify-tools package): while inotifywait -e close_write myfile.py; do ./myfile.py; done.
Read more >
npm run watch not actually watching files - Laracasts
Problem solved. It was not really a problem. When you are watching mix.scripts(), they do not show anything in console, so it's actually...
Read more >
App Store Review Guidelines - Apple Developer
The App Store Review Guidelines provide guidance and examples across a range of development topics, including user interface design, ...
Read more >
Request app permissions - Android Developers
... run a wearable app · Debug a Wear OS app · Capture Wear UI screenshots. Apps. Overview · Standalone apps · Authentication...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found