Skip to content

After upgrade from v0.77.0 to v0.78.0 can't debug tests #1915

Closed

Description

@rubensa

After upgrade from v0.77.0 to v0.78.0 can't debug tests, only execute them

Environment
  • Operating System: Linux
  • JDK version: 11
  • Visual Studio Code version: 1.55.2
  • Java extension version: 0.78.0
Steps To Reproduce
  1. Open a maven project with JUnit tests
  2. Try run the test in debug mode
Current Result

An error message appears and the test can't be run

Expected Result

Test is run stopping at any break point

Additional Informations

I I downgrade to version 0.77.0 everything works as expected.

The error message in the log is:
java.lang.NoSuchMethodError: 'void org.eclipse.jdi.internal.connect.ConnectorImpl$StringArgumentImpl.<init>(org.eclipse.jdi.internal.connect.ConnectorImpl, java.lang.String, java.lang.String, java.lang.String, boolean)'

Activity

  1. victor-k-lee commented on Apr 29, 2021

    @victor-k-lee

    Got the same issue, thank you for the workaround.

  2. ruhrieGD commented on Apr 29, 2021

    @ruhrieGD

    Similar issue here. Can't debug anything though. Additionally, the "java.format.settings.url" setting is no longer being respected on 0.78.0. Downgrading fixed it. I suspect these are related.

  3. rothfels commented on Apr 29, 2021

    @rothfels

    Yep, same issue for our team. No issues on v0.77.0.

  4. fbricon commented on Apr 29, 2021

    @fbricon
    Collaborator

    This is a downstream issue, vscode-java-debug needs to be recompiled. See microsoft/vscode-java-debug#995

  5. snjeza commented on Apr 30, 2021

    @snjeza
    Collaborator

    the "java.format.settings.url" setting is no longer being respected on 0.78.0

    @ruhrieGD Could you show your "java.format.settings.url" property?

  6. snjeza commented on Apr 30, 2021

    @snjeza
    Collaborator

    You may want to take a look at microsoft/vscode-java-debug#995 (comment)

  7. testforstephen commented on Apr 30, 2021

    @testforstephen
    Collaborator

    Hi, I just released a hotfix release 0.33.1 for "Debugger for Java" extension. It will work with both vscode-java@0.77.0 and 0.78.0. Please have a try. thanks.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions