Skip to content

Flutter Outline Doesn't Always Display Outline #2228

Closed

Description

@quiverware

I found this bug when I went to the definition of the Flutter Navigator class. I'm running version 3.7.1 of the Dart and Flutter VSCode extensions.

Steps to reproduce the bug:

  1. Click on NavigatorState in my code (the Flutter class probably doesn't matter but this is how I found the bug).
  2. The file navigator.dart opens in VSCode. Clicking on the Flutter icon in the sidebar correctly shows an outline for the Flutter / Dart code.
  3. Click on a tab of a different file in the editor. In my case, it was one of my project files. An outline of the Flutter / Dart code is properly displayed.
  4. Click back on the navigator.dart tab in the editor. The Flutter outline pane is blank.

If I close and reopen the navigator.dart file the Flutter outline is displayed but whenever I click to view another file then click back the navigator.dart Flutter outline is blank.

Activity

  1. added this to the v3.8.0 milestone on Jan 23, 2020
  2. added
    in editorRelates to code editing or language features
    in flutterRelates to running Flutter apps
    on Jan 23, 2020
  3. modified the milestones: v3.8.0, v3.9.0 on Jan 24, 2020
  4. DanTup commented on Jan 27, 2020

    @DanTup
    Member

    I think this might be related to an issue I saw and fixed in a7ebb71. Could you see if it's fixed by v3.8.0 Beta 1?

    https://github.com/Dart-Code/Dart-Code/releases/tag/v2.8.0-beta.1

    Thanks!

  5. quiverware commented on Jan 27, 2020

    @quiverware
    Author
  6. DanTup commented on Feb 24, 2020

    @DanTup
    Member

    Sorry for the delay in responding. Are you able to reproduce this in a project you can share to see if I can repro?

  7. added
    awaiting infoRequires more information from the customer to progress
    on Feb 24, 2020
  8. quiverware commented on Feb 24, 2020

    @quiverware
    Author
  9. added a commit that references this issue on Feb 26, 2020
    6c2cf81
  10. DanTup commented on Feb 26, 2020

    @DanTup
    Member

    Thanks! I was able to repro with the steps above. Seems like the way we forced updates for the Outline didn't work for SDK files so it wouldn't work after the first time. We now just read the last outline we had for a file in this case which should resolve the problem.

    Thanks!

  11. added a commit that references this issue on Feb 26, 2020
    1d655b7
  12. quiverware commented on Feb 26, 2020

    @quiverware
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting infoRequires more information from the customer to progressin editorRelates to code editing or language featuresin flutterRelates to running Flutter appsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions