github / github/codeql-cli-binaries
codeql database interpret-results: Confusing (and possibly wrong) error message NO_KIND_SPECIFIED
- Linguagem predominante
- Sem dados de linguagem
- Estrelas
- 1k
- Forks
- 184
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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?
Guia de contribuição
Direção de pesquisa
Comece reproduzindo o comando `codeql database analyze` no diretório `ql/javascript/ql/src/Security/` e inspecione os arquivos `.ql` mencionados no relatório, especialmente os metadados `@kind`. Rastreie o caminho de interpretação dos resultados para identificar onde `NO_KIND_SPECIFIED` é gerado. Considera-se concluído quando o erro identifica a consulta que causou a falha de metadados e o comportamento relevante está coberto por um teste de regressão, se o repositório fornecer um.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Domínio
- cli, tooling
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100