Commit c4e96db
committed
feat: upgrade object literal and keyword errors to Rust-quality
Extended Rust-quality diagnostics to more error paths:
✨ Errors Upgraded:
- Object literal syntax errors ( or identifier)
- Keyword syntax errors ()
- Both now include line + column + helpful examples
📊 Before/After:
BEFORE: "Expected ':key value' or 'identifier' in object literal, got LeftBrace"
AFTER: "Syntax error at line 12, column 8: Expected `:key value` pair or identifier
Help: Object syntax:
{:key value} - key-value pair (requires colon before key!)
{name} - shorthand for {:name name}
Example: {:wallet addr :amount 100}"
🧪 Test Results:
All 3 self-healing attempts now show Rust-quality errors:
- Attempt #1: line 36, col 44
- Attempt #2: line 45, col 44
- Attempt #3: line 45, col 45
AI is making progress between attempts (fixing some errors),
but struggling with deeply nested S-expression parenthesis tracking.
Related: #error-diagnostics #self-healing #developer-experience1 parent 3f5b52c commit c4e96db
1 file changed
+13
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
922 | 924 | | |
923 | 925 | | |
924 | 926 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
929 | 934 | | |
930 | 935 | | |
931 | 936 | | |
| |||
0 commit comments