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

Cannot build from source [0.40.x] #1649

Closed trev-dev closed 7 months ago

trev-dev commented 7 months ago

JDK 17 Node 18

Also tried with latest release 0.40.1

Log:

> vscode-java-test@0.40.0 build-plugin
> node scripts/buildJdtlsExt.js

[INFO] Scanning for projects...
[INFO] Resolving target definition file:/tmp/vscode-java-test-0.40.0/java-extension/com.microsoft.java.test.target/com.microsoft.java.test.tp.target for environments=[linux/gtk/x86_64, win32/win32/x86_64, macosx/cocoa/x86_64], include source mode=honor, execution environment=StandardEEResolutionHints [executionEnvironment=OSGi profile 'JavaSE-17' { source level: 17, target level: 17}], remote p2 repository options=org.eclipse.tycho.p2.remote.RemoteAgent@3cf8a235...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ERROR] Cannot resolve target definition:
[ERROR]   Software being installed: org.eclipse.jdt.ls.core 1.32.0.202401172140
[ERROR]   Missing requirement: org.eclipse.jdt.ls.core 1.32.0.202401172140 requires 'osgi.bundle; org.eclipse.search.core 3.16.0' but it could not be found
[ERROR] 
[ERROR] Failed to resolve target definition file:/tmp/vscode-java-test-0.40.0/java-extension/com.microsoft.java.test.target/com.microsoft.java.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.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
node:child_process:965
    throw err;
    ^

Error: Command failed: ./mvnw clean verify
    at checkExecSyncError (node:child_process:890:11)
    at Object.execSync (node:child_process:962:15)
    at Object.<anonymous> (/tmp/vscode-java-test-0.40.0/scripts/buildJdtlsExt.js:30:4)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
    at node:internal/main/run_main_module:23:47 {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 264065,
  stdout: null,
  stderr: null
}

Node.js v18.18.2
jdneo commented 7 months ago

I cannot reproduce it using latest commit from main branch. Could you show me the content of the com.microsoft.java.test.tp.target file?

trev-dev commented 7 months ago

I guess my mistake was pulling the release checkout(s). Main builds fine. Thanks!