Commit 05bf359
♻️ Replace miette and owo-colors with codespan-reporting (#118)
## Summary
- Replace `miette` with `codespan-reporting` for error diagnostics
- Replace `owo-colors` with `yansi` (already a workspace dependency) for
syntax highlighting
- Use codespan's `.with_code()` for error phase labels (e.g.
`error[lexer]`, `error[vm]`)
- Convert `InterpreterError` directly to codespan `Diagnostic`, removing
the intermediate `NdcReport` / `Report` struct
- Fix disassemble error path to pass source code through so span labels
render correctly
- Document branch naming convention in CLAUDE.md
## Test plan
- [x] All 267 tests pass
- [x] Clippy clean
- [x] `cargo fmt` applied
- [x] Manual check: run a script with an error and verify the diagnostic
renders correctly
- [x] Manual check: REPL error rendering
- [x] Manual check: `ndc highlight` subcommand
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <[email protected]>1 parent e9a5365 commit 05bf359
8 files changed
Lines changed: 113 additions & 332 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
0 commit comments