Error in creating a new java pro database
- Vorherrschende Sprache
- CodeQL
- Sterne
- 10.1k
- Forks
- 2.1k
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 141
Beschreibung
when excuting "codeql database create .\compiler-db\ --language=java --source-root=E:\JavaPro\Compiler\src" in command line, it reports:
```
[2023-12-23 18:49:50] [build-stderr] ERROR: Could not detect a suitable build command for the source checkout.
[2023-12-23 18:49:50] [ERROR] Spawned process exited abnormally (code 1; tried to run: [E:\C_Pro\codeql\tools\win64\tracer.exe, E:\C_Pro\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, E:\C_Pro\codeql\java\tools\autobuild.cmd])
A fatal error occurred: Exit status 1 from command: [E:\C_Pro\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, E:\C_Pro\codeql\java\tools\autobuild.cmd]
```
build-tracer.log is here:
```
[T 18:49:49 31224] Initializing tracer.
[T 18:49:49 31224] Initialising tags...
[T 18:49:49 31224] CodeQL CLI version 2.15.5
[T 18:49:49 31224] Initializing tracer.
[T 18:49:49 31224] Initialising tags...
[T 18:49:49 31224] Allocated ID 26194622000079F8_0000000000000001 (parent )
[T 18:49:49 31224] ==== Candidate to intercept: E:\C_Pro\codeql\tools\win64\runner.exe (8100) ====
[T 18:49:49 31224] Lua: === Intercepted call to e:\c_pro\codeql\tools\win64\runner.exe ===
[T 18:49:49 31224] Executing the following tracer actions:
[T 18:49:49 31224] Tracer actions:
[T 18:49:49 31224] pre_invocations(0)
[T 18:49:49 31224] post_invocations(0)
[T 18:49:49 31224] trace_languages(1): [java]
[T 18:49:49 8100] Initializing tracer.
[T 18:49:49 8100] Initialising tags...
[T 18:49:49 8100] ID set to 26194622000079F8_0000000000000001 (parent root)
[T 18:49:49 8100] Allocated ID 727A9A4500001FA4_0000000000000001 (parent 26194622000079F8_0000000000000001)
[T 18:49:49 8100] ==== Candidate to intercept: C:\Windows\System32\cmd.exe (26852) ====
[T 18:49:49 8100] Lua: === Intercepted call to c:\windows\system32\cmd.exe ===
[T 18:49:49 8100] Executing the following tracer actions:
[T 18:49:49 8100] Tracer actions:
[T 18:49:49 8100] pre_invocations(0)
[T 18:49:49 8100] post_invocations(0)
[T 18:49:49 8100] trace_languages(1): [java]
[T 18:49:49 26852] Initializing tracer.
[T 18:49:49 26852] Initialising tags...
[T 18:49:49 26852] ID set to 727A9A4500001FA4_0000000000000001 (parent 26194622000079F8_0000000000000001)
[T 18:49:50 26852] Allocated ID D6BA57A5000068E4_0000000000000001 (parent 727A9A4500001FA4_0000000000000001)
[T 18:49:50 26852] ==== Candidate to intercept: E:\C_Pro\codeql\tools\win64\java\bin\java.exe (1828) ====
[T 18:49:50 26852] Lua: === Intercepted call to e:\c_pro\codeql\tools\win64\java\bin\java.exe ===
[T 18:49:50 26852] Executing the following tracer actions:
[T 18:49:50 26852] Tracer actions:
[T 18:49:50 26852] pre_invocations(0)
[T 18:49:50 26852] post_invocations(0)
[T 18:49:50 26852] trace_languages(1): [java]
[T 18:49:50 1828] Initializing tracer.
[T 18:49:50 1828] Initialising tags...
[T 18:49:50 1828] ID set to D6BA57A5000068E4_0000000000000001 (parent 727A9A4500001FA4_0000000000000001)
[T 18:49:50 1828] Passing through -javaagent:E:\C_Pro\codeql\java\tools\codeql-java-agent.jar=ignore-project,java,kotlin to underlying JVM.
[T 18:49:50 1828] Passing through -Xbootclasspath/a:E:\C_Pro\codeql\java\tools\codeql-java-agent.jar to underlying JVM.
[T 18:49:50 1828] Intercepted JVM creation with extra hidden args: ['-javaagent:E:\C_Pro\codeql\java\tools\codeql-java-agent.jar=ignore-project,java,kotlin' '-Xbootclasspath/a:E:\C_Pro\codeql\java\tools\codeql-java-agent.jar' ] (result: 1, 0).
```
Beitragsleitfaden
Rechercherichtung
Start with the reported `codeql database create` command and the `build-tracer.log` excerpt, focusing on the Java autobuild invocation and the source-root layout. Reproduce the failure in the reported Windows environment and determine whether the command can create the database successfully; the issue does not identify a repository file or test to change.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- cli, devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 20/100