microsoft / vscode-java-test

Run and debug Java test cases in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test
Other
292 stars 125 forks source link

build: Update target platform #1614

Closed jdneo closed 4 weeks ago

jdneo commented 11 months ago

fix #1613

This will bump the embedded JUnit 5 to 5.10.0.

jdneo commented 11 months ago

@dbalek

vscode-java-test-0.40.2023092502.vsix.zip

Using this private build and the latest Pre-release of the vscode-gradle extension, which uses the build server approach should solve the problem. I tested it locally on my machine and it works.

As it is mentioned in https://github.com/microsoft/vscode-java-test/pull/1608, bump to JUnit 5.10.0 might cause the projects using <= 5.9.x failed to run the tests. I'm not planning to do that at this moment.

From your side, is there any kind of due date or something that need the VS Code Java side to address this issue ASAP? If yes, please let me know.

dbalek commented 11 months ago

Unfortunatly, tested with the attached vscode-java-test extension and the pre-release (v3.12.2023091801) of the vscode-gradle extension I am still getting the same error as in https://github.com/microsoft/vscode-java-test/issues/1613

jdneo commented 11 months ago

Sorry forget to mention, you need to clean the workspace cache.

dbalek commented 11 months ago

Cleaning the workspace cache, still the same result

jdneo commented 11 months ago

Could you share your VS Code settings? And maybe a screenshot of the Java Projects View (F1 >View: Focus on Java Projects View)

Another difference is that I'm using Micronaut 4.1.2 instead of 4.1.1

dbalek commented 11 months ago

I have started VSCode with the fresh --user-data-dir and --extensions-dir, and I have created the new Micronaut 4.1.2 project. So, the settings.json is almost empty now:

{
    "workbench.startupEditor": "none"
}

Still the same result: screenshot-vscode

jdneo commented 11 months ago

There is a node named Project and External Dependencies in the Java Projects View, which is a hint that the Gradle project is still imported by the old Gradle importer.

Could you try to clean Java Language Server Workspace again?

More details, see: https://github.com/redhat-developer/vscode-java/issues/3260#issuecomment-1700443681. Sorry for the confusion here.

dbalek commented 11 months ago

The node is named Referenced Libraries (Read-only) now, otherwise no change...

jdneo commented 11 months ago

Still failed to launch tests?

dbalek commented 11 months ago

Yes, exactly the same error.

jdneo commented 11 months ago

I can reproduce it now on MacOS. Previously I was using Windows, which works fine.

yanisderbikov commented 9 months ago

Is still open? Do you need help?

jdneo commented 9 months ago

Thank you @yanisderbikov. Since bumping to JUnit 5.10.0 might cause the projects using <= 5.9.x failed to run the tests. I'm not planning to do that at this moment.

jdneo commented 5 months ago

More and more users are migrating to 5.10.x

The estimate time for updating the target platform will happen in May.

jdneo commented 4 weeks ago

Fixed in #1722