Failed to run query in vscode extension, but cli worked #18639
Unanswered
yuxiaolejs
asked this question in
Q&A
Replies: 1 comment
-
Hi @yuxiaolejs, It seems like the issue might be with the VSCode extension path or environment variables. Here are a few things to check:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into a strange situation where my vscode extension complains about the
library path
even after me runningcodeql pack install
(which shows nothing to download), and refused to run any queries. However, if I run the same query on the same database using CLI commandcodeql query run --database=/codeql_create_db.database_dir alloc_const.ql
, it will work properly and give the expected output. What might be wrong?FYI this is how I configured codeql:
codeql-bundle-linux64.tar.gz
archive.codeql
directory into/opt/codeql
/opt/codeql
to my path (later for debugging I added it to the path of/etc/environment
codeql
command is working.Beta Was this translation helpful? Give feedback.
All reactions