Windows: te launcher fails in Git Bash; lib/tokeneconomizer symlink checked out as plain file

Abierto
#167 2 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
48/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, python

Línea de trabajo

Start by reading build_plugin.py, scripts/te, and the _symlink_stub and core_path() logic mentioned in the issue; reproduce the failures in Git Bash on Windows. Check how the published bundle handles the launcher path, Python path, and lib/tokeneconomizer package. Done when both failures are resolved in a Windows cache install and the hooks can find the package.

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

Descripción

Two Windows (Git Bash) failures when the plugin is installed from the cache (Windows, omp/Claude Code, Python 3.13):

  1. Launcher path. ~/.tokeneconomizer/bin/te is written as exec 'C:\Users\...\scripts\te' "$@". Git Bash can't exec a backslash path: exec: ...\scripts\te: not found (exit 127). Even with a forward-slash path, scripts/te fails at its cd -- "${self%/*}" (line 8) and at exec "$p" with a backslash python.exe path (line 26). Suggest writing the launcher path with / (or cygpath -u when available) and normalising the resolved Python path the same way.
  2. lib/tokeneconomizer symlink. In the installed copy it is a 21-byte plain file (../../tokeneconomizer), since Windows did not check out the symlink. _symlink_stub resolves it to <plugin>/tokeneconomizer, which does not exist, so core_path() returns None and hooks log bootstrap: the tokeneconomizer package was not found.... Suggest build_plugin.py copy the package into lib/ for the published bundle instead of linking, or fall back to ~/.tokeneconomizer/src when the stub target is missing.

Workaround: TE_CORE_PATH=~/.tokeneconomizer/src python <plugin>/scripts/te_bootstrap.py cli ....

Lenguaje dominante
Python
Estrellas
5.6k
Forks
344
Merge medio
14 h 41 min
PR fusionados (30 d)
54

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 microsoft/TokenEconomizer

Todos los issues de microsoft/TokenEconomizer

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.