Skip to content

Dartdoc crashes on url_launcher 2.0.2 #1627

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 Mar 6, 2018 · 2 comments
Closed

Dartdoc crashes on url_launcher 2.0.2 #1627

isoos opened this issue Mar 6, 2018 · 2 comments
Assignees

Comments

@isoos
Copy link
Contributor

isoos commented Mar 6, 2018

dartdoc --version
dartdoc version: 0.17.0
git clone https://github.com/flutter/plugins
cd plugins/packages/url_launcher
flutter packages get
dartdoc
Generation failed: NoSuchMethodError: The getter 'library' was called on null.
Receiver: null
Tried calling: library
dart:core                                                                               Object.noSuchMethod
package:dartdoc/src/element_type.dart 176                                               ElementType._getElementTypeFrom
package:dartdoc/src/element_type.dart 135                                               ElementType.typeArguments.<fn>
dart:_internal                                                                          ListIterable.toList
package:dartdoc/src/element_type.dart 136                                               ElementType.typeArguments
package:dartdoc/src/element_type.dart 57                                                ElementType.linkedName
package:dartdoc/src/element_type.dart 166                                               ElementType.createLinkedReturnTypeName
package:dartdoc/src/model.dart 3679                                                     ModelFunctionTyped.linkedReturnType
dart:mirrors                                                                            _LocalInstanceMirror.getField
package:mustache4dart/src/mirrors.dart 111                                              _MethodMirrorField.val
package:mustache4dart/mustache_context.dart 122                                         _MustacheContext._getMustacheContext
package:mustache4dart/mustache_context.dart 118                                         _MustacheContext._getContextForKey
package:mustache4dart/mustache_context.dart 82                                          _MustacheContext._getInThisOrParent
package:mustache4dart/mustache_context.dart 78                                          _MustacheContext.field
package:mustache4dart/src/tokens.dart 169                                               _ExpressionToken.apply
package:mustache4dart/src/tokens.dart 40                                                Token.call
package:mustache4dart/src/tmpl.dart 101                                                 _Template._write
package:mustache4dart/src/tmpl.dart 76                                                  _Template.call
package:mustache4dart/src/mustache.dart 11                                              render
package:mustache4dart/src/tokens.dart 211                                               _PartialToken.apply
package:mustache4dart/src/tokens.dart 286                                               _StartSectionToken.apply.<fn>.<fn>
package:mustache4dart/src/tokens.dart 309                                               _StartSectionToken.forEachUntilEndSection
package:mustache4dart/src/tokens.dart 286                                               _StartSectionToken.apply.<fn>
dart:core                                                                               Iterable.forEach
package:mustache4dart/src/tokens.dart 285                                               _StartSectionToken.apply
package:mustache4dart/src/tokens.dart 299                                               _StartSectionToken.apply.<fn>
package:mustache4dart/src/tokens.dart 309                                               _StartSectionToken.forEachUntilEndSection
package:mustache4dart/src/tokens.dart 299                                               _StartSectionToken.apply
package:mustache4dart/src/tokens.dart 40                                                Token.call
package:mustache4dart/src/tmpl.dart 101                                                 _Template._write
package:mustache4dart/src/tmpl.dart 76                                                  _Template.call
package:dartdoc/src/html/html_generator_instance.dart 280                               HtmlGeneratorInstance._build
package:dartdoc/src/html/html_generator_instance.dart 180                               HtmlGeneratorInstance.generateLibrary
package:dartdoc/src/html/html_generator_instance.dart 93                                HtmlGeneratorInstance._generateDocs
package:dartdoc/src/html/html_generator_instance.dart 36                                HtmlGeneratorInstance.generate
===== asynchronous gap ===========================
dart:async                                                                              _Completer.completeError
package:dartdoc/src/html/html_generator_instance.dart                                   HtmlGeneratorInstance.generate
===== asynchronous gap ===========================
dart:async                                                                              new Future.microtask
package:dartdoc/src/html/html_generator_instance.dart 34                                HtmlGeneratorInstance.generate
package:dartdoc/src/html/html_generator.dart 106                                        HtmlGenerator.generate
===== asynchronous gap ===========================
dart:async                                                                              new Future.microtask
package:dartdoc/src/html/html_generator.dart 72                                         HtmlGenerator.generate
package:dartdoc/dartdoc.dart 171                                                        DartDoc.generateDocs
===== asynchronous gap ===========================
dart:async                                                                              _asyncThenWrapperHelper
package:dartdoc/dartdoc.dart 157                                                        DartDoc.generateDocs
/b/build/slave/dart-sdk-mac-dev/build/sdk/third_party/pkg/dartdoc/bin/dartdoc.dart 274  main.<fn>.<fn>
===== asynchronous gap ===========================
dart:async                                                                              new Future.microtask
/b/build/slave/dart-sdk-mac-dev/build/sdk/third_party/pkg/dartdoc/bin/dartdoc.dart 273  main.<fn>.<fn>
dart:async                                                                              runZoned
/b/build/slave/dart-sdk-mac-dev/build/sdk/third_party/pkg/dartdoc/bin/dartdoc.dart 273  main.<fn>
===== asynchronous gap ===========================
dart:async                                                                              new Future.microtask
/b/build/slave/dart-sdk-mac-dev/build/sdk/third_party/pkg/dartdoc/bin/dartdoc.dart 272  main.<fn>
package:stack_trace                                                                     Chain.capture
/b/build/slave/dart-sdk-mac-dev/build/sdk/third_party/pkg/dartdoc/bin/dartdoc.dart 272  main
@jcollins-g
Copy link
Contributor

duplicate of #1625

@jcollins-g
Copy link
Contributor

jcollins-g commented Mar 13, 2018

Publish of 0.17.1+1 should enable you to build docs for this package now; it worked for me when I tried at least. Please let me know if you have further issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants