codeql-cli-binaries icon indicating copy to clipboard operation
codeql-cli-binaries copied to clipboard

codeql database interpret-results: Confusing (and possibly wrong) error message NO_KIND_SPECIFIED

Open hmakholm opened this issue 4 years ago • 1 comments

Copied from https://github.com/Semmle/ql/issues/2997, filed by @khanhbnv-0950:

i truy codeql database analyze <src-database-js> ql/javascript/ql/src/Security/ --format=csv -o test.csv, but i give error

Shutting down query evaluator.
Interpreting results.
A fatal error occurred: Could not process query metadata.
Error was: No query kind specified(NO_KIND_SPECIFIED).

I find a solution, i get check @id and @kind. I see all file .ql in Security folder and they exists. Can anyone help me!

@max-schaefer suggests this is because some queries in the ql/javascript/ql/src/Security directory have unusual values of @kind that the results interpretation process does not support.

In any case, the error message is confusing and misleading -- it should at least indicate which query it is complaining about.

@dbartol, do you have an immediate feeling for which code is involved here?

hmakholm avatar Mar 05 '20 17:03 hmakholm

some queries in the ql/javascript/ql/src/Security directory

For example this one: https://github.com/Semmle/ql/blob/master/javascript/ql/src/Security/Summaries/ExtractFlowStepSummaries.ql

max-schaefer avatar Mar 06 '20 09:03 max-schaefer