Skip to content

Stack traces in test errors are not linkified #2794

Closed

Description

@DanTup

Activity

  1. added this to the v3.15.0 milestone on Sep 15, 2020
  2. added
    in debuggingRelates to the debug adapter or process of running debug sessions
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Sep 15, 2020
  3. DanTup commented on Sep 15, 2020

    @DanTup
    MemberAuthor

    With this and #2795 fixed, it now looks like this:

    Screenshot 2020-09-15 at 10 28 01

    We can't currently map dart:async anywhere so it remains in the message on the left (we can't attach a link that would appear on the right), but I think it's an improvement (ignoring the not-so-friendly async stack traces, but that's not something we can improve in the extension).

  4. added 2 commits that reference this issue on Sep 15, 2020
    13f5113
    811c7a7
  5. maks commented on Sep 16, 2020

    @maks

    That's awesome @DanTup - thank you for fixing this so quickly! 👍

  6. added a commit that references this issue on Sep 16, 2020
    56ef895
  7. maks commented on Sep 28, 2020

    @maks

    @DanTup I installed the v3.15 beta vsix, both reloaded and then restarted vsc for good measure but when running tests I still don't seem to see the test failure relative stack traces being linked?

    Screenshot 2020-09-28 at 10 05 53

  8. DanTup commented on Sep 28, 2020

    @DanTup
    MemberAuthor

    @maks oh, that's a different place again. In the original screenshot it was the Debug Console (which we parse the output for and attach location metadata). The other one was the Terminal (where we now detect package: links with a regex, and VS Code does the path links). This one is the Output Pane (which we show if you click back on a test node in the tree). As far as I know, there's no way for us to provide links there (though I think in theory the link provider code would work there if we had a hook - @Tyriar does that seem like a useful feature request?).

    I wonder if we could switch to using a pseudo terminal for those results now instead of an Output pane. That would probably get VS Code's normal linking (which I presume includes relative paths) as well as our link provider (for package: paths). I've opened #2825 to have a look at that.

  9. Tyriar commented on Nov 6, 2020

    @Tyriar

    There's been some talk of sharing terminal link logic with the output panel: microsoft/vscode#107314, microsoft/vscode#53922

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 debuggingRelates to the debug adapter or process of running debug sessionsin testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions