-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failurestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
When a package has no .dart files in it, dartdoc
fails with the following output:
Unhandled exception:
dartdoc could not find any libraries to document
#0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:218:9)
<asynchronous suspension>
#1 main (file:///project/pkg/pub_dartdoc/bin/pub_dartdoc.dart:27:33)
<asynchronous suspension>
#2 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Instead, dartdoc
should emit a warning, and still generate the index.html
file based on the README.md
.
Example package from pub.dev: cupertino_icons
, bulma_min
.
Metadata
Metadata
Assignees
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failurestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug