You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Go to Symbol in Workspace" navigates to wrong location #4129
Commit a0bfd8c needs reverting (+ version check adding?) once this is fixed.
Failing test:
AssertionError [ERR_ASSERTION]: /home/runner/.pub-cache/git/protobuf.dart-53a1448f6da7a8035654cf502f1c62b45885bb63/protobuf/lib/protobuf.dart should end with /src/protobuf/protobuf_enum.dart)
+ expected - actual
Can be reproduced by adding the protobuf package to a project then trying to navigate to ProtobufEnum. It takes you to the lib/protobuf.dart file which is not where the class is defined.
This does seem specific to Dart v2.18. It seems to occur for parts. If a definition is inside a part class, the navigation goes to the parent part of file. I think it started with dart-lang/sdk@11c201c which (I think accidentally) changed to using the parents FileState to get the file path and LineInfo instead of the parts CompilationUnit.
Activity
Skip known failing test
DanTup commentedon Aug 30, 2022
This does seem specific to Dart v2.18. It seems to occur for
parts. If a definition is inside apartclass, the navigation goes to the parentpart offile. I think it started with dart-lang/sdk@11c201c which (I think accidentally) changed to using the parentsFileStateto get the file path andLineInfoinstead of the partsCompilationUnit.DanTup commentedon Aug 30, 2022
https://dart-review.googlesource.com/c/sdk/+/256826/
[analysis_server] Use part's CompilationUnit for path/LineInfo when s…
DanTup commentedon Oct 3, 2022
Fixed by dart-lang/sdk@bd867e6.