-
Notifications
You must be signed in to change notification settings - Fork 118
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
dartdoc outputs unresolved export uri
error
#2143
Comments
@mhmdanas Is there anything you can share about the package you are documenting? |
Triaging as "P1" pending more information. |
I just created a new flutter project with |
Same here with my library https://pub.dev/packages/tweet_ui#-analysis-tab- |
Can reproduce at head flutter as well with latest dartdoc. Looking. |
This seems to be due to some missing URI mappings in embedder.yaml. How Flutter works without analysis errors despite the missing mappings is curious. |
The root cause is that
This proves that the lack of html_common is a real problem. The analyzer hides errors generated by the SDK which is why we don't see it directly. The fix will need to proceed in two stages: first, add the |
first stage of fix: https://dart-review.googlesource.com/c/sdk/+/143020 |
This will enable a fix to an unresolved export that causes Dartdoc to complain about all Flutter packages. Bug: dart-lang/dartdoc#2143 Change-Id: I634e21066420b100295989cf9bdcd35af91a617b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143020 Reviewed-by: Devon Carew <devoncarew@google.com> Commit-Queue: Janice Collins <jcollins@google.com>
The fix for #1949 eliminates this bug as well and will go out in the next version. There is still the general issue of sky_engine reexporting dart libraries with missing mappings, but I'll leave that question to flutter./flutter#54793 as it's no longer creating an acute problem for dartdoc. |
This reverts commit 75e1f2a. Reason for revert: Fix for dartdoc #1949 makes this no longer strictly necessary. While this leaves the underlying imports unfixed, I will instead file an issue against the engine. Original change's description: > Add html_common to .gni files. > > This will enable a fix to an unresolved export that causes Dartdoc > to complain about all Flutter packages. > > Bug: dart-lang/dartdoc#2143 > Change-Id: I634e21066420b100295989cf9bdcd35af91a617b > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143020 > Reviewed-by: Devon Carew <devoncarew@google.com> > Commit-Queue: Janice Collins <jcollins@google.com> # Not skipping CQ checks because original CL landed > 1 day ago. Bug: dart-lang/dartdoc#2143 Change-Id: Ibe25eee8031b348d9260245daca84d9742fbb894 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143402 Reviewed-by: Mike Fairhurst <mfairhurst@google.com> Commit-Queue: Janice Collins <jcollins@google.com>
Output of
flutter doctor
:Part of output:
Note: The
doc
directory is still created successfully.The text was updated successfully, but these errors were encountered: