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

Comments

@chalin
Copy link
Contributor

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

This comment has been minimized.

Copy link
Member

commented Aug 26, 2016

/cc @keertip

@keertip keertip self-assigned this Aug 26, 2016

@keertip

This comment has been minimized.

Copy link
Contributor

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 added a commit to angular/angular.io that referenced this issue Aug 26, 2016
@keertip

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2016

@devoncarew

This comment has been minimized.

Copy link
Member

commented Aug 29, 2016

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

@devoncarew devoncarew closed this Aug 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.