Failed to run query: The query depends on an extensional predicate selectedSourceColumn which has not been defined.
- Ngôn ngữ chính
- CodeQL
- Star
- 10.1k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 141
Mô tả
I`am trying to print CFG for my source code by running command:
codeql database analyze testdb C:\sast\codeql-main\csharp\ql\lib\printCfg.ql --format=dot --output=result1.dot
and I`am receiving error
"Failed to run query: The query depends on an extensional predicate selectedSourceColumn which has not been defined."
As i read in the docs, selectedSourceColumn is a predicate which can be used only in IDE (VS Code) but i cant find how to specify file with source code in VS Code (CodeQL plugin GUI doesnt have button like 'select one file for query' or kinda that).
My questions:
1. How to launch printCfg.ql in IDE (VS Code)?
2. Is it possible to change printCfg.ql query (i think about redefining selectedSourceColumn ) to lauch in CLI against source code?
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with the reported codeql database analyze command and the csharp/ql/lib/printCfg.ql query, then review the CodeQL IDE and CLI documentation referenced by the issue. Done means documenting whether printCfg.ql can be launched in VS Code and whether selectedSourceColumn can be defined or otherwise supported when running it from the CLI.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- vscode
- Lĩnh vực
- devtools, security
- Loại issue
- Tài liệu
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100