tmodjs icon indicating copy to clipboard operation
tmodjs copied to clipboard

watch模式中经常中断

Open weishiji opened this issue 10 years ago • 4 comments

fs.js:689 return binding.stat(pathModule.makeLong(path)); ^ Error: ENOENT, no such file or directory '/home/lxg/www/tol-web/protected/vendor/webtemplate/templates/config/template-helper.js___jb_bak__' at Object.fs.statSync (fs.js:689:18) at EventEmitter.Tmod.filter (/home/lxg/www/tol-web/protected/vendor/webtemplate/node_modules/tmodjs/src/tmod.js:391:27) at EventEmitter. (/home/lxg/www/tol-web/protected/vendor/webtemplate/node_modules/tmodjs/src/tmod.js:82:29) at FSWatcher. (/home/lxg/www/tol-web/protected/vendor/webtemplate/node_modules/tmodjs/src/watch.js:53:14) at FSWatcher.emit (events.js:98:17) at FSEvent.FSWatcher._handle.onchange (fs.js:1044:12)

weishiji avatar Jul 11 '14 09:07 weishiji

在 WebStorm 这个 IDE 下有这个 BUG,我缺乏环境,能否帮忙定位下?

应该是这一句造成的:

/home/lxg/www/tol-web/protected/vendor/webtemplate/node_modules/tmodjs/src/tmod.js:391:27

aui avatar Jul 11 '14 10:07 aui

这个会和IDE有关系啊?我怎么定位这个错误,在391行打印一下stat.isDirectory()的输出?

2014-07-11 18:02 GMT+08:00 糖饼 [email protected]:

在 WebStorm 这个 IDE 下有这个 BUG,我缺乏环境,能否帮忙定位下?

应该是这一句造成的:

/home/lxg/www/tol-web/protected/vendor/webtemplate/node_modules/tmodjs/src/tmod.js:391:27

— Reply to this email directly or view it on GitHub https://github.com/aui/tmodjs/issues/40#issuecomment-48713784.

姓名:刘小光 电话:18610078527

weishiji avatar Jul 12 '14 01:07 weishiji

我觉的是IDE的频繁操作所导致的 WEBSTORM会实时保存,很多WATCH的NODE和他协作都有问题

pulo avatar Jul 18 '14 03:07 pulo

我之前定位过这个问题,一直怀疑是 NodeJS 的 bug,接下来只好想办法绕开

aui avatar Jul 18 '14 05:07 aui