Skip to content

dartdoc will crash if a package references dart libraries that do not end in '.dart' #1897

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

Closed
isoos opened this issue Jan 10, 2019 · 1 comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@isoos
Copy link
Contributor

isoos commented Jan 10, 2019

NPE on trello_dart 0.0.1 (dartdoc 0.27.0)

Exception while generating doc for trello_dart 0.0.1:

NoSuchMethodError: The getter 'inheritanceManager' was called on null.
Receiver: null
Tried calling: inheritanceManager
#0      Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
#1      Class._inheritedElements (package:dartdoc/src/model.dart:1044:61)
#2      Class.inheritedMethods (package:dartdoc/src/model.dart:836:11)
#3      Class.allInstanceMethods (package:dartdoc/src/model.dart:626:48)
#4      Class.allModelElements (package:dartdoc/src/model.dart:730:13)
#5      Library.modelElementsMap.<anonymous closure> (package:dartdoc/src/model.dart:2614:15)
#6      ExpandIterator.moveNext (dart:_internal/iterable.dart:481:29)
#7      ExpandIterator.moveNext (dart:_internal/iterable.dart:475:31)
#8      Iterable.forEach (dart:core/iterable.dart)
#9      Library.modelElementsMap (package:dartdoc/src/model.dart:2631:15)
#10     Library.allModelElements (package:dartdoc/src/model.dart:2645:47)
@jcollins-g jcollins-g added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) P1 A high priority bug; for example, a single project is unusable or has many test failures labels Jan 11, 2019
@jcollins-g jcollins-g changed the title NPE on trello_dart 0.0.1 (dartdoc 0.27.0) dartdoc will crash if a package references dart libraries that do not end in '.dart' Jan 11, 2019
@jcollins-g
Copy link
Contributor

trello_dart does something technically valid but unexpected: it has dart files that don't have the correct suffix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants