Skip to content

Use only canonical elements when resolving unresolved refs in comments #1329

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

Conversation

astashov
Copy link
Contributor

If we don't do that, dartdoc will think there's ambiguity if several
libs export the same elements (like in Flutter, e.g. widgets exports
Flexible and material exports Flexible). And we won't get links
for these references and will get warnings about ambiguity in
stderr.

Testing: Generated Flutter docs, made sure fit from Flexible class
resolves correctly and doesn't produce a warning

Fixes #1328

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jan 19, 2017
If we don't do that, dartdoc will think there's ambiguity if several
libs export the same elements (like in Flutter, e.g. `widgets` exports
`Flexible` and `material` exports `Flexible`). And we won't get links
for these references and will get warnings about ambiguity in
stderr.

Testing: Generated Flutter docs, made sure `fit` from `Flexible` class
resolves correctly and doesn't produce a warning

Fixes dart-lang#1328
@astashov astashov force-pushed the use-canonical-elements-for-resolving-references branch from d788f79 to 095869b Compare January 19, 2017 03:25
@devoncarew devoncarew requested a review from keertip January 25, 2017 23:59
@devoncarew
Copy link
Member

Adding @keertip to review

@brianegan
Copy link

Any chance we could bump the priority on this and get a deploy to dartdocs.org? Our docs for RxDart are broken as well due to this bug :(

@keertip keertip merged commit d07dcfa into dart-lang:master Feb 14, 2017
@keertip
Copy link
Collaborator

keertip commented Feb 14, 2017

Will publish a version with this fix so that dartdocs.org can be updated. Sorry for the delay.

@brianegan
Copy link

👍 Thanks for the help @keertip!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

We see ambiguous references when we think we shouldn't
5 participants