github / github/codeql-cli-binaries

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

Đang mở
#20 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug CLI
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1k
Fork
184
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

> i truy `codeql database analyze ql/javascript/ql/src/Security/ --format=csv -o test.csv`, but i give error
> ```sh
> 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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by reproducing the `codeql database analyze` command against the `ql/javascript/ql/src/Security/` directory and inspect the `.ql` files mentioned in the report, especially their `@kind` metadata. Trace the results interpretation path to identify where `NO_KIND_SPECIFIED` is generated. Done means the error identifies the query that caused the metadata failure and the relevant behavior is covered by a regression test, if the repository provides one.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
cli, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.