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

Aperta
#167 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 ....

Lingua principale
Python
Stelle
5.6k
Fork
344
Merge medio
14h 41m
PR unite (30g)
54

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/TokenEconomizer

Tutte le issue di microsoft/TokenEconomizer

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.