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

A render failure is hidden from `spawn`/`status` output, and the retry hint names a nonexistent `prepare`

Aperta Adatta ai principianti
#262 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Spheroman ci sta già lavorando.

Dal 29/10/2026.

  • #288 di @Spheroman — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Inizia individuando i percorsi dell’output destinato alle persone per spawn e status, quindi confrontali con l’output JSON di spawn --json, in cui compare render_error. Verifica come viene scelta l’indicazione di ripetizione e se la risorsa definisce l’azione suggerita. Il lavoro è completo quando l’output destinato alle persone mostra gli errori di rendering e di esportazione e gli errori di rendering o esportazione suggeriscono di correggere il file o la definizione e di eseguire nuovamente il binding.

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

Descrizione

When a resource fails to bind because of a render error, the human output of spawn and status never says why, and the retry hint names an action the resource doesn't have.

Repro

Any render whose find no longer matches count times, e.g. after the capture-reversal bug (#260):

$ newgit spawn rev2
Spawned branch instance `rev2` — but `web` did not come up (see below)
spawned with failures: 1 of 2 resources did not bind.

$ newgit status rev2
`rev2` is not ready:
  - `web` failed — retry with `newgit action web.prepare`; its logs are under .newgit/logs/rev2

$ newgit action web.prepare rev2
Error: resource `web` has no action named `prepare`

$ ls .newgit/logs/rev2
deps.key-….log                 # nothing for web

The "(see below)" in the spawn output has nothing below it. The reason exists, but only in spawn --json:

"render_error": "resource `web` renders into `.env.local`, but `127.0.0.1:8000` occurs 2 time(s) there, not 1; …"
Expected
  • Print render_error (and export_error) in the human output of spawn and status. They're already good messages.
  • Base the retry hint on the failure: a render or export failure should point at fixing the file or definition and re-binding, not at prepare. Never suggest an action the resource doesn't define.

Environment: newgit 0.7.0 (06fc371005bc), macOS (Darwin 27.0.0), APFS, git 2.55.0. Minimal scratch project: one secret tracker env owning .env.local, a deps install (hash/recompute), and a web process (python3 -m http.server $WEB_PORT, autostart) with a [[render]] into app.conf.

Lingua principale
Rust
Stelle
0
Fork
0
Merge medio
4h 56m
PR unite (30g)
51

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. 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 Spheroman/newgit

Tutte le issue di Spheroman/newgit

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.