Skip to content
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

he query depends on a external predicate selectedSourceFile which has not been defined. #113

Open
cqrlhz opened this issue Mar 10, 2022 · 1 comment
Labels

Comments

@cqrlhz
Copy link

cqrlhz commented Mar 10, 2022

891/891 eval 1372m18s] Evaluation done; writing results to codeql/python-tests/library-tests/PointsTo/customise/test.bqrs.
Shutting down query evaluator.
3 of 891 queries failed to evaluate:
codeql/python-queries/analysis/LocalDefinitions.ql,
codeql/python-queries/analysis/LocalReferences.ql,
codeql/python-queries/printAst.ql:
The query depends on a external predicate selectedSourceFile which has not been defined.

@github-actions github-actions bot added the CLI label Mar 10, 2022
@alexet
Copy link
Contributor

alexet commented Mar 10, 2022

The full set of queries includes some queries that are not analysis queries. This includes debugging queries and queries used to support features in vscode. To run them they need special configuration and shouldn't be run via the command line.

In addition even among the queries that work there are some which are not useful to run on most codebases.

Instead of running all queries within a directory which only works if all queries should be run you should run a suite. For example codeql/python/ql/src/codeql-suites/python-code-scanning.qls if you want the queries that run by default on code scanning or python/ql/src/codeql-suites/python-security-and-quality.qls if you want a much larger selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants