github / github/codeql-cli-binaries

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

Open
#137 1 comment 0 reactions 0 assignees View on GitHub
CLI
Dominant language
No language data
Stars
1k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.