当我尝试记录我的dart
代码时,我收到以下错误:
Unhandled exception:
Invalid argument (uri): Unknown package: Instance of '_SimpleUri'
#0 ResourceLoader.resolveResourceUri.<anonymous closure> (package:dartdoc/src/generator/resource_loader.dart:41:11)
<asynchronous suspension>
#1 ResourceLoader.getResourceFile (package:dartdoc/src/generator/resource_loader.dart:31:15)
<asynchronous suspension>
#2 _DefaultTemplatesLoader.loadTemplate (package:dartdoc/src/generator/templates.dart:168:24)
<asynchronous suspension>
#3 Templates._create (package:dartdoc/src/generator/templates.dart:265:25)
<asynchronous suspension>
#4 initHtmlGenerator (package:dartdoc/src/generator/html_generator.dart:22:19)
<asynchronous suspension>
#5 Dartdoc.fromContext (package:dartdoc/dartdoc.dart:149:21)
<asynchronous suspension>
#6 main (file:///b/s/w/ir/cache/builder/src/third_party/dart/third_party/pkg/dartdoc/bin/dartdoc.dart:24:9)
<asynchronous suspension>
当我使用命令dart --version
时,我得到这个:
Dart SDK version: 2.13.1 (stable) (Fri May 21 12:45:36 2021 +0200) on "linux_x64"
dartdoc --version
:
dartdoc version: 0.42.0
为什么会这样?我是飞镖新手,所以我不知道如何调试它。