Skip to content

jacocoagent.jar not overridden after upgrade #1780

Open

Description

@WNJStudio

Environment:

VS Code Version: 1.102.0-insider
Extension Version: from vscode java test 0.43.0 -> 0.43.1
JDK Type & Version: 24
OS Type & Version: windows
Step to Reproduce:

install version 0.43.0 of the Extension
upgrade the extension to versoin 0.43.1

Expected Behavior:
{extensionpath}/server/jacocoagent.jar should be updated from version 0,8.12.xxxxx to 0.8.13.xxxx

Actual Behavior:

if (!fs.existsSync(jacocoAgentPath)) {

from the scripts it seems that when upgrading since the jar was present since last version it's not being overridden, causing a version mismatch and therefore causing code coverage not work with java 24

Workaround:
Uninstall the extension and install it clean

Activity

  1. github-actions commented on Nov 13, 2025

    @github-actions

    Hi WNJStudio, 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.

    The built‐in jacocoagent.jar isn’t picked up if it already exists in your extension folder. You can work around or avoid the mismatch as follows:

    • Manually remove the old agent and reload

    • Delete {home}/.vscode/extensions/vscjava.vscode-java-test-0.43.1/server/jacocoagent.jar, then restart VS Code. The new 0.8.13.xxxx jar will be copied.

    • Use the project’s own Jacoco agent (no embedded jar)

    • Full reinstall (uninstall + install) also forces the update.

    labels: bug, test-reporting, high-priority, investigating
    duplicateUrls: []

    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!

  2. ergh99 commented on Nov 22, 2025

    @ergh99

    the workaround hack in #1714 worked for me. low key ridiculous this is still not shipped.

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