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

Analysis Server doesn't provide navigation information for non-imported dartdoc symbols in comments #44637

Closed
alexander-doroshko opened this issue Jan 11, 2021 · 2 comments
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request

Comments

@alexander-doroshko
Copy link

Dart SDK 2.10.4 or 2.12.0-198.0.dev. Sample code:

/// See class [FutureOr]
class Foo {}

Analysis Server doesn't provide navigation information for FutureOr unless dart:async is explicitly imported.

AFAIU, unambiguous references in docs should be resolved even without imports. This functionality has been discussed in dart-lang/dartdoc#1153 and fixed by dart-lang/dartdoc#1298. Probably this regressed.

@bwilkerson
Copy link
Member

Actually, it isn't a regression. In pre-Dart 1 days the specification actually included references in documentation comments and it didn't allow references to things that hadn't been imported. When dartdoc was implemented that behavior was extended (and the spec wording was removed), but analyzer has just never been updated. It's still unfortunate that the two tools don't agree, and this should be addressed if possible.

@srawlins
Copy link
Member

Closing this in favor of the new @docImport feature, which works at HEAD. #50702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

3 participants