Skip to content

vscode displaying flutter test exception at correct line #159276

Closed as not planned

Description

@lewinpauli

Use case

When writing tests in vscode, finding the line that causes the problem is not very convenient.

image

The test exception is displayed at the very top of the function, which is more of a distraction than a help, especially in larger test functions.

The debug output does not highlight the causing line either.

Displaying the error message at the correct line and highlighting the line in the debug output text would make testing DX much easier.

Activity

  1. darshankawar commented on Nov 22, 2024

    @darshankawar
    Member

    This looks similar to #79386 so please follow-up in it for further updates.
    Closing this as a duplicate. If you disagree, write in comments and I'll reopen it.

  2. added
    r: duplicateIssue is closed as a duplicate of an existing issue
    and removed
    in triagePresently being triaged by the triage team
    on Nov 22, 2024
  3. lewinpauli commented on Nov 25, 2024

    @lewinpauli
    ContributorAuthor

    the issue #79386 is only about the teardown method, I think this issue is much more general

  4. github-actions commented on Dec 9, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Dec 9, 2024
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

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions