Adam Chalmers
93891422f7
KCL: Show beautiful Miette errors when a KCL example test fails ( #4829 )
...
* KCL: Show beautiful Miette errors when a KCL example test fails
Background: KCL example tests are generated from the stdlib KCL examples in the `#[stdlib]` macro in derive-docs.
Problem: When these tests fail, they output a really unhelpful error message like Kcl(Semantic(KclErrorDetails { source_ranges: [156, 160, 0], message: "Expected a sketch but found array" } )).
Solution: Use miette. Now the errors highlight the KCL code that failed and show exactly what went wrong, on which line, presenting nice diagnostics that look like cargo/rustc output.
* Update helix snapshots
2024-12-18 09:52:17 -05:00
..
2024-12-16 20:38:32 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-13 09:04:35 -05:00
2024-11-24 20:21:55 +00:00
2024-12-12 01:07:14 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-12-12 18:11:07 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-10-02 22:05:12 -07:00
2024-11-27 15:46:58 +13:00
2024-11-24 20:21:55 +00:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-12-18 09:52:17 -05:00
2024-11-27 15:46:58 +13:00
2024-11-24 20:21:55 +00:00
2024-12-06 13:16:04 -05:00
2024-10-02 22:05:12 -07:00
2024-12-17 11:28:22 -05:00
2024-11-27 15:46:58 +13:00
2024-12-11 01:51:51 +00:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-09-27 10:37:46 -04:00
2024-09-27 10:37:46 -04:00
2024-09-27 10:37:46 -04:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-12-16 20:38:32 +00:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-12-09 19:13:49 -06:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-10-02 22:05:12 -07:00
2024-12-03 19:47:21 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-12-16 20:38:32 +00:00
2024-12-17 11:28:22 -05:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-10-28 20:52:51 -04:00
2024-12-17 11:28:22 -05:00
2024-12-13 13:07:52 -06:00
2024-11-24 20:21:55 +00:00
2024-11-25 10:50:43 +13:00
2024-10-02 22:05:12 -07:00
2024-12-17 11:28:22 -05:00
2024-10-02 22:05:12 -07:00
2024-10-02 22:05:12 -07:00
2024-11-24 20:21:55 +00:00
2024-12-17 11:28:22 -05:00
2024-11-05 14:10:35 -06:00
2024-11-05 14:10:35 -06:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-10-02 22:05:12 -07:00
2024-12-17 11:28:22 -05:00
2024-11-24 20:21:55 +00:00
2024-12-17 11:28:22 -05:00
2024-12-12 01:07:14 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-25 18:07:03 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-12-03 18:17:02 +00:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00
2024-10-02 22:05:12 -07:00
2024-11-24 20:21:55 +00:00
2024-11-24 20:21:55 +00:00