headstart
headstart copied to clipboard
Watch crashes when renaming a folder
Probably related to this issue. Might involve having to get @floatdrop's approval through issue/PR to upgrade the dependency.
You can switch to [email protected]
with updated gaze dependency.
I'll try that out later this week, thanks!
Getting the following error when installing 0.7.0-alpha3
.
Revisiting this for the next minor instead of the next patch update.
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the gaze package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls gaze
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Applications/MAMP/htdocs/headstart
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Applications/MAMP/htdocs/headstart/npm-debug.log
npm ERR! not ok code 0
@flovan you skipped all information about the error.
Oops, I didn't mean to bump you on this.. I think it might be because I'm running OS X Yosemite and the Command line developer tools and Xcode are still in beta. Here's the other error-like part from the install output:
> [email protected] install /Applications/MAMP/htdocs/headstart/node_modules/gulp-watch/node_modules/gaze
> node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Applications/MAMP/htdocs/headstart/node_modules/gulp-watch/node_modules/gaze
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
Edit:
Was able to get the rebuild working by pointing xcode-select
to the proper Xcode location.
sudo xcode-select -switch /Applications/Xcode6-Beta.app/Contents/Developer
Most crashes have stopped, but I could still make it error:
- Added a new folder inside of
assets/js/libs
in the watched directoryassets/js
- Changed the default "untitled folder" to "test" (note that I didn't hit enter before changing the name, so "untitled folder" was never confirmed)
- Dragged a JS file into the folder, got following error (no crash):
fs.js:17881: Uncaught Error: ENOENT, no such file or directory '/Applications/MAMP/htdocs/headstart-website/assets/js/libs/untitled folder/
(see how it detected the folders original name upon creation) - Changed name of JS file, same error came out.
I had one crash but couldn't reproduce it...
And then there's this other issue with renaming / duplicating, then deleting a file.
For example I duplicated prism.js
in assets/js/libs
which gave me the following error of @sindresorhus's gulp-ruby-sass
plugin (which has nothing to do at all with this directory, nor does it have a watch here):
[12:35:01] [gulp-ruby-sass]
Syntax error: Inconsistent indentation: "\t\t\t\t\t " was used for indentation, but the rest of the document was indented using 1 tab.
on line 230 of /Applications/MAMP/htdocs/headstart-website/assets/js/libs/prism copy.js
Deleting the file then crashed the process with:
processing .js
fs.js:684
return binding.stat(pathModule._makeLong(path));
^
Error: ENOENT, no such file or directory '.js'
at Object.fs.statSync (fs.js:684:18)
at addToGraph (/Applications/MAMP/htdocs/headstart/node_modules/gulp-sass-graph/index.js:20:17)
at Transform.<anonymous> (/Applications/MAMP/htdocs/headstart/node_modules/gulp-sass-graph/index.js:131:14)
at Object.oncomplete (fs.js:107:15)
These might all be edge-cases, or something to do with my setup. But I tried to document them if anyone feels like investigating later on.
For now I'm going to stick with the stable release of gulp-watch
as I prefer crashing over weird cross-module errors.