Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEmacs lock files cause an UnhandledPromiseRejectionWarning in ng serve #18342
Comments
|
An even easier repro is to just create a dangling symlink in the project root:
|
|
@vbraun, I tried to replicate this but I didn't get the mentioned error
|
|
Hmm, package version mismatch? I've just installed the newest from npm. Downgrading to chokidar@2.1.8 kludges around the issue for me (either by downgrading to watchpack 1.6.1 or getting rid of watchpack's vendored version):
I also tried node v10 and v14, but no dice: Still get the same UnhandledPromiseRejectionWarning |
|
@vbraun, so I did try to replicate this again this time in a Linux container and I did manage to replicate it. This will need some digging. |
|
This is probably paulmillr/chokidar#955 |
Command (mark with an
x)Description
Emacs lock files cause an UnhandledPromiseRejectionWarning. The lock file
.#filenameis actually a symlink pointing nowhere and seems to break the webpack watcher. Also, the lock file is generated once I type anything into the emacs buffer (and not while saving), so there is no point in watching the lock files.Apart from flooding the console with spurious errors the watch&rebuild seems to work