den
den copied to clipboard
`den fetch` autocomplete throws without pubspec
~ $ den fetch dar^IUnhandled exception:
Uncaught Error: Invalid argument(s): No package root (containing pubspec.yaml) found in hierarchy of path: /home/me
Stack Trace:
#0 Pubspec._getPackageRoot (package:den_api/src/pubspec.dart:336)
#1 Pubspec.load (package:den_api/src/pubspec.dart:187)
#2 getHostedDependencyNames (package:den/src/util.dart:40)
#3 _getCompletionsForAllowed.<anonymous closure> (package:unscripted/src/plugins/completion/usage_completion.dart:141)
#4 Future.Future.sync (dart:async/future.dart:168)
#5 _getCompletionsForAllowed (package:unscripted/src/plugins/completion/usage_completion.dart:139)
#6 getUsageCompletions.<anonymous closure> (package:unscripted/src/plugins/completion/usage_completion.dart:117)
#7 Future.Future.sync (dart:async/future.dart:168)
#8 getUsageCompletions (package:unscripted/src/plugins/completion/usage_completion.dart:11)
#9 _getCompletionOutput (package:unscripted/src/plugins/completion/completion.dart:158)
#10 CompletionAdapter._complete.<anonymous closure> (package:unscripted/src/plugins/completion/completion.dart:73)
#11 Future.Future.sync (dart:async/future.dart:168)
#12 CompletionAdapter._complete (package:unscripted/src/plugins/completion/completion.dart:64)
#13 CompletionAdapter.onParse (package:unscripted/src/plugins/completion/completion.dart:55)
#14 Completion.onParse (package:unscripted/src/plugins/completion/completion.dart:29)
#15 ScriptImpl.execute.<anonymous closure> (package:unscripted/src/script_impl.dart:34)
#16 ListIterable.every (dart:_internal/iterable.dart:78)
#17 ScriptImpl.execute (package:unscripted/src/script_impl.dart:34)
#18 main (http://localhost:49507/den.dart:6)
#19 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:259)
#20 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)
#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:895)
#1 _microtaskLoop (dart:async/schedule_microtask.dart:43)
#2 _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)
#3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)