Skip to content

"Go to Symbol in Workspace" navigates to wrong location #4129

@DanTup

Description

@DanTup
  • 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.

Issue might have started with Dart 2.18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions