Skip to content

Version 1.41.1 cannot resolve com.microsoft.java.test.plugin #4002

@auberonedu

Description

@auberonedu

When using Version 1.41.1, the VS Code test runner does not properly load when opening a new Java project. It instead says no tests found in the workplace and I get the below error in the output. Downgrading to 1.41.0 solves the issue.

[Error - 3:14:25 PM] Apr 1, 2025, 3:14:20 PM FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: com.microsoft.java.test.plugin [117]
  Unresolved requirement: Require-Bundle: org.jacoco.core; bundle-version="0.8.12"
    -> Bundle-SymbolicName: org.jacoco.core; bundle-version="0.8.12.202403310830"
       org.jacoco.core [116]
         Unresolved requirement: Import-Package: org.objectweb.asm; version="[9.7.0,9.8.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:495)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:2111)
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:146)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:2102)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:2042)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:2004)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1916)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

I am using the Extension Pack for Java on Windows, but my students on a range of operating systems are also reporting issues with the test runner.

I am using a standalone JAR for JUnit in an unmanaged folder.

Expected behavior: Test runner shows tests
Actual behavior: Test runner says no tests found and prompts me to install testing extension.
Workaround: Downgrade to version 1.41.0

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