diff: Neovim hangs at exit after SIGTERM during :%s in a nested autocmd (split layouts)

Abierto
#600 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
50/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
lua
Área
devtools

Línea de trabajo

Start with tests/integration/diff_exit_reject_spec.lua and reproduce the SIGTERM-during-substitution trigger in a split layout. Trace the exit path through cleanup_at_exit, server.stop, and split-layout diff closing; the cause is not yet known. Done means fixing the hang and adding a regression case, or, if Neovim itself is responsible, documenting this exit in the README's list of exits that do not answer.

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

Descripción

needs-triage

Neovim hangs at exit after SIGTERM arrives during :%s in a nested autocmd, with diffs open in a split layout.

Defect. In the vertical and horizontal layouts, with two openDiff calls waiting: a nested = true autocmd runs :%s on a large buffer (for example 300,000 lines, through nvim_buf_call), and SIGTERM arrives during the :%s. Both calls get DIFF_REJECTED, then Neovim hangs while it removes the diffs. Claude's client sees close code 1006 instead of 1001, and the lock file stays. The unified layout exits normally. Reproduced 4 of 4 times with #572 and 2 of 2 times on the commit before it, on Neovim 0.8.0 and 0.12.3. The cause is not known.

This contradicts the README "Exit answers" bullet, which promises close 1001 and a removed lock file for SIGTERM.

Next step. Bisect the exit path (cleanup_at_exit, server.stop, the split-layout diff close) under that trigger, fix it, and add a case to tests/integration/diff_exit_reject_spec.lua. If the hang is in Neovim itself, add the case to the README's list of exits that do not answer.

Owner: the next change to the diff exit path. Deferred from the README verification run with the maintainer's agreement.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Lenguaje dominante
Lua
Estrellas
3.2k
Forks
223
Merge medio
7 h 18 min
PR fusionados (30 d)
234

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin 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 coder/claudecode.nvim

Todos los issues de coder/claudecode.nvim

Issues similares

Más issues de Lua

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.