zont / gulp-bower

MIT License
82 stars 22 forks source link

Missing error message (thrown error) #16

Closed niftylettuce closed 10 years ago

niftylettuce commented 10 years ago

This occurs randomly, seems like every other time I run gulp it occurs:

[17:04:53] Starting 'bower'...
[17:04:53] Using cwd:  /Users/nexus/Public/eskimo
[17:04:53] Using bower dir:  ./bower_components
root ./bower_components/jquery stats [ { name: 'dist',
    error:
     { [Error: ENOENT, lstat './bower_components/jquery/dist']
       errno: 34,
       code: 'ENOENT',
       path: './bower_components/jquery/dist' } } ]
error: uncaughtException: Missing error message date=Tue Aug 19 2014 17:04:54 GMT-0400 (EDT), pid=65910, uid=501, gid=20, cwd=/Users/nexus/Public/eskimo, execPath=/usr/local/Cellar/node/0.10.30/bin/node, version=v0.10.30, argv=[node, /usr/local/bin/gulp, build], rss=105168896, heapTotal=90177792, heapUsed=62232104, loadavg=[4.27099609375, 4.74169921875, 4.4755859375], uptime=456155, trace=[column=28, file=/Users/nexus/Public/eskimo/node_modules/gulp-util/lib/PluginError.js, function=new PluginError, line=72, method=null, native=false, column=26, file=/Users/nexus/Public/eskimo/node_modules/gulp-bower/index.js, function=, line=48, method=null, native=false, column=17, file=events.js, function=Walker.emit, line=106, method=emit, native=false, column=10, file=/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/lib/walk.js, function=Walker._wPostFilesHandler, line=129, method=_wPostFilesHandler, native=false, column=16, file=/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/node_modules/foreachasync/forEachAsync.js, function=null, line=15, method=null, native=false, column=null, file=null, function=Array.forEach, line=null, method=forEach, native=true, column=15, file=/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/node_modules/foreachasync/forEachAsync.js, function=Walker.next [as _wCurFileCallback], line=14, method=next [as _wCurFileCallback], native=false, column=29, file=/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/lib/node-type-emitter.js, function=nextWhenReady, line=52, method=null, native=false, column=5, file=/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/lib/node-type-emitter.js, function=Object.emitSingleEvents [as emitNodeType], line=57, method=emitSingleEvents [as emitNodeType], native=false, column=19, file=/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/lib/walk.js, function=Walker._wLstatHandler, line=85, method=_wLstatHandler, native=false], stack=[Error: Missing error message,     at new PluginError (/Users/nexus/Public/eskimo/node_modules/gulp-util/lib/PluginError.js:72:28),     at Walker.<anonymous> (/Users/nexus/Public/eskimo/node_modules/gulp-bower/index.js:48:26),     at Walker.emit (events.js:106:17),     at Walker._wPostFilesHandler (/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/lib/walk.js:129:10),     at /Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/node_modules/foreachasync/forEachAsync.js:15:16,     at Array.forEach (native),     at Walker.next [as _wCurFileCallback] (/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/node_modules/foreachasync/forEachAsync.js:14:15),     at nextWhenReady (/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/lib/node-type-emitter.js:52:29),     at Object.emitSingleEvents [as emitNodeType] (/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/lib/node-type-emitter.js:57:5),     at Walker._wLstatHandler (/Users/nexus/Public/eskimo/node_modules/gulp-bower/node_modules/walk/lib/walk.js:85:19)]
niftylettuce commented 10 years ago

Here's how I fixed, but can we figure out why this occurs further and how to prevent? Maybe bower needs patched?

https://github.com/bower/bower/issues/1019#issuecomment-52700170

zont commented 10 years ago

It is a bower bug. I can not fix it.