-
Notifications
You must be signed in to change notification settings - Fork 124
dartdoc does not understand sdk_ext #763
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
Comments
@eseidelGoogle, try running |
Thats how we handle it today: But that should no longer be necessary with the recent analyzer changes is my understanding? |
Looked at the sdk_ext support in analyzer, have to add code to |
I can't really make further progress until at least: dart-lang/dartdoc#766 is resolved, ideally also: dart-lang/dartdoc#763 @abarth
Thanks for the report! (I'm a bit surprised we don't just get this one for free, but we'll certainly add it.) |
Looked at this a bit more, there is some logic to initialize package uris and the sdk extensions. This should be in analyzer package instead of analyzer_cli, so that dartdoc and other tools can make use of it. Will do that, and then dartdoc gets the sdk extensions for free. |
Fixed with #805 Thanks for the report! |
sky uses the new sdk_ext feature of the analysis server to define dart:sky. Unfortunately dartdoc doesn't seem to understand this?
pub get
dartdoc
Generating documentation for 'docdemo' into /src/docdemo/doc/api/
parsing lib/main.dart...
Parsed 1 file in 3.2 seconds.
[error] Target of URI does not exist: 'dart:sky' at lib/main.dart, line 1.
Generation failed: encountered 1 analysis error.
@abarth
The text was updated successfully, but these errors were encountered: