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
293 stars 126 forks source link

npm run build-plugin fails with 'Cannot resolve target definition' #1580

Closed gbroques closed 1 year ago

gbroques commented 1 year ago

Hi. I did the following steps to setup the project:

  1. Clone the repo.
  2. Run npm install.
  3. Then run npm run build-plugin.

npm run build-plugin fails with the following error:

[ERROR] Cannot resolve target definition:
[ERROR]   Software being installed: org.eclipse.jdt.ls.core 1.25.0.202306221809
[ERROR]   Missing requirement: org.eclipse.jdt.ls.core 1.25.0.202306221809 requires 'osgi.bundle; org.eclipse.lsp4j [0.21.0.0,0.22.0)' but it could not be found
[ERROR]va.test.tp.target: See log for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

When I searched the existing issues, this seemed similar to #1506.

Do we just need to "update the build configurations" like @jdneo did in https://github.com/microsoft/vscode-java-test/pull/1507?

gbroques commented 1 year ago

I solved this issue by updating the URL to be the most recent milestone release of the JDTLS.

See the following PR: https://github.com/microsoft/vscode-java-test/pull/1581

gbroques commented 1 year ago

Closed by https://github.com/microsoft/vscode-java-test/pull/1584