github / github/codeql-cli-binaries

[Java][maven] "No source code was seen and extracted"

Offen
#137 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
CLI
Vorherrschende Sprache
Keine Sprachdaten
Sterne
1k
Forks
184
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When I compile a java project built by maven, codeql tell me "No source code was seen and extracted".
1. cmd is: codeql database create sonar.db -l java -c "./gradlew --no-build-cache clean classes"
2. The project is built correctly, and many *.class are generated.
3. There only "codeql-database.yml", "log", "working" files in codeql database directory.
The reason is maybe that codeql cannot "Intercepted call" with Java correctly. But I don't know why codeql cannot hook Java compiler.

[build-tracer.log.txt](https://github.com/github/codeql-cli-binaries/files/9811352/build-tracer.log.txt)

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with build-tracer.log.txt and the reported database-create command, then determine why the Gradle/Maven Java compilation is not intercepted. Reproduce the build and inspect whether the resulting database contains extracted Java source; done means the compiled project produces a usable CodeQL database.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
build-system, devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.