vscode-java-test icon indicating copy to clipboard operation
vscode-java-test copied to clipboard

build: Update target platform

Open jdneo opened this issue 2 years ago • 14 comments

fix #1613

This will bump the embedded JUnit 5 to 5.10.0.

jdneo avatar Sep 25 '23 02:09 jdneo

@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.

jdneo avatar Sep 25 '23 08:09 jdneo

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

dbalek avatar Sep 26 '23 08:09 dbalek

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

  • Open the command palette (Press F1)
  • Select Java: Clean Java Language Server Workspace > Reload and delete

jdneo avatar Sep 26 '23 08:09 jdneo

Cleaning the workspace cache, still the same result

dbalek avatar Sep 26 '23 09:09 dbalek

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

jdneo avatar Sep 27 '23 01:09 jdneo

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

dbalek avatar Sep 27 '23 09:09 dbalek

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.

jdneo avatar Sep 27 '23 10:09 jdneo

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

dbalek avatar Sep 27 '23 10:09 dbalek

Still failed to launch tests?

jdneo avatar Sep 27 '23 11:09 jdneo

Yes, exactly the same error.

dbalek avatar Sep 27 '23 17:09 dbalek

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

jdneo avatar Sep 28 '23 01:09 jdneo

Is still open? Do you need help?

yanisderbikov avatar Nov 12 '23 03:11 yanisderbikov

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 avatar Nov 15 '23 09:11 jdneo

More and more users are migrating to 5.10.x

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

jdneo avatar Mar 20 '24 08:03 jdneo