Windows: uninstall misses the default install.ps1 location, and uninstall --dir exits 1

Abierto
#3,020 1 comentario 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
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c, powershell

Línea de trabajo

Start at cli_activation_transaction_finalize_committed_or_fail_stop and trace uninstall_transaction_removal_finalize through cli_activation_cleanup_fail_stop; the report identifies this path for the exit code 1 after successful removal. Read the install.ps1 default directory handling and compare it with the native uninstall directory lookup. Reproduce both cases on Windows, then confirm plain uninstall removes the default install and uninstall --dir exits successfully after removal.

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

Descripción

bug editor/integration stability/performance windows
Version

codebase-memory-mcp 0.12.1 and current main (cdfdf264), Windows 11, installed via install.ps1.

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

1) Plain uninstall does not find the binary installed by install.ps1

install.ps1 installs to %LOCALAPPDATA%\Programs\codebase-memory-mcp by default and passes --dir to the native installer. A plain codebase-memory-mcp uninstall assumes ~/.local/bin, so the binary in the install.ps1 location stays in place, and the command still exits 0.

Steps:

  1. Install via install.ps1 with default settings.
  2. Run codebase-memory-mcp uninstall -y.
  3. The binary is still present in %LOCALAPPDATA%\Programs\codebase-memory-mcp; exit code 0.

Possible directions: uninstall remembers or detects the install directory, or install.ps1 uses the native default location. Happy to help once the preferred approach is clear.

2) uninstall --dir=<dir> exits 1 after a successful removal

codebase-memory-mcp uninstall -y --dir=<install dir> removes everything, but then exits 1 and logs coordination.cleanup_timeout. As far as I can see, the failure comes from cli_activation_transaction_finalize_committed_or_fail_stop("uninstall_transaction_removal_finalize"), which ends in cli_activation_cleanup_fail_stop() → _Exit(1) when finalize returns neither OK nor DEFERRED. One possible cause: on Windows, the running .exe is itself the executable being removed. I have not confirmed this.

Impact: scripted uninstalls report failure although the uninstall worked.

Related

  • #2856 (point 2: entries written by a --dir install are left behind)
  • PR #3019 fixes the agent-entry ownership check for uninstall --dir; not covered here.
Reproduction

See above please.

Logs

Diagnostics trajectory (memory / performance / leak issues)

Project scale (if relevant)

No response

Confirmations
  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.
Lenguaje dominante
C
Estrellas
45.8k
Forks
3.8k
Merge medio
2 d 18 h
PR fusionados (30 d)
108

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

  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 DeusData/codebase-memory-mcp

Todos los issues de DeusData/codebase-memory-mcp

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.