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

オープン
#167 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
5.6k
フォーク
344
平均マージ
14時間 41分
マージ済み PR(30日)
54

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/TokenEconomizer のほかの issue

microsoft/TokenEconomizer の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。