codeql
codeql copied to clipboard
Kotlin language database create bug?
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
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
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?
Hi 你好
I would remove the
--no-run-unnecessary-buildflag. I note in the output it says4 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
Hi @Firebasky,
To follow-up on @hvitved's suggestion. Did you perform a full clean build? We do not support incremental builds.