fix: patch for infinite loop with panic override (#1964)

This commit is contained in:
Jonathan Rainville 2019-10-11 23:17:33 -04:00 committed by Iuri Matias
parent 5b72620c92
commit 80df4fa11d

View File

@ -192,7 +192,10 @@ class Watcher {
this.logger.trace(files);
let configWatcher = chokidar.watch(files, {
ignored: /[\/\\]\.|tmp_/, persistent: true, ignoreInitial: true, followSymlinks: true
// FIXME this should be handled by the nim-compiler plugin somehow
// panicoverride.nim is a file added by nimplay when compiling but then removed
// If we don't ignore that file, we start an inifite loop of compilation
ignored: /[\/\\]\.|tmp_|panicoverride\.nim/, persistent: true, ignoreInitial: true, followSymlinks: true
});
this.fileWatchers.push(configWatcher);