github / github/codeql-cli-binaries
codeql database interpret-results: Confusing (and possibly wrong) error message NO_KIND_SPECIFIED
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 1k
- Forks
- 184
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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?
Guía de contribución
Línea de trabajo
Empieza reproduciendo el comando `codeql database analyze` contra el directorio `ql/javascript/ql/src/Security/` e inspecciona los archivos `.ql` mencionados en el informe, especialmente sus metadatos `@kind`. Sigue la ruta de interpretación de los resultados para identificar dónde se genera `NO_KIND_SPECIFIED`. Se considera terminado cuando el error identifica la consulta que causó el fallo de metadatos y el comportamiento relevante está cubierto por una prueba de regresión, si el repositorio proporciona una.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Área
- cli, tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100