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

[1.19.0] can't generate docs for angular2 anymore - analyzer NoSuchMethodError #1233

Closed
chalin opened this issue Aug 26, 2016 · 5 comments
Closed
Assignees
Labels
P0 A serious issue requiring immediate resolution type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@chalin
Copy link
Contributor

chalin commented Aug 26, 2016

Having upgraded to 1.19.0, I can no longer build the API docs for angular2. When I try I get:

Generating documentation for 'angular2' into /Users/chalin/tmp/api/

Generation failed: Class 'JavaFile' has no instance getter 'path'.

NoSuchMethodError: method not found: 'path'
Receiver: Instance of 'JavaFile'
Arguments: []
dart:core                                                                                  Object.noSuchMethod
package:analyzer/source/pub_package_map_provider.dart 173                                  PubPackageMapProvider._runPubListDefault
package:analyzer/source/pub_package_map_provider.dart 74                                   PubPackageMapProvider.computePackageMap
package:dartdoc/dartdoc.dart 150                                                           DartDoc._parseLibraries
package:dartdoc/dartdoc.dart 93                                                            DartDoc.generateDocs.<async>
===== asynchronous gap ===========================
dart:async                                                                                 _Completer.completeError
package:dartdoc/dartdoc.dart 139                                                           DartDoc.generateDocs.<async>
===== asynchronous gap ===========================
dart:async                                                                                 Future.Future.microtask
package:dartdoc/dartdoc.dart                                                               DartDoc.generateDocs
/b/build/slave/dart-sdk-mac-stable/build/sdk/third_party/pkg/dartdoc/bin/dartdoc.dart 142  main.<async>.<fn>.<async>
===== asynchronous gap ===========================
package:stack_trace                                                                        Chain.capture
/b/build/slave/dart-sdk-mac-stable/build/sdk/third_party/pkg/dartdoc/bin/dartdoc.dart 141  main.<async>
dart:async                                                                                 _SyncCompleter.complete
package:dartdoc/dartdoc.dart 50                                                            initGenerators.<async>
dart:async                                                                                 _SyncCompleter.complete
package:dartdoc/src/html/html_generator.dart 67                                            HtmlGenerator.create.<async>
dart:async                                                                                 _SyncCompleter.complete
package:dartdoc/src/html/templates.dart 115                                                Templates.create.<async>
dart:async                                                                                 _SyncCompleter.complete
package:dartdoc/src/html/templates.dart 98                                                 Templates.create.<async>._loadTemplate.<async>
dart:async                                                                                 _SyncCompleter.complete
package:dartdoc/src/html/resource_loader.dart 22                                           loadAsString.<async>
dart:async                                                                                 _SyncCompleter.complete
package:dartdoc/src/html/resource_loader.dart 33                                           loadAsBytes.<async>

cc @kwalrath

@dgrove
Copy link

dgrove commented Aug 26, 2016

/cc @keertip

@keertip keertip self-assigned this Aug 26, 2016
@keertip
Copy link
Collaborator

keertip commented Aug 26, 2016

Most likely caused by a change in analyzer api. Will take a look.

chalin added a commit to IdeaBlade/angular.io that referenced this issue Aug 26, 2016
wardbell pushed a commit to angular/angular.io that referenced this issue Aug 26, 2016
@keertip
Copy link
Collaborator

keertip commented Aug 27, 2016

Talked to the analyzer folks, they are in the process of simplifying the creation of the analysis context and adding the necessary uri resolvers. This should be out in a day or two. So waiting on that.

@astashov
Copy link
Contributor

@devoncarew devoncarew added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) P0 A serious issue requiring immediate resolution labels Aug 27, 2016
@devoncarew
Copy link
Member

This is fixed in master; we're waiting on a merge into the current stable SDK.

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 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

5 participants