-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
CodeQl Cli - The process cannot access the file '<path>\build-tracer.log' because it is being used by another process. #18924
Comments
Hi @Jaxelr 👋🏻 It's a bit unusual to see that the build seems to be trying to access that log file. Is there a chance that Are you able to share more logs or the contents of |
Thanks for sharing those logs. Just to confirm, is that all that you found in I don't see anything in the logs that gives more of an indication of what's going on. It still seems to me like the |
Silly me, I just attached the logs, here's the entirety of what was generated by the command. Apologies for the hassle. |
Thanks, that's been helpful. I can see that we have this error at the end of the log
and that the database does not seem to contain any information about source files that were successfully extracted. There is some guidance on https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/no-source-code-seen-during-build related to this error. That page is about the (equivalent) error in a Code Scanning setting, but points 3 and 4 are also relevant to CLI usage. Can you confirm that your build performs a fresh build of all the source files you wish to analyse and does not use any cached results? I think it does, but if you could confirm that you see all the build steps in the output that you'd expect for a fresh build, that'd be great. |
Ah, disregard that. One of my colleagues on the relevant engineering team has pointed out that your project appears to be a C++/CLI project, which is not supported by CodeQL. |
@mbg oh wow, thanks for the insight. I'll be closing this Issue then. |
Language: C++
Environment: Windows 11
Tool: Codeql CLI
Command: codeql database create --language=cpp --source-root=
Version: v2.20.5
Hey team,
Whenever I try to run locally the codeql-cli I am receiving an error indicating, my build completes successfully but the bundle cannot complete:
As a result of this, I can't complete the bundle for cpp that I'm required to do:
The text was updated successfully, but these errors were encountered: