Closed GroovinChip closed 3 years ago
Have you tried running flutter pub cache repair
followed by flutter pub get
?
This did not help. Here's the log from flutter pub cache repair
:
The log indicates that your dartdoc installation is broken. What is the output of flutter pub global activate dartdoc
?
Resolving dependencies...
+ _fe_analyzer_shared 21.0.0
+ analyzer 1.5.0
+ args 2.1.0
+ async 2.6.1
+ charcode 1.2.0
+ cli_util 0.3.0
+ collection 1.15.0
+ convert 3.0.0
+ crypto 3.0.1
+ csslib 0.17.0
+ dartdoc 0.42.0
+ file 6.1.0
+ glob 2.0.1
+ html 0.15.0
+ logging 1.0.1
+ markdown 4.0.0
+ meta 1.3.0
+ package_config 2.0.0
+ path 1.8.0
+ pedantic 1.11.0
+ pub_semver 2.0.0
+ source_span 1.8.1
+ string_scanner 1.1.0
+ term_glyph 1.2.0
+ typed_data 1.3.0
+ watcher 1.0.0
+ yaml 3.1.0
Precompiling executables...
Precompiled dartdoc:dartdoc.
Installed executable dartdoc.
Activated dartdoc 0.42.0.
It has started working again. Not sure why, but I'm closing this issue since the problem is gone.
(I'm opening this issue because Google search actually resulted in the message that there aren't any good results for my search.)
Running dartdoc for my flutter package results in the following error:
I am using the latest version of dartdoc (0.42.0) and am on the latest stable version of Flutter.
Here's my `flutter doctor -v` output:
``` [✓] Flutter (Channel stable, 2.0.6, on macOS 11.3 20E232 darwin-x64, locale en-US) • Flutter version 2.0.6 at /Users/groov/development/flutter • Framework revision 1d9032c7e1 (9 days ago), 2021-04-29 17:37:58 -0700 • Engine revision 05e680e202 • Dart version 2.12.3 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/groov/Library/Android/sdk • Platform android-30, build-tools 30.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.55.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.21.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 11.3 20E232 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93 • No issues found! ```