flisk up: exit code 127 from a missing project binary is reported as 'web2 runs bun, which is not installed' (bun is installed)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bun, typescript
- Ambito
- cli
Direzione di ricerca
Start by tracing how flisk up handles exit codes 126/127 and turns service logs into restart and status messages; inspect the service command handling and existing tests for these paths. Reproduce with a local service whose script cannot find vite, then check the case where the service's first command is missing from PATH. Done when the error names the missing project binary, suggests installing dependencies, and exits after one attempt for 126/127.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
When a local service's script cannot find its own tool (here vite, because bun install was never run in that folder), the shell exits 127. flisk up turns every 127 into "runs bun, which is not installed", which is false and points at the wrong fix.
Repro (flisk 1.4.73, Bun 1.4.4 installed at ~/.bun/bin/bun)
flisk project --yes
flisk resource web2 --type frontend --framework vue --path web2 --local --stack app --yes
sed -i '' 's/npm run dev/bun run dev/' web2/service.json # (works around #108)
flisk up # note: no `bun install` in web2
Output:
web2 | $ vite
web2 | /bin/bash: vite: command not found
web2 | error: script "dev" exited with code 127
web2 | [flisk] exited with code 127: web2 runs bun, which is not installed; restarting in 2s
...
❌ Local processes did not start:
✗ web2: runs bun, which is not installed
which bun prints /Users/.../.bun/bin/bun, and the sibling services api and web use the same bun run dev and are healthy.
Numbers
| Item | Value |
|---|---|
| Real cause | vite not found (dependencies not installed) |
| Message claim | bun not installed |
| Automatic restarts before giving up | 5, with delays 2 s, 4 s, 8 s ... (about 30 s of retries for a deterministic error) |
Identical command not found lines in the log |
5 |
Services using the same bun run dev that started fine |
2 of 3 |
Before
The user reinstalls Bun (or edits service.json) instead of running bun install. The same wrong text appears in the live log, the final summary and flisk status (pending (restarting)).
After
- If the log shows
<name>: command not found, say so:web2: 'vite' was not found. Run bun install in web2 (or flisk resource ... --install).Only blame the runtime when the command itself inservice.json(first word) is missing from PATH. - Do not restart on exit 126/127 (deterministic): fail on the first attempt (1 attempt instead of 5, saves about 28 s).
Acceptance
Repro above prints a message that names vite and suggests installing dependencies, and stops after 1 attempt; a service whose first word is truly missing still reports it as today.
Found by the /dogfood loop. Related: #108, #109.
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 2
- Merge medio
- 11h 39m
- PR unite (30g)
- 92
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di flisk-sh/flisk-cli
-
area: infrastructure community docs docs-mismatch documentation dogfood dx good first issue has-repro priority:low small-fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area: cli dogfood dx enhancement error-messages good first issue has-repro misleading-message priority:low small-fix tdd tech: typescript
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
flisk-sh/flisk-cli#196 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: cli discoverability docs-mismatch dogfood dx enhancement good first issue has-repro priority:low small-fix tdd tech: typescript
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
flisk-sh/flisk-cli#195 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: cli bug discoverability docs-mismatch documentation dogfood error-messages has-repro misleading-message priority:medium small-fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area: cli bug dx good first issue has-repro needs-test priority:medium small-fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
flisk-sh/flisk-cli#176 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di flisk-sh/flisk-cli
Issue simili
-
accessibility area:ci ci-test level:low priority:high type:test
Difficoltà 2/5 1-3 ore Idoneità per principianti 71/100
skytuhua-org/Gen-V1#3132 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
drmrd/vernacular#1238 ·
I maintainer di solito rispondono entro 1 giorno
-
question
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
enhancement migration-prioritized
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Hudson-Pufferfish/local-party-console#136 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno