arboleya / coffee-toaster

Minimalist build system for CoffeeScript.
114 stars 23 forks source link

toaster -w conflicts with emacs #59

Open elthariel opened 11 years ago

elthariel commented 11 years ago

Hi,

I'm an emacs user and try to use toaster on one of my coffee project. If i edit a file with emacs that is currently watched by toaster, it will make coffee script crash due to some emacs behavior.

Whenever you edit a file with emacs, it creates a simlink to a non-existing file (it holds informations about who's currently editing the file), this cause a ENOENT exception within DirWatcher which is not handled and make toaster quit.

Here's an example trace :

[16:36:35] Compiled /home/lta/code/node/test/www/js/test.js

fs.js:524
  return binding.stat(pathModule._makeLong(path));
                 ^
Error: ENOENT, no such file or directory '/home/lta/code/node/test/src/.#test.coffee'
    at Object.fs.statSync (fs.js:524:18)
    at DirWatcher.diff (/usr/local/lib/node_modules/coffee-toaster/node_modules/fs-util/lib/fs-util.js:313:21)
    at DirWatcher.onchange (/usr/local/lib/node_modules/coffee-toaster/node_modules/fs-util/lib/fs-util.js:284:17)
    at FSWatcher.__bind (/usr/local/lib/node_modules/coffee-toaster/node_modules/fs-util/lib/fs-util.js:4:61)
    at FSWatcher.EventEmitter.emit (events.js:99:17)
    at FSEvent._handle.onchange (fs.js:826:12)
elthariel commented 11 years ago

refs #47

arboleya commented 11 years ago

Very well, I'll take a look into this as soon as I can.

Thanks.

arboleya commented 11 years ago

Well, can't see it yet. I currenty don't have emacs here.

As you mentioned, this should have strong relations with the issue refs #47.

Can you tell if the emacs behavior is similar to vim?

arboleya commented 11 years ago

@elthariel Hi, I just want to tell you that I'm discontinuing Toaster in favor of it's new fork named Polvo.

More info here:

https://github.com/serpentem/coffee-toaster https://github.com/serpentem/coffee-toaster/wiki