Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#2,288 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 8 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bun, typescript
Ambito
tooling

Direzione di ricerca

Leggi il controllo dell'bit di esecuzione in LIFEOS/TOOLS/Doctor.ts:632 e la correzione del separatore PATH da #1992 per seguire il pattern stabilito degli skip specifici di Windows. Scegli se condizionare su process.platform === 'win32' oppure testare la riga dell'interprete, quindi esegui bun LIFEOS/TOOLS/Doctor.ts (idealmente su Windows) per confermare che gli hook smettano di riportare not executable (chmod +x) mentre i veri problemi di esecuzione mancante su POSIX continuano a emergere.

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

Descrizione

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.
Lingua principale
TypeScript
Stelle
19.4k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 danielmiessler/LifeOS

Tutte le issue di danielmiessler/LifeOS

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.