A render failure is hidden from `spawn`/`status` output, and the retry hint names a nonexistent `prepare`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start by locating the human output paths for spawn and status, then compare them with the spawn --json output where render_error appears. Check how the retry hint is chosen and whether the resource defines the suggested action. Done when human output shows render and export errors and render or export failures suggest fixing the file or definition and re-binding.
Written by the indexing model from the issue text.
Description
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(andexport_error) in the human output ofspawnandstatus. 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.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 4h 56m
- Merged PRs (30d)
- 51
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Spheroman/newgit
-
`tracker list` leaves out trackers with no `paths`Possibly taken @Spheroman claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Port allocation order within a resource is unspecifiedPossibly taken A pull request linked to this issue is open or already merged. Opendocumentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Spheroman/newgit#59 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in Spheroman/newgit
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
swc-project/swc-next#1165 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Alive24/shea-symphony#574 ·
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
dev-five-git/devup-ui#879 ·
Maintainers usually reply within 11 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
farion1231/cc-switch#9038 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
FalkorDB/FalkorDB#3597 · 1 comment ·
Maintainers usually reply within 2 days