Closed buijs-dev closed 1 year ago
From the logs:
## Running analysis for "klutter_ui" version "1.0.1"
STARTED: 2023-10-26T14:59:18.694045Z
### Starting dartdoc
INFO: 2023-10-26 14:59:36.309824: Running `/home/worker/dart/stable/bin/dart --version`...
INFO: 2023-10-26 14:59:36.365039: Running `/home/worker/flutter/stable/bin/flutter --no-version-check --version --machine`...
INFO: 2023-10-26 14:59:36.599670: Downloading package klutter_ui 1.0.1 from https://pub.dartlang.org/packages/klutter_ui/versions/1.0.1.tar.gz
INFO: 2023-10-26 14:59:36.877108: Running pub upgrade
INFO: 2023-10-26 14:59:36.936733: 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)
#1 _dartdoc (package:pub_worker/src/bin/dartdoc_wrapper.dart:140:23)
<asynchronous suspension>
#2 main (package:pub_worker/src/bin/dartdoc_wrapper.dart:56:5)
<asynchronous suspension>
### Execution of dartdoc exited 255
STOPPED: 2023-10-26T14:59:38.534677Z
### Starting pana
2023-10-26 14:59:53.575228 INFO: Running `/home/worker/dart/stable/bin/dart --version`...
2023-10-26 14:59:53.618929 INFO: Running `/home/worker/flutter/stable/bin/flutter --no-version-check --version --machine`...
2023-10-26 14:59:53.874053 INFO: Downloading package klutter_ui 1.0.1 from https://pub.dartlang.org/packages/klutter_ui/versions/1.0.1.tar.gz
2023-10-26 14:59:54.187633 INFO: Running `/home/worker/flutter/stable/bin/flutter --no-version-check pub pub get --no-example`...
2023-10-26 14:59:55.580542 INFO: Running `/home/worker/flutter/stable/bin/flutter --no-version-check pub pub get --no-example`...
2023-10-26 14:59:56.651397 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-26 14:59:58.073508 INFO: Analyzing package...
2023-10-26 14:59:58.103675 INFO: Running `/home/worker/flutter/stable/bin/cache/dart-sdk/bin/dart analyze --format machine lib`...
2023-10-26 15:00:03.595284 INFO: Running `/home/worker/dart/stable/bin/dart format --output=none --set-exit-if-changed /tmp/pana_YRXVUE/lib`...
2023-10-26 15:00:04.217709 INFO: Writing summary.json
### Execution of pana exited 0
STOPPED: 2023-10-26T15:00:04.323707Z
@isoos do you see what is going on?
Apparently we have failed to handle the customization of the empty dartdoc_options.yaml
:
https://github.com/buijs-dev/klutter-dart-ui/blob/main/dartdoc_options.yaml
Problem
On pub my package gets 0/10 points because dart doc fails. Running dart doc locally works (Flutter 3.10.6):
--trace output
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 cast0 yamlToJson (package:pana/src/utils.dart:185:39)
dart-lang/pub#1 _dartdoc (package:pub_worker/src/bin/dartdoc_wrapper.dart:140:23)