Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FizzFish opened this issue Oct 18, 2022 · 1 comment
Open

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

FizzFish opened this issue Oct 18, 2022 · 1 comment
Labels

Comments

@FizzFish
Copy link

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

@github-actions github-actions bot added the CLI label Oct 18, 2022
@smowton
Copy link
Contributor

smowton commented Nov 3, 2022

Is the Gradle daemon running the compilation away from the traced process? What happens if you run the create command without passing a -c command, in which case it will by default guess a gradlew command that explicitly disables the daemon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants