Skip to content
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

Stack overflow when using --auto-include-dependencies over angular2_components #1381

Closed
chalin opened this issue Apr 18, 2017 · 1 comment
Closed
Assignees
Labels
P0 A serious issue requiring immediate resolution

Comments

@chalin
Copy link
Contributor

chalin commented Apr 18, 2017

acx > dart --version
Dart VM version: 1.23.0-dev.11.7 (Tue Apr 11 05:34:11 2017) on "macos_x64"

acx > pub global run dartdoc --version
dartdoc version: 0.10.0

acx > pub global run dartdoc --output doc/api --auto-include-dependencies
Generating documentation for 'angular2_components' into ~/git/angular2_components/doc/api/

parsing lib/angular2_components.dart...
Parsed 52 files in 12.3 seconds.

 warning: ambiguous reexport of AbstractProviderError (package:angular2/angular2.dart), canonicalization candidates: (angular2.core, di)

... many similar warnings ...

 warning: ambiguous reexport of UrlResolver (package:angular2/angular2.dart), canonicalization candidates: (angular2, di)

Generation failed: Stack Overflow
package:analyzer/src/dart/resolver/inheritance_manager.dart 266               InheritanceManager._computeClassChainLookupMap
package:analyzer/src/dart/resolver/inheritance_manager.dart 286               InheritanceManager._computeClassChainLookupMap
package:analyzer/src/dart/resolver/inheritance_manager.dart 123               InheritanceManager.getMembersInheritedFromClasses
package:dartdoc/src/model.dart 421                                            Class.inheritedMethods
package:dartdoc/src/model.dart 277                                            Class.allInstanceMethods
package:dartdoc/src/model.dart 1458                                           Library.modelElementsMap.<fn>
package:dartdoc/src/model.dart                                                Library.modelElementsMap
package:dartdoc/src/model.dart 2802                                           Package.findCanonicalLibraryFor
package:dartdoc/src/model.dart 2793                                           Package.isDocumented
package:dartdoc/src/model.dart 525                                            Class.inheritedOperators
package:dartdoc/src/model.dart 310                                            Class.allOperators
package:dartdoc/src/model.dart 1460                                           Library.modelElementsMap.<fn>
package:dartdoc/src/model.dart                                                Library.modelElementsMap
package:dartdoc/src/model.dart 2802                                           Package.findCanonicalLibraryFor
.                                                                             ...
.                                                                             ...
===== asynchronous gap ===========================
dart:async                                                                    _Completer.completeError
package:dartdoc/dartdoc.dart 181                                              DartDoc.generateDocs
===== asynchronous gap ===========================
dart:async                                                                    Future.Future.microtask
package:dartdoc/dartdoc.dart 113                                              DartDoc.generateDocs
../../.pub-cache/hosted/pub.dartlang.org/dartdoc-0.10.0/bin/dartdoc.dart 159  main.<fn>
===== asynchronous gap ===========================
dart:async                                                                    Future.Future.microtask
../../.pub-cache/hosted/pub.dartlang.org/dartdoc-0.10.0/bin/dartdoc.dart 158  main.<fn>
package:stack_trace                                                           Chain.capture
../../.pub-cache/hosted/pub.dartlang.org/dartdoc-0.10.0/bin/dartdoc.dart 158  main

cc @kwalrath @kevmoo

@jcollins-g jcollins-g self-assigned this Apr 19, 2017
@jcollins-g
Copy link
Contributor

jcollins-g commented Apr 19, 2017

We are recomputing things we don't need to, and a recent change in something (SDK?) seems to trigger this more often in complex packages. PR coming up.

@jcollins-g jcollins-g added the P0 A serious issue requiring immediate resolution label Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 A serious issue requiring immediate resolution
Projects
None yet
Development

No branches or pull requests

2 participants