Describe the bug
When charites serve is running, deleting or renaming YAML files cause the error:
Error: ENOENT: no such file or directory, stat '/home/keita/workspace/.../{old file name}'
at statSync (node:fs:1659:25)
at FSWatcher.<anonymous> (node:internal/fs/recursive_watch:160:28)
at FSWatcher.emit (node:events:518:28)
at FSWatcher._handle.onchange (node:internal/fs/watchers:215:12) {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/home/keita/workspace/.../{old file name}'
}
To Reproduce
Create charites style.yml
Reference another file using !!inc/file ....yml
Run charites serve style.yml
Move or rename that file (directly referenced files also cause charites to crash)
Expected behavior
Charites should not crash. In the case of a missing file, an error message should be printed to the console, similar to style validation errors.
Screenshots
n/a
Charites Version:
Charites version: 0.5.4, 2.0.0
Desktop (please complete the following information):
Describe the bug When
charites serve
is running, deleting or renaming YAML files cause the error:To Reproduce
!!inc/file ....yml
charites serve style.yml
Expected behavior Charites should not crash. In the case of a missing file, an error message should be printed to the console, similar to style validation errors.
Screenshots n/a
Charites Version:
Desktop (please complete the following information):