github / github/codeql

Failed to run query: The query depends on an extensional predicate selectedSourceColumn which has not been defined.

Aberta
#18,227 6 comentários 0 reações 0 responsáveis Ver no GitHub
question
Linguagem predominante
CodeQL
Estrelas
10.1k
Forks
2.1k
Merge médio
2d 15h
PRs com merge (30d)
141

Descrição

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?

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.