Skip to content

Restart button not working #1561

Open
Open

Description

@dsyer

I tried a pre-release and a release version (v0.38.2) with VSCode 1.77.3. Running a test from code (little green icons) or the test view works, but if you pause and then press "restart" (Ctrl-Shift-F5) in the little floating window it stops running the current test but doesn't restart. I see threads in the debug view but they are just hanging and eventually time out and exit. The test is not restarted.

Activity

  1. jdneo commented on Apr 18, 2023

    @jdneo
    Member

    Looks like the extension does not act properly (or not listen to it at all) when a debug session restarts.

  2. dsyer commented on Apr 18, 2023

    @dsyer
    Author

    FWIW it used to work fine. I just upgraded to VSCode 1.77 so maybe that’s related?

  3. jdneo commented on Apr 18, 2023

    @jdneo
    Member

    FWIW it used to work fine. I just upgraded to VSCode 1.77 so maybe that’s related?

    Interesting, will take a look!

  4. jdneo commented on Apr 19, 2023

    @jdneo
    Member

    There is an Error: read ECONNRESET at

    when click restart button.

    When running a test, the extension will start a local socket server communicate with the runner to get the test results. It makes sense to me that, when restart the runner, the socket connection will be killed, and this error appears.

    Do you still remember which version of VS Code was used last time when this restart function work?

  5. dsyer commented on Apr 19, 2023

    @dsyer
    Author

    I upgraded this week from 1.75.1, but I’m not sure I remember the last time it worked for sure.

  6. NatashaTroth commented on Aug 30, 2023

    @NatashaTroth

    Hello, I have had this same problem since around April (also after a VS-Code update). Is there a fix for this problem?

  7. MartinBernstorff commented on Oct 24, 2024

    @MartinBernstorff

    I have the same problem here; are there any plans for a fix? :-)

  8. MartinBernstorff commented on Oct 24, 2024

    @MartinBernstorff

    A temporary workaround is this keyboard binding:

    {
            "key": "cmd+r",
            "command": "runCommands",
            "args": {
                "commands": [
                    {
                        "command": "workbench.action.debug.stop",
                    },
                    {
                        "command": "testing.debugLastRun",
                    }
                ]
            },
            "when": "inDebugMode"
        },
  9. github-actions commented on Nov 12, 2025

    @github-actions

    Hi Dave Syer (@dsyer), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    Suggestions

    • Workaround: stop the current debug session (Shift+F5) and then rerun or debug the test from the Test Explorer (click the green debug icon).
    • Upgrade Debugger for Java to the latest version (v0.54.0 or newer) – recent patches addressed restart behavior in debug sessions.
    • If the issue persists, please file a minimal reproducible example on the vscode-java-debug repository.

    Other references with high confidence

    Other references with low confidence
    • No additional relevant issues at this time.

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

  10. MaddyGuthridge commented on Mar 17, 2026

    @MaddyGuthridge

    I can confirm that this issue is still present almost 3 years later. I am on the latest versions of VS Code and all extensions, and can still reproduce it with any JUnit test case.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions