mechio / takana

Takana lets you see your SCSS and CSS style changes live, in the browser, as you type them
http://takana.io
MIT License
1.11k stars 61 forks source link

takana crashing on browser refresh #72

Open ob7 opened 9 years ago

ob7 commented 9 years ago

Hello,

When I run takana on my sites directory, everything looks good, until I hit refresh on my browser. Then I get the following error and I'm pushed back out to the command line.

fs.js:1172 throw errnoException(err, 'watch'); ^ Error: watch ENOSPC at exports._errnoException (util.js:746:11) at FSWatcher.start (fs.js:1172:11) at Object.fs.watch (fs.js:1198:11) at EventEmitter.FSWatcher._watch (/usr/lib/node_modules/takana/node_modules/chokidar/index.js:253:18) at EventEmitter.FSWatcher._handleFile (/usr/lib/node_modules/takana/node_modules/chokidar/index.js:308:8) at /usr/lib/node_modules/takana/node_modules/chokidar/index.js:384:62 at FSReqWrap.oncomplete (fs.js:95:15)


Edit: I tried to do a reinstall, and npm gave error that it could not find python executable

running which python showed me that the system was looking for python in usr/local/bin instead of /usr/bin (as it was before). I made a ln -sf from /usr/bin/python2.7 to /usr/local/bin and now the reinstall is working. I wonder if thats why I got the error above to begin with.

Edit: Getting my python path set did not fix this problem, after reinstalling, it still persists. I'm using takana 0.4.2. I would use 0.4.3, but theres another issue with that version in where the css file inside scratch are all blank. It outputs and even overwrites any css file in scratch directory with blank file. 0.4.2 wasn't doing that. But for whatever reason, this morning I'm getting the new error as above, and I'm unable to use takana. Please help, or I will figure it out myself.

ob7 commented 9 years ago

Still crashing...I've cleaned out the scratch directory and still no dice.

[08:44:55] [INFO] - rendered /mnt/htdocs/htdocs/big-street/css/main.css fs.js:1172 throw errnoException(err, 'watch'); ^ Error: watch ENOSPC at exports._errnoException (util.js:746:11) at FSWatcher.start (fs.js:1172:11) at Object.fs.watch (fs.js:1198:11) at EventEmitter.FSWatcher._watch (/usr/lib/node_modules/takana/node_modules/chokidar/index.js:253:18) at EventEmitter.FSWatcher._handleFile (/usr/lib/node_modules/takana/node_modules/chokidar/index.js:3

ob7 commented 9 years ago

I upgraded to 4.3, and made sure to run takana on site root instead of my project folder root (many many websites).