Windows: watcher never polls a project whose root path has non-ASCII characters (root_stat_error errno=42)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 68/100
Direção de pesquisa
Start in src/watcher/watcher.c at root_status() and the .git probe; the report identifies raw stat() calls and notes cbm_path_info_utf8 as an existing Windows path handling reference. Reproduce on Windows with a project under a CJK path and compare against an ASCII path. Done when the watcher polls and detects edits for both git and non-git roots with non-ASCII paths.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Version
codebase-memory-mcp 0.12.1
Platform
Windows (x64), Windows 11
Install channel
Prebuilt Windows binary in %LOCALAPPDATA%\Programs\codebase-memory-mcp
Binary variant
ui
What happened, and what did you expect?
When a project's root path contains non-ASCII characters (for example a CJK folder name), the background watcher never polls it. index_status keeps reporting watch.watched: true, watch.strategy: pending, and the daemon log repeats watcher.root_stat_error ... errno=42 on every poll.
Indexing itself works on the same path: both a manual index_repository and auto_index on session start succeed. Only auto-refresh is broken. It affects git roots and non-git roots (with watch_non_git=true).
The same fixture under an ASCII-only path is refreshed about 10 s after an edit (strategy: tree).
Expected: a root with non-ASCII characters in its path is polled the same way as an ASCII one.
Reproduction
- Dummy code, under a folder with a CJK name, for example
C:\tmp\測試父層:repoA\src\OrderService.cs(git initinrepoA):namespace Shop { public class OrderService { public void PlaceOrder() {} } }repoB\src\PaymentGateway.cs(git initinrepoB):namespace Shop { public class PaymentGateway { public void ChargeCard() {} } }
codebase-memory-mcp config set auto_index true,codebase-memory-mcp config set watch_non_git true, then start a fresh daemon.- Open an MCP session with cwd
C:\tmp\測試父層(non-git root). The project is auto-indexed correctly. - Add
public void RefundCard() {}toPaymentGateway.cs. - Call
search_graphwithname_pattern: ".*RefundCard.*"every 5 s for 3 minutes: always 0 results.index_statusstill showsstrategy: pendingand the originalindexed_at. - Same result with cwd
C:\tmp\測試父層\repoA(a git root): edit not picked up after 90 s,strategy: pending.
Control: the identical fixture under C:\tmp\asciiparent: the new symbol is found about 10 s after the edit, strategy: tree.
Logs
level=warn msg=watcher.root_stat_error project=<...>-e6b8ace8a9a6e788b6e5b1a4 path=C:\tmp\測試父層 errno=42
level=warn msg=watcher.root_stat_error project=<...>-e6b8ace8a9a6e788b6e5b1a4-repoA path=C:\tmp\測試父層\repoA errno=42
(repeated on every poll)
Likely cause
errno 42 is EILSEQ in the MSVC CRT. poll_project() calls root_status() (src/watcher/watcher.c, line 994 at v0.12.1), which uses raw stat(root_path, &st) on the UTF-8 root path. The narrow CRT stat() does not accept UTF-8 CJK bytes, so it fails, the root is classified ROOT_UNCERTAIN, and poll_project() returns before the first poll. The comment near line 650 already notes that cbm_path_info_utf8 handles non-ASCII paths on Windows; root_status() and the raw stat() in the .git probe around line 532 do not use it.
- Linguagem predominante
- C
- Estrelas
- 45.8k
- Forks
- 3.8k
- Merge médio
- 2d 18h
- PRs com merge (30d)
- 108
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DeusData/codebase-memory-mcp
-
bug ux/behavior
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
DeusData/codebase-memory-mcp#3191 ·
Mantenedores costumam responder em até 1 dia
-
documentation enhancement parsing/quality ux/behavior
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 82/100
DeusData/codebase-memory-mcp#3131 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug editor/integration parsing/quality ux/behavior
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
DeusData/codebase-memory-mcp#3062 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Generated client files (AGENTS.md block, SKILL.md) teach a call syntax no harness can executeAbertabug documentation editor/integration parsing/quality
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
DeusData/codebase-memory-mcp#3050 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
editor/integration parsing/quality
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DeusData/codebase-memory-mcp#2286 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de DeusData/codebase-memory-mcp
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Mantenedores costumam responder em até 1 dia
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameAbertagame: 010065A014024000 ios
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
seedds/nxnative#3714 · 1 comentário ·
Mantenedores costumam responder em até 2 dias