codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Kotlin language database create bug?

Open Firebasky opened this issue 5 months ago • 2 comments
trafficstars

I tried to build the language database using CodeQL, but encountered an error.

And now I have read this article: https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build. I didn't receive any help

Image

However, I used the configuration command when creating the database.

 codeql database create test --language=kotlin --source-root=/k/test --no-run-unnecessary-builds --command="/k/test/gradlew build" --overwrite 

I can build success by executing /k/test/gradlew build separately.

I hope to receive assistance. thanks

Firebasky avatar Jun 04 '25 10:06 Firebasky

Hi

I would remove the --no-run-unnecessary-build flag. I note in the output it says 4 up-to-date; it is important to run a full build, could you try to do a cleanup first?

hvitved avatar Jun 17 '25 11:06 hvitved

Hi  你好

I would remove the --no-run-unnecessary-build flag. I note in the output it says 4 up-to-date; it is important to run a full build, could you try to do a cleanup first?我会删除 --no-run-unnecessary-build 标志。我在输出中注意到它说 4 up-to-date;运行完整构建很重要,您能否先尝试进行清理?

Thank you for your reply. I am trying to remove the -- no run unnecessary build flag. Then I can successfully create the db file, which contains the zip file, but when I opened the zip file, there was no. kt file for the project inside

Firebasky avatar Jun 20 '25 06:06 Firebasky

Hi @Firebasky,

To follow-up on @hvitved's suggestion. Did you perform a full clean build? We do not support incremental builds.

rvermeulen avatar Jun 24 '25 15:06 rvermeulen