Skip to content

Failed to load vscode-java-test bundles (jacoco not compatible with asm 9.9.0) #4205

Closed as not planned

Description

@ooMia

Language Support for Java.log

JUnit tests are not discovered in VS Code Test Explorer, although ./gradlew clean test succeeds. The Java language server reports bundle resolution failures for the Java Test Runner extension. This issue did not occur in the previous experimental version 1.47.2025100408.

  • OS: macOS (Apple Silicon, aarch64)
  • Extensions:
    • Language Support for Java by Red Hat: 1.47.2025100808 (experimental)
    • Java Test Runner: 0.43.1
    • (Others from Java Extension Pack installed)

build.gradle

plugins {
    id 'java'
}

group = 'camp.nextstep.edu'
version = '1.0-SNAPSHOT'

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(21)
    }
}

repositories {
    mavenCentral()
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.woowacourse-projects:mission-utils:1.2.0'
    testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
    useJUnitPlatform()
}

Activity

  1. fbricon commented on Oct 9, 2025

    @fbricon
    Collaborator

    have you tried the Java: Clean Java Language Server Workspace command? Can you attach a sample project?

  2. fbricon commented on Oct 9, 2025

    @fbricon
    Collaborator

    I could reproduce, logs show:

    org.osgi.framework.BundleException: Could not resolve module: com.microsoft.java.test.plugin [117]
      Unresolved requirement: Require-Bundle: org.objectweb.asm; bundle-version="[9.8.0,9.9.0)"
      Unresolved requirement: Require-Bundle: junit-jupiter-engine; bundle-version="5.4.0"
        -> Bundle-SymbolicName: junit-jupiter-engine; bundle-version="5.11.0"
           junit-jupiter-engine [101]
             No resolution report for the bundle.  Unresolved requirement: Require-Bundle: org.eclipse.jdt.junit5.runtime
        -> Bundle-SymbolicName: org.eclipse.jdt.junit5.runtime; bundle-version="1.1.300.v20231214-1952"; singleton:="true"
           org.eclipse.jdt.junit5.runtime [114]
             Unresolved requirement: Require-Bundle: junit-jupiter-engine; bundle-version="5.4.0"
               -> Bundle-SymbolicName: junit-jupiter-engine; bundle-version="5.11.0"
             Unresolved requirement: Require-Bundle: junit-jupiter-params; bundle-version="5.4.0"
               -> Bundle-SymbolicName: junit-jupiter-params; bundle-version="5.11.0"
                  junit-jupiter-params [103]
      Unresolved requirement: Require-Bundle: junit-jupiter-params; bundle-version="5.4.0"
        -> Bundle-SymbolicName: junit-jupiter-params; bundle-version="5.11.0"
    

    The latest vscode-java build embeds org.objectweb.asm 9.9.0, so https://github.com/microsoft/vscode-java-test/blob/e3eb3bd13171cd8775d5cd051907f18d6e9c366d/java-extension/com.microsoft.java.test.plugin/META-INF/MANIFEST.MF#L43 needs to be updated to relax the constraint. The previous release included 9.8.0 so it worked.

    Can you please open a ticket in https://github.com/microsoft/vscode-java-test/issues?

    cc @jdneo @testforstephen

  3. changed the title [-]Failed to load extension bundles[/-] [+]Failed to load vscode-java-test bundles (jacoco not compatible with asm 9.9.0)[/+] on Oct 13, 2025
  4. fbricon commented on Oct 13, 2025

    @fbricon
    Collaborator

    Closing as there's nothing more we can do here. We need microsoft/vscode-java-test#1796 to be fixed and released.

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