Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

7.40.4, Windows: Doctor flags every hook as not executable (chmod +x), testing POSIX exec bits that NTFS never sets (Doctor.ts:632)

オープン 初心者向け
#2,288 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bun, typescript
領域
tooling

調査の方向性

LIFEOS/TOOLS/Doctor.ts:632 の実行ビットチェックと、#1992 の PATH 区切り文字の修正を読み、Windows 固有のスキップにおける確立されたパターンを把握する。process.platform === 'win32' で分岐するか、インタプリタ行をテストするかを決めた上で、bun LIFEOS/TOOLS/Doctor.ts を(可能であれば Windows 上で)実行し、フックが not executable (chmod +x) の報告をやめること、そして POSIX における実際の実行不能の問題が引き続き表面することを確認する。

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

説明

Version

LifeOS 7.40.4 on Windows 11 (Git for Windows shell, bun).

What is broken

Doctor.ts checks each hook file's stat.mode & 0o111 and reports not executable (chmod +x) when the bits are clear. On Windows, Node's fs.stat reports no exec bits for ordinary files, so every hook shows red although the hooks fire normally: settings.json invokes them through bun, which never consults the mode. #1992 covered the PATH-separator half of Doctor's Windows false reds; this check is the other half and still fires.

Where (file:line)

LIFEOS/TOOLS/Doctor.ts:632: if (!(mode & 0o111)) { problems.push(\${name}: not executable (chmod +x)`); continue; }`

Repro on a clean tree
  1. Fresh 7.40.4 install on Windows.
  2. bun LIFEOS/TOOLS/Doctor.ts lists every hook as not executable (chmod +x).
  3. Start a session: the hooks fire (hook-injected context such as the Algorithm nudge and the drift reminder appears in the turn).
Negative control

bun hooks/<any>.hook.ts runs the file directly with exit 0 regardless of its mode, and the same hooks have been firing on this install since 2026-10-01 while Doctor reported them non-executable every run. The check is informative only where the file is launched as an executable, which the shipped settings.json never does.

Suggested fix

Skip the mode check when process.platform === 'win32' (the bit carries no information there), or test the interpreter line instead of the mode. Untested.

Before submitting
  • I searched open and closed issues for this defect.
  • The repro runs against a clean tree of the version above, not against my modified install.
  • I removed personal data from the pasted output — real names, absolute home paths, tokens, my own content.
主要言語
TypeScript
スター
19.4k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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