xonecas.io
8356
Wx

www-xonecas-io / files

www-xonecas-io / tickets / 1046-site-build-panics-when-no-project-is-shown.md

1.0 KB
1---
2id: 1046
3title: site build panics when no project is shown
4type: bug
5status: inbox
6priority: p3
7area: site
8created: 2026-11-08T16:11:51Z
9updated: 2026-11-08T20:51:10Z
10source: agent
11moves: 2026-11-08T20:16:38Z inbox doing drag; 2026-11-08T20:51:10Z doing inbox drag
12---
13
14site build crashes with 'panic: runtime error: index out of range [0] with length 0' at internal/site/rows.go:19 (Rows reads projects[0]) when data/projects.json has no shown project. Seen on 1042: a scratch site whose only repos were hidden as empty. The post-receive hook's build then fails and build.log holds the panic. Not checked: whether any other page builder assumes at least one project. Your real site always has shown projects, so it does not hit this today.
15
16## Notes
17
18- 2026-11-08 16:12Z (agent): Triage: bug, p3, area site. p3 because your real site always shows projects, so only an empty or test site hits it. It appears when every repo is hidden, e.g. a fresh site whose first pushed repo has none of your commits. Not a duplicate.