[Java] Issue resolving dependences #19458
Labels
awaiting-response
The CodeQL team is awaiting further input or clarification from the original reporter of this issue.
question
Further information is requested
These are the same across both machines
Codeql CLI Version: 2.20.3
Local Codeql Files: e27d8c16729588259f8143c7ed4569d517b0de10
Hello,
I am trying to figure out an issue that I am having when it comes to getting the same results as I have on my Windows machine on my Linux machine. This first started when I cloned my work over to my Linux machine and noticed that one of my queries that works just fine on my Windows machine was failing. Some of my queries also have different results.
This leads me to think there is an issue with how the CodeQL dependencies are being resolved across my two machines. Since my Windows version is working, I decided to look into the logs.
This is what I see
Now here is my
qlpack.yml
located atcodeql/codeql-custom-queries-java/qlpack.yml
Here is also my
codeql-pack.lock.yml
What sticks out to me is that all the versions in the logs have -dev at the end of them. So they are not using what is in these two files. I am unsure why. Due to the queries running just fine, with the -dev. I updated my
qlpack.yml
to use those versions instead. So that now it isHowever, when I do
codeql pack install
mycodeql-pack.lock.yml
becomesI believe this indicates that those versions can't be found.
For reference, here is what my Linux machine outputs
So, to see if I could get it to work on Linux, I used the updated
qlpack.yml
on that machine and got thisThis is telling me that that dependence doesn't exist, which confuses me because they both have the same ql lib files from the tree at the beginning of this post.
For reference, this query works fine on my Windows machine
However, I get this on the Linux one
ERROR: asExpr() cannot be resolved for type ControlFlowGraph::ControlFlowNode (/app/codeql/codeql-custom-queries-java/CWE-204/cwe204-nested-condition.ql:29,49-55)
I am thinking that because my Windows machine was my main development machine, that might be why things are different. As I have upgraded versions over time. I would appreciate any help with this, as getting the dependices for CodeQL correct is not my string suite. I can also send the full logs if that is needed as well. Thank you.
The text was updated successfully, but these errors were encountered: