Skip to content

Exception during results interpretation: Can't interpret results without query metadata including kind. Will show raw results instead. #800

@lcwj3

Description

@lcwj3

Describe the bug
It seems this error is about the presentation of output. This error happens after I relaunch vscode and run my previous ql code on previous database, and it didn't derive this exception before.
Here is the full log.

Resolving library paths using CodeQL CLI: resolve library-path -v --log-to-stderr --format json --query /home/chengwei/codes/codeql_call_graph/javascript/ql/examples/snippets/retrieve_export_properties.ql --additional-packs /home/chengwei/codes/codeql_call_graph...
CLI command succeeded.
[2021-03-21 22:37:52] [DETAILS] resolve library-path> Resolving query at normalized path /home/chengwei/codes/codeql_call_graph/javascript/ql/examples/snippets/retrieve_export_properties.ql.
[2021-03-21 22:37:52] [DETAILS] resolve library-path> Found enclosing pack 'codeql-javascript-examples' at /home/chengwei/codes/codeql_call_graph/javascript/ql/examples.
[2021-03-21 22:37:52] [DETAILS] resolve library-path> Adding compilation cache at /home/chengwei/codes/codeql_call_graph/javascript/ql/examples/.cache.
[2021-03-21 22:37:52] [DETAILS] resolve library-path> Resolving library dependencies from /home/chengwei/codes/codeql_call_graph/javascript/ql/examples/qlpack.yml.
[2021-03-21 22:37:52] [DETAILS] resolve library-path> QL pack dependencies for /home/chengwei/codes/codeql_call_graph/javascript/ql/examples resolved OK.
[2021-03-21 22:37:52] [DETAILS] resolve library-path> Found dbscheme through QL packs: /home/chengwei/codes/codeql_call_graph/javascript/ql/src/semmlecode.javascript.dbscheme.

Resolving query metadata using CodeQL CLI: resolve metadata -v --log-to-stderr --format json /home/chengwei/codes/codeql_call_graph/javascript/ql/examples/snippets/retrieve_export_properties.ql...
CLI command succeeded.

Resolving database upgrade scripts using CodeQL CLI: resolve upgrades -v --log-to-stderr --format json --additional-packs /home/chengwei/codes/codeql_call_graph --dbscheme /home/chengwei/codes/test_cg/semver-7.3.4/package/semver-db/db-javascript/semmlecode.javascript.dbscheme --target-dbscheme /home/chengwei/codes/codeql_call_graph/javascript/ql/src/semmlecode.javascript.dbscheme --allow-downgrades...
CLI command succeeded.
[2021-03-21 22:37:52] [DETAILS] resolve upgrades> Searching for upgrades that apply to 930898a4fe07cb48de46800904922ca118b31e50.
[2021-03-21 22:37:52] [DETAILS] resolve upgrades> Will look for upgrades in /home/chengwei/codes/codeql_call_graph/python/upgrades
[2021-03-21 22:37:52] [DETAILS] resolve upgrades> Will look for upgrades in /home/chengwei/codes/codeql_call_graph/javascript/upgrades
[2021-03-21 22:37:52] [DETAILS] resolve upgrades> Will look for upgrades in /home/chengwei/codes/codeql_call_graph/csharp/upgrades
[2021-03-21 22:37:52] [DETAILS] resolve upgrades> Will look for upgrades in /home/chengwei/codes/codeql_call_graph/cpp/upgrades
[2021-03-21 22:37:52] [DETAILS] resolve upgrades> Will look for upgrades in /home/chengwei/codes/codeql_call_graph/java/upgrades
[2021-03-21 22:37:52] [DETAILS] resolve upgrades> Will look for upgrades in /home/chengwei/snap/codeql-linux64/codeql/legacy-upgrades/upgrades

Exception during results interpretation: Can't interpret results without query metadata including kind. Will show raw results instead.
Reading bqrs header using CodeQL CLI: bqrs info -v --log-to-stderr --format json --paginate-rows 200 /tmp/queries_-5951-EMr1B89gnxwd/results22.bqrs...
CLI command succeeded.

Reading bqrs data using CodeQL CLI: bqrs decode -v --log-to-stderr --format json --entities=url,string --result-set #select --rows 200 --start-at 78 /tmp/queries_-5951-EMr1B89gnxwd/results22.bqrs...
CLI command succeeded.

Expected behavior
No such error and the output presents well.

Additional context
my codeql cli is v2.4.6, and codeql extension is v1.4.4, ubuntu 18.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    VSCodebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions