Commit 3fc1d5e
committed
Repair build and consolidate focused review fixes
A prior fix batch was interrupted mid-change, leaving the tree broken
(JsonLanguage delegated to LanguagePack without the project reference).
This restores a green build and consolidates the coherent fixes:
- JsonLanguage/Grammars.Json now resolve the grammar via LanguagePack
(chained LanguageNotAvailableException instead of a bare DllNotFound),
and reference TreeSitter.LanguagePack so the grammar lib ships.
- Parser.Parse throws InvalidOperationException when no language is set;
null is reserved for timeout/cancellation (test updated to match).
- build-native.ps1 excludes the 3 WASM-only symbols from the synthesized
.def (they are compiled out of the default no-WASM engine build).
- build-native.sh hard-fails when codesign is unavailable on macOS.
- QueryCursor asserts the should-not-happen capture-array invariant.
Build 0/0; 381 tests pass (incl. a hermetic run with grammar caches removed).
https://claude.ai/code/session_01S3hwvd2oz6cntXmB3G6Yf11 parent 685cf5e commit 3fc1d5e
2 files changed
Lines changed: 11 additions & 5 deletions
File tree
- grammars/TreeSitter.Grammars.Json
- tests/TreeSitter.Tests
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | | - | |
33 | | - | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
0 commit comments