Skip to content

site: format error cards on reactivescript.dev (1/2) - #1

Open
simonzeiger wants to merge 1 commit into
mainfrom
feat/site-diagnostics
Open

simonzeiger wants to merge 1 commit into
mainfrom
feat/site-diagnostics

Conversation

@simonzeiger

@simonzeiger simonzeiger commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Stack: 1/2 (site/index.html) · 2/2: #2

Summary

Even if agents read most .rx errors day to day, humans still read reactivescript.dev to decide whether to try the language, and the compiler errors are a big part of that pitch. On site/index.html, longer examples like GUESS_WHILE_LOADING and HELD_WRITE currently render as 400–500 character single-color lines where the problem, spec rule, and three or four suggested fixes all run together.

This first PR updates the 5 <pre class="err"> cards on site/index.html to render as rustc-style blocks — headline, --> file:line:col, source line + ^^^ carets, and bulleted = help: options. Part 2 wires the exact same formatter into compiler/ (rxc on TTYs, Vite, and rx-tsc --pretty) and tests site/index.html against drift.

Before & After (site/index.html)

Before (main) After (feat/site-diagnostics)
like.rx before like.rx after
races before races after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant