-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
flutter/flutter
#68791Labels
P0A serious issue requiring immediate resolutionA serious issue requiring immediate resolutioncustomer-flutterIssues originating from important to FlutterIssues originating from important to Fluttertype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
Multiple packages are affected, for example:
- https://pub.dev/packages/hotreloader (pub.dev fails to run dartdoc: "NoSuchMethodError: The getter 'documentationComment' was called on null." pub-dev#4166)
- https://pub.dev/packages/ninja_prime (NoSuchMethodError: The getter 'documentationComment' was called on null. pub-dev#4167)
With dartdoc 0.36.0
, the exception is:
dartdoc failed: NoSuchMethodError: The getter 'hasNodoc' was called on null.
Receiver: null
Tried calling: hasNodoc
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 Accessor.computeDocumentationComment (package:dartdoc/src/model/accessor.dart:62:25)
#2 DocumentationComment.documentationComment (package:dartdoc/src/model/documentation_comment.dart:39:31)
#3 ModelElement.computeDocumentationFrom (package:dartdoc/src/model/model_element.dart:592:9)
#4 ModelElement.documentationFrom (package:dartdoc/src/model/model_element.dart:572:28)
#5 PackageGraph.precacheLocalDocs.<anonymous closure>.precacheOneElement.<anonymous closure> (package:dartdoc/src/model/package_graph.dart:109:16)
#6 _SyncIterator.moveNext (dart:core-patch/core_patch.dart:165:25)
#7 Future.wait (dart:async/future.dart:406:26)
#8 PackageGraph.initializePackageGraph (package:dartdoc/src/model/package_graph.dart:74:18)
#9 PubPackageBuilder.buildPackageGraph (package:dartdoc/src/model/package_builder.dart:77:20)
<asynchronous suspension>
#10 Dartdoc.generateDocsBase (package:dartdoc/dartdoc.dart:182:41)
#11 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:223:34)
#12 Dartdoc.executeGuarded.<anonymous closure> (package:dartdoc/dartdoc.dart:500:15)
#13 _rootRun (dart:async/zone.dart:1190:13)
#14 _CustomZone.run (dart:async/zone.dart:1093:19)
#15 _runZoned (dart:async/zone.dart:1630:10)
#16 runZonedGuarded (dart:async/zone.dart:1618:12)
#17 Dartdoc.executeGuarded (package:dartdoc/dartdoc.dart:498:5)
#18 main (file:///Users/isoos/.pub-cache/hosted/pub.dartlang.org/dartdoc-0.36.0/bin/dartdoc.dart:26:11)
Prior to that, with dartdoc 0.35.0
the exception was:
dartdoc failed: NoSuchMethodError: The getter 'documentationComment' was called on null.
Receiver: null
Tried calling: documentationComment
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 Accessor.computeDocumentationComment (package:dartdoc/src/model/accessor.dart:67:44)
#2 DocumentationComment.documentationComment (package:dartdoc/src/model/documentation_comment.dart:39:31)
#3 ModelElement.computeDocumentationFrom (package:dartdoc/src/model/model_element.dart:589:9)
#4 ModelElement.documentationFrom (package:dartdoc/src/model/model_element.dart:569:28)
#5 PackageGraph.precacheLocalDocs.<anonymous closure>.precacheOneElement.<anonymous closure> (package:dartdoc/src/model/package_graph.dart:109:16)
#6 _SyncIterator.moveNext (dart:core-patch/core_patch.dart:165:25)
#7 Future.wait (dart:async/future.dart:406:26)
#8 PackageGraph.initializePackageGraph (package:dartdoc/src/model/package_graph.dart:74:18)
#9 PubPackageBuilder.buildPackageGraph (package:dartdoc/src/model/package_builder.dart:77:20)
<asynchronous suspension>
#10 Dartdoc.generateDocsBase (package:dartdoc/dartdoc.dart:182:41)
#11 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:223:34)
#12 Dartdoc.executeGuarded.<anonymous closure> (package:dartdoc/dartdoc.dart:500:15)
#13 _rootRun (dart:async/zone.dart:1190:13)
#14 _CustomZone.run (dart:async/zone.dart:1093:19)
#15 _runZoned (dart:async/zone.dart:1630:10)
#16 runZonedGuarded (dart:async/zone.dart:1618:12)
#17 Dartdoc.executeGuarded (package:dartdoc/dartdoc.dart:498:5)
#18 main (file:///Users/isoos/.pub-cache/hosted/pub.dartlang.org/dartdoc-0.35.0/bin/dartdoc.dart:26:11)
jonasfj, dnfield and jonataslaw
Metadata
Metadata
Assignees
Labels
P0A serious issue requiring immediate resolutionA serious issue requiring immediate resolutioncustomer-flutterIssues originating from important to FlutterIssues originating from important to Fluttertype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)