Windows: a file named `nul` in the repo makes every index_repository abort with aborted_previous_preserved (0.11.0)
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- c, git
- Área
- devtools, operating-systems
Línea de trabajo
Start with semantic_manifest_hash_file in src/pipeline/pipeline_incremental.c (around line 168), where a non-regular path returns CBM_NOT_FOUND, and the loop around lines 512-515 that aborts the whole manifest on one failure. Reproduce on Windows by creating an empty nul file in a small repo and running index_repository, then check the path handling. Done means the index completes with the reserved-name file skipped, or the response names the offending path instead of the generic hint.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Environment
- codebase-memory-mcp 0.11.0 (Windows 11, x64), daemon build
7edcd3807ebc… - Repository on NTFS, plain git checkout
What happens
A single empty file literally named nul in the repository root makes every index_repository run on that repository abort within ~3 s:
{"project":"<name>","status":"aborted_previous_preserved","hint":"Indexing aborted before publication; the previous index is intact and still serving. Causes: files changed while the run was in flight, or a discovery/manifest phase failed transiently. Retry; if it repeats, check the run log."}
It repeats on every retry (--mode full and --mode fast), so for an unindexed project no index is ever created. No run log survives (the worker log is unlinked on clean exit), so the only visible signal is the generic hint above, which points at "files changed" / "transient" causes rather than a deterministic one.
Such files are common on Windows: a shell command written as cmd > nul or 2>nul and run under Git Bash/MSYS creates a real file named nul. On Win32, opening <dir>\nul without the \\?\ prefix opens the NUL device, not that file.
The file was also listed in the repository's .gitignore (nul), and the run still aborted.
Reproduction
- Take any small git repository that indexes successfully.
- Create an empty file named
nulin it (from Python:open(r"\\?\C:\path\to\repo\nul", "wb").close()). - Optionally add
nulto.gitignore. codebase-memory-mcp cli index_repository --repo-path C:\path\to\repo→aborted_previous_preserved.- Delete the file (
os.remove(r"\\?\C:\path\to\repo\nul")) → the same command returnsindexed.
I verified this by bisection: a copy of the affected repository's git-visible files indexed fine; adding only an empty nul reproduced the abort; removing nul from the original repository fixed it.
Likely code path (tag v0.11.0, commit 8972ea6)
src/pipeline/pipeline_incremental.c:168(semantic_manifest_hash_file):if (cbm_path_info_utf8(abs_path, &before) != 0 || !before.is_regular || before.is_symlink) { return CBM_NOT_FOUND; }—…\nulresolves to the device, so it is not a regular file.src/pipeline/pipeline_incremental.c:512-515: any per-file failure ends the whole manifest:cbm_log_error("semantic_manifest.err", "path", files[i].path); rc = CBM_NOT_FOUND; break;src/pipeline/pipeline.c:2740-2741: a failed baseline manifest becomesrc = CBM_PIPELINE_ABORT_PRESERVE_DB, reported asaborted_previous_preserved(src/mcp/mcp.c:11266).
I did not confirm from a log which of these lines fired, since the worker log is not kept; the bisection result is the hard evidence.
Expected
- Discovery skips (or reports as not indexed) Windows reserved device names (
nul,con,aux,prn,com1–com9,lpt1–lpt9, with or without extension), and honours.gitignorefor them, so one junk file cannot block a whole repository. - If a file still cannot be hashed, the response names the path (the
semantic_manifest.errpath is already logged internally) instead of the generic "files changed / transient" hint.
- Lenguaje dominante
- C
- Estrellas
- 45.8k
- Forks
- 3.8k
- Merge medio
- 3 d 6 h
- PR fusionados (30 d)
- 201
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DeusData/codebase-memory-mcp
-
Generated Pi extension (cbmem.ts) breaks Gemini/Antigravity: Type.Union of Type.Literal serializes to anyOf/constPosiblemente ocupada @divakantpandey la tomó hoy. Abiertobug editor/integration
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DeusData/codebase-memory-mcp#2787 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
editor/integration parsing/quality
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DeusData/codebase-memory-mcp#2286 ·
Los mantenedores suelen responder en 2 días
-
install writes an unsupported `args` key into the Claude Code SubagentStart hook, so it never runsAbiertobug editor/integration priority/high stability/performance ux/behavior
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DeusData/codebase-memory-mcp#2239 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
bug priority/high ux/behavior
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DeusData/codebase-memory-mcp#2232 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
documentation editor/integration parsing/quality priority/normal
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
DeusData/codebase-memory-mcp#2169 ·
Los mantenedores suelen responder en 2 días
Todos los issues de DeusData/codebase-memory-mcp
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
yunusemreyl/omen-space#337 ·
Los mantenedores suelen responder en 1 día
-
dependency component: oneMKL module: dpclang
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
intel/torch-xpu-ops#5880 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
netty/netty-tcnative#1024 ·