googlearchive / chromedeveditor

Chrome Dev Editor is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. (NO LONGER IN ACTIVE DEVELOPMENT)
BSD 3-Clause "New" or "Revised" License
2.92k stars 413 forks source link

[Bower] 'Bower Get/Update' print multiple errors to console #3140

Closed ussuri closed 10 years ago

ussuri commented 10 years ago

Not sure when this got broken, but it used to work before. Now Bower Get or Bower Update print multiple errors like this (several dozens for the "JavaScript web app (using Polymer paper elements)" template):

NotFoundError: A requested file or directory could not be found at the time an operation was processed.
2014-08-13 18:05:11.559
NotFoundError: A requested file or directory could not be found at the time an operation was processed.
2014-08-13 18:05:11.561
NotFoundError: A requested file or directory could not be found at the time an operation was processed.

I can't open the callstack in Dartium for any of the errors: the app crashes hard with no useful debugging info.

In Chrome, the errors look different, and with the callstack open look like this:

CrFileError {jsProxy: JsObject, ^: "ChromeObject;jsProxy", get$message: function, message$2$color: function, get$name: function…}jsProxy: JsObject__proto__: tmp 
spark_polymer.html_bootstrap.dart.js:95178
CrFileError {jsProxy: JsObject, ^: "ChromeObject;jsProxy", get$message: function, message$2$color: function, get$name: function…}jsProxy: JsObject__proto__: tmp
spark_polymer.html_bootstrap.dart.js:95178_handleUncaughtException 
spark_polymer.html_bootstrap.dart.js:95178createSparkZone_closure.call$5 
spark_polymer.html_bootstrap.dart.js:95189_CustomZone.handleUncaughtError$2 
spark_polymer.html_bootstrap.dart.js:42023_Future.static._Future__propagateToListeners 
spark_polymer.html_bootstrap.dart.js:39526(anonymous function) 
spark_polymer.html_bootstrap.dart.js:39419_Future__asyncCompleteError_closure.call$0 
spark_polymer.html_bootstrap.dart.js:39641_rootRun 
spark_polymer.html_bootstrap.dart.js:38670_CustomZone.run$1 
spark_polymer.html_bootstrap.dart.js:42040_CustomZone.runGuarded$1 
spark_polymer.html_bootstrap.dart.js:41940_CustomZone_bindCallback_closure.call$0 
spark_polymer.html_bootstrap.dart.js:42125_AsyncCallbackEntry.callback$0 
spark_polymer.html_bootstrap.dart.js:39833_asyncRunCallbackLoop 
spark_polymer.html_bootstrap.dart.js:38504_asyncRunCallback 
spark_polymer.html_bootstrap.dart.js:38510_AsyncRun__initializeScheduleImmediate_internalCallback.call$1 spark_polymer.html_bootstrap.dart.js:38769invokeClosure_closure0.call$0 
spark_polymer.html_bootstrap.dart.js:4770_IsolateContext.eval$1 
spark_polymer.html_bootstrap.dart.js:2060_callInIsolate 
spark_polymer.html_bootstrap.dart.js:1608invokeClosure 
spark_polymer.html_bootstrap.dart.js:3375(anonymous function) 
spark_polymer.html_bootstrap.dart.js:3394
ussuri commented 10 years ago

With all that, the operation actually succeeds: the packages get downloaded just fine.

ussuri commented 10 years ago

It looks like it's a duplicate of #2982. I'll still keep this one to make sure it's fixed for Bower, too.

ussuri commented 10 years ago

The previous comment was 100% incorrect, and now I've found and fixed the actual root cause (I should have realized that #2982 was related to Git, while Bower fetcher currently doesn't use Git).