Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Spurious warning: "Unmatched cancel notification"

Abierto
#1,175 2 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript, vscode

Línea de trabajo

Comienza localizando la dependencia vscode-jsonrpc y el punto de entrada que gestiona la cancelación; reproduce el problema iniciando una consulta, cancelándola y leyendo el registro de CodeQL Query Server. Revisa los cambios relacionados con la actualización y, después, verifica que la cancelación ya no emita la línea de unmatched-warning mientras el servidor de consultas siga funcionando.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug VSCode

TL;DR: vscode-jsonrpc should be upgraded.

Describe the bug

Spurious warnings can appear in the "CodeQL Query Server" log when a query is cancelled. I just got the following message when I cancelled during query compilation, and we have a report of the same message during evaluation in an internal issue:

Mar 01, 2022 9:18:52 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 8

There are sometimes bugs with cancellation in the CodeQL engine itself, and these spurious error messages can make it harder to pinpoint the problem, as evidenced in the internal issue.

@alexet wrote this on the internal issue:

Just for reference from previous investigations

WARNING: Unmatched cancel notification for request id 64

is a known benign bug in the old version of vscode-jsonrpc that we use where it forgets to listen to cancellation after completing a request. Upgrading vscode-jsonrpc should in theory fix it, but it came with quite a few other changes that made the upgrade non-trivial. The message means that we are still trying to cancel the compilation step but it is done.

Version

CLI 2.8.1, extension 1.5.9 for VSCode 1.64.2. I'm on Linux, and the other bug report came from a Mac user.

To reproduce

Look at the "CodeQL Query Server" log output. Start a query and cancel it.

Expected behavior

I don't expect to see the line with WARNING. I'm not sure whether I expect to see the line with handleCancellation; it's probably fine.

Lenguaje dominante
TypeScript
Estrellas
539
Forks
240
Merge medio
2 d 6 h
PR fusionados (30 d)
29

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/vscode-codeql

Todos los issues de github/vscode-codeql

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.