Closed zoechi closed 4 years ago
den install bogus (bogus = non-existing package) fails with
den install bogus
Unhandled exception: Uncaught Error: The null object does not have a getter 'versions'. NoSuchMethodError: method not found: 'versions' Receiver: null Arguments: [] Stack Trace: #0 Object._noSuchMethod (dart:core-patch/object_patch.dart:42) #1 Object.noSuchMethod (dart:core-patch/object_patch.dart:45) #2 fetchPrimaryVersion.<anonymous closure> (package:den/src/pub.dart:421) #3 _RootZone.runUnary (dart:async/zone.dart:1155) #4 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:484) #5 _Future._propagateToListeners (dart:async/future_impl.dart:567) #6 _Future._completeWithValue (dart:async/future_impl.dart:358) #7 _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:412) #8 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41) #9 _asyncRunCallback (dart:async/schedule_microtask.dart:48) #10 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96) #11 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385) #12 _handleMessage (dart:isolate-patch/timer_impl.dart:407) #13 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:142) #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:886) #1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41) #2 _asyncRunCallback (dart:async/schedule_microtask.dart:48) #3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96) #4 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385) #5 _handleMessage (dart:isolate-patch/timer_impl.dart:407) #6 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:142)
den install bogus
(bogus = non-existing package) fails with