Skip to content

Can't jump into libraries from integrated terminal stack traces #2581

Closed

Description

@mymikemiller

I'm not sure if this is an issue for the Dart-Code extension or if it's a VSCode thing (or if I just have some setting wrong), but I figured I'd start here.

When I print out a stack trace and click on a file link, VSCode fails to navigate to package files in my pub_cache.

For illustrative purposes in the screenshots, I navigated to the file by jumping to it when debugging. The file does not pop up when cmd+clicking the link.

before

after

Activity

  1. mymikemiller commented on Jun 23, 2020

    @mymikemiller
    Author

    Note that searching the workspace for the text of the line does show the result, and I can click into the line in the editor.

    Screen Shot 2020-06-23 at 2 55 45 PM

  2. DanTup commented on Jun 24, 2020

    @DanTup
    Member

    This is unfortunately a limitation of VS Code. We have no ability to tell the terminal the terminal about package: links so it's unable to detect them and link them. You could raise this as a feature request at https://github.com/microsoft/vscode/issues and if an API was provided that allowed us to handle link detection for the terminal, we could contribute some rules.

    Out of interest though - why are you running the app in the terminal?

  3. added this to the Backlog milestone on Jun 24, 2020
  4. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Jun 24, 2020
  5. mymikemiller commented on Jun 25, 2020

    @mymikemiller
    Author

    Good to know, thanks.

    I'm using the terminal because the debug console doesn't support cursor positioning and I want to print pretty progress bars and stuff. Also the debug console isn't interactive.

  6. mymikemiller commented on Jun 25, 2020

    @mymikemiller
    Author

    Filed a VSCode feature request: microsoft/vscode#101041

  7. Tyriar commented on Jun 25, 2020

    @Tyriar

    The terminal link provider API just hit proposed, still open to feedback and it may change before becoming stable microsoft/vscode#91290

  8. DanTup commented on Jun 25, 2020

    @DanTup
    Member

    @Tyriar aha! I thought I'd seen it somewhere, but couldn't find it when searching the other day! I'll check it out and see if it does what we'd need. Thanks!

  9. modified the milestones: Backlog, On Deck on Jul 6, 2020
  10. added
    in editorRelates to code editing or language features
    and removed on Sep 24, 2020
  11. modified the milestones: On Deck, v3.15.0 on Sep 24, 2020
  12. added a commit that references this issue on Sep 24, 2020
    af04e0a
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

    in editorRelates to code editing or language featuresis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions