-
Notifications
You must be signed in to change notification settings - Fork 159
Dart doc failed after publishing but works fine locally #7149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
From the logs:
@isoos do you see what is going on? |
Apparently we have failed to handle the customization of the empty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
On pub my package gets 0/10 points because dart doc fails.
Running dart doc locally works (Flutter 3.10.6):
--trace output
STARTED: 2023-10-20T17:09:13.586798Z
Starting dartdoc
INFO: 2023-10-20 17:09:30.253398: Running
/home/worker/dart/stable/bin/dart --version
...INFO: 2023-10-20 17:09:30.368589: Running
/home/worker/flutter/stable/bin/flutter --no-version-check --version --machine
...WARNING: 2023-10-20 17:09:31.096535: Unable to detect Flutter version.
ERROR: Exception: Unable to parse output as JSON:
, null
INFO: 2023-10-20 17:09:31.139907: Downloading package klutter_ui 1.0.1 from https://pub.dartlang.org/packages/klutter_ui/versions/1.0.1.tar.gz
INFO: 2023-10-20 17:09:31.391354: Running pub upgrade
INFO: 2023-10-20 17:09:31.447317: Running
/home/worker/flutter/stable/bin/flutter --no-version-check packages pub upgrade --no-example --verbose
...Unhandled exception:
type 'Null' is not a subtype of type 'YamlMap' in type cast
#0 yamlToJson (package:pana/src/utils.dart:185:39)
dart-lang/pub#1 _dartdoc (package:pub_worker/src/bin/dartdoc_wrapper.dart:140:23)
dart-lang/pub#2 main (package:pub_worker/src/bin/dartdoc_wrapper.dart:56:5)
Execution of dartdoc exited 255
STOPPED: 2023-10-20T17:09:40.411301Z
Starting pana
2023-10-20 17:09:54.731194 INFO: Running
/home/worker/dart/stable/bin/dart --version
...2023-10-20 17:09:54.774316 INFO: Running
/home/worker/flutter/stable/bin/flutter --no-version-check --version --machine
...2023-10-20 17:09:55.389446 INFO: Downloading package klutter_ui 1.0.1 from https://pub.dartlang.org/packages/klutter_ui/versions/1.0.1.tar.gz
2023-10-20 17:09:55.756660 INFO: Running
/home/worker/flutter/stable/bin/flutter --no-version-check pub pub get --no-example
...2023-10-20 17:09:57.090701 INFO: Running
/home/worker/flutter/stable/bin/flutter --no-version-check pub pub get --no-example
...2023-10-20 17:09:58.135475 INFO: Running
/home/worker/flutter/stable/bin/flutter --no-version-check pub pub outdated --json --up-to-date --no-dev-dependencies --no-dependency-overrides
...2023-10-20 17:09:59.520097 INFO: Analyzing package...
2023-10-20 17:09:59.550283 INFO: Running
/home/worker/flutter/stable/bin/cache/dart-sdk/bin/dart analyze --format machine lib
...2023-10-20 17:10:13.026050 INFO: Running
git init
...2023-10-20 17:10:13.198140 INFO: Running
git remote add origin https://github.com/buijs-dev/klutter-dart-ui
...2023-10-20 17:10:13.250596 INFO: Running
git remote show origin
...2023-10-20 17:10:15.150477 INFO: Running
git fetch --depth 1 --no-recurse-submodules origin main
...2023-10-20 17:10:15.889130 INFO: Running
git ls-tree -r --name-only --full-tree origin/main
...2023-10-20 17:10:15.917670 INFO: Running
git show origin/main:pubspec.yaml
...2023-10-20 17:10:16.510151 INFO: Running
/home/worker/dart/stable/bin/dart format --output=none --set-exit-if-changed /tmp/pana_SRKVUN/lib
...2023-10-20 17:10:17.749240 INFO: Writing summary.json
Execution of pana exited 0
STOPPED: 2023-10-20T17:10:17.853203Z
The text was updated successfully, but these errors were encountered: