Phase 5a: add configurable Jai module roots

This commit is contained in:
hgranthorner
2026-08-05 10:24:32 -04:00
parent 9122b5a5c0
commit 2bc1b9f4be
13 changed files with 740 additions and 214 deletions

View File

@@ -170,7 +170,7 @@ Each phase has a machine-checkable gate. Do not advance without a green gate.
| **3** | `.bnf` grammar, generated parser + PSI, `ParserDefinition` | Tier 2 golden trees; Tier 3 corpus parse ≥ target — **done, 100.0% (714/714)** |
| **4** | Structure view, folding, `#import`/`#load` reference resolution + go-to-definition | Tier 4 fixture tests — **done** |
| **5** | Completion (keywords, directives, module names), rename, find-usages | Tier 4 fixture tests — **done** (71-test suite) |
| **5a** | Configurable Jai module/import roots and indexed external search scope | Tier 4 settings, resolution, completion, navigation, and find-usages tests |
| **5a** | Configurable Jai module/import roots and indexed external search scope | Tier 4 settings, resolution, completion, navigation, and find-usages tests**done** (78-test suite) |
| **6** | Formatter, code style settings | Formatter round-trip: formatting the corpus is idempotent |
| **7** | Inspections (e.g. `#must` misuse), quick fixes, live templates | Tier 4 + `verifyPlugin` |
| **8** | Optional: run-configuration to invoke the `jai` compiler, parse its error output | Integration test against `~/.local/jai/bin` |
@@ -198,7 +198,7 @@ corpus-scale invariant that needs no human judgment.
## 6. Open questions for you
1. **Scope/ambition** — stop at the current syntax, navigation, and basic
refactoring support (Phases 05), or go all the way to formatter and
refactoring support (Phases 05a), or go all the way to formatter and
inspections (07)?
2. **Compiler integration** (Phase 8) — worth it? It's the only phase needing
the actual `jai` binary, and it's the least testable.
@@ -208,7 +208,6 @@ corpus-scale invariant that needs no human judgment.
setup, works today), or install a system JDK via Homebrew? I'd default to the
wrapper.
Phases 05 are implemented and verified headlessly. The next planned increment
is Phase 5a: configurable module/import roots and indexed external search scope.
After that, decide whether to continue with the optional formatter, inspections,
and compiler integration work in Phases 68.
Phases 05a are implemented and verified headlessly. The next decision is
whether to continue with the optional formatter, inspections, and compiler
integration work in Phases 68.