Rename the tool to lucisv (Language Utility for Coding In SystemVerilog)

This commit is contained in:
lucio committed 2026-08-25 23:36:00 -07:00
1 parent a284e33110
commit eeaffafd56
188 files changed
+2825 -2802

No files matched your search

+16 -16
View File
@@ -9,7 +9,7 @@ An ordered connection list writes the *values* and leaves the *names* to the
reader's memory: `u1 (clk, rst_n, data)` says nothing about which port each
expression lands on, and getting that wrong is one of the classic ways to
break a design without breaking the build. The module's own declaration knows,
and vfmt's workspace index knows where that declaration lives, so
and lucisv's workspace index knows where that declaration lives, so
`textDocument/inlayHint` draws each port's name as a ghost label before the
expression it belongs to — `clk:`, `rst_n:`, `data:` — and does the same for a
positional `#( ... )` override against the module's parameters. Nothing is
@@ -79,11 +79,11 @@ has no way to tell it is wrong.
`Connections`, `OrderedConn`, `Connection`, and the generate-block nodes the
walk descends through. Read-only; `Expr::span` is what a hint's position is
computed from.
- **Consumes `vfmt_server::state`** — `Workspace::document` for the buffer's
- **Consumes `lucisv_server::state`** — `Workspace::document` for the buffer's
tree, `Workspace::index`/`text_of` for the defining file, exactly as
`signature.rs` does. Nothing in `state.rs` was changed: no cross-request
cache was added, so the workspace stays immutable through this handler.
- **Promises `vfmt_server`** — `inlay::inlay_hints` never panics, never
- **Promises `lucisv_server`** — `inlay::inlay_hints` never panics, never
returns a hint outside the requested range, and never returns a hint whose
label is not a port or parameter name the module's declaration actually
writes.
@@ -162,7 +162,7 @@ buffer) that is not worth paying for today.
## Status / TODO
- [x] `crates/vfmt_server/src/inlay.rs`: `inlay_hints`, the ordered-list site
- [x] `crates/lucisv_server/src/inlay.rs`: `inlay_hints`, the ordered-list site
collection for both ports and parameters, the per-request `Plans` cache,
the instantiation walk
- [x] `inlayHintProvider` in `main.rs`, no `resolveProvider`; the dispatch arm
@@ -180,7 +180,7 @@ buffer) that is not worth paying for today.
and deleted
- [x] `cargo fmt --all -- --check`, `cargo clippy --all-targets`,
`cargo test --workspace`, `editors/vscode/smoke.js`
- [x] `docs/features/vfmt-server/README.md` capability table + work log
- [x] `docs/features/lucisv-server/README.md` capability table + work log
- [ ] Not done, backlog: a cross-request plan cache keyed on the index
generation (see *Cost*); type hints, value hints and any other hint kind
(deliberately out of scope — this milestone is exactly the two).
@@ -218,18 +218,18 @@ buffer) that is not worth paying for today.
**A mixed parameter list is silent, which is a judgement call.** The brief
says "mixed illegal lists → sane". Hinting the positional half of
`#(8, .DEPTH(16))` was the alternative; it is exactly the case where the
reader cannot tell whether the author meant the entries to shift, so vfmt
reader cannot tell whether the author meant the entries to shift, so lucisv
says nothing rather than something confident.
**`bind` is included.** `bind u_dut sub u_chk (a, b);` carries an ordinary
instantiation, connection list and all, so the walk descends into it. One
match arm; nothing else about `bind` is touched.
**Files touched.** New: `crates/vfmt_server/src/inlay.rs`, this README.
Edited: `crates/vfmt_server/src/main.rs` (the module declaration, the
capability, two tests), `crates/vfmt_server/src/server.rs` (one dispatch
arm and its imports), `crates/vfmt_server/tests/e2e.rs` (one new test),
`docs/features/vfmt-server/README.md` (capability table and work log).
**Files touched.** New: `crates/lucisv_server/src/inlay.rs`, this README.
Edited: `crates/lucisv_server/src/main.rs` (the module declaration, the
capability, two tests), `crates/lucisv_server/src/server.rs` (one dispatch
arm and its imports), `crates/lucisv_server/tests/e2e.rs` (one new test),
`docs/features/lucisv-server/README.md` (capability table and work log).
**Not touched, deliberately:** `TODO.md`, the umbrella checklist in
`docs/features/refactor/README.md`, `signature.rs`, `completion.rs`,
@@ -243,7 +243,7 @@ buffer) that is not worth paying for today.
binary: OK. No new dependencies. No commits.
- **2026-08-25 (dev, M11 hierarchy)** — the private instantiation walk at the
bottom of `inlay.rs` moved to `crates/vfmt_server/src/instantiations.rs`, so
bottom of `inlay.rs` moved to `crates/lucisv_server/src/instantiations.rs`, so
the call hierarchy can read the same one instead of writing a second
(`docs/features/hierarchy/README.md`). The lifted version threads the
innermost enclosing module declaration through the recursion; `inlay_hints`
@@ -264,7 +264,7 @@ buffer) that is not worth paying for today.
**Gates.** `cargo fmt --all -- --check`, `cargo clippy --all-targets
--workspace`, `cargo test --workspace` all clean before any QA change —
**1358 passed, 0 failed**, matching the dev's number exactly. `node
editors/vscode/smoke.js target/release/vfmt-server` — OK; confirmed the
editors/vscode/smoke.js target/release/lucisv-server` — OK; confirmed the
script's fixed capability list (`main.rs`'s check, mirrored in the smoke
script) does not include `inlayHintProvider`, matching the disclosed,
deliberate handshake gap.
@@ -272,7 +272,7 @@ buffer) that is not worth paying for today.
**Finding — HIGH, fixed.** A module whose port or parameter list carries
`` `ifdef``/`` `else`` directives got hints built from
`InstantiationPlan`'s **union of every arm**, which is a shape no single
build configuration ever has. Repro: `crates/vfmt_server/src/inlay.rs`,
build configuration ever has. Repro: `crates/lucisv_server/src/inlay.rs`,
test `an_ifdef_carrying_declaration_gets_no_hints_rather_than_a_wrong_one`
— `module sub (`ifdef CFG_A input logic a, `else input logic b, `endif
input logic clk);` gives `plan.ports == [a, b, clk]` (verified directly
@@ -286,7 +286,7 @@ buffer) that is not worth paying for today.
all, despite `instantiation_plan` warning about exactly this
(`plan.warnings`) and M4's own README treating the same directive shape as
a first-class case worth a warning. `Plans::read`
(`crates/vfmt_server/src/inlay.rs:192`) called
(`crates/lucisv_server/src/inlay.rs:192`) called
`vlog_refactor::instantiation_plan(...).ok()` and discarded `plan.warnings`
without ever inspecting it. **Fix applied**: `Plans::read` now returns
`None` when `plan.warnings` is non-empty, so a directive-carrying list is
@@ -346,7 +346,7 @@ buffer) that is not worth paying for today.
**Perf.** Rebuilt a cheap harness (`inlay::tests::qa_perf`, `#[ignore]`d,
not part of the default suite — run with `cargo test --release -p
vfmt_server --bin vfmt-server qa_perf -- --ignored --nocapture`) rather
lucisv_server --bin lucisv-server qa_perf -- --ignored --nocapture`) rather
than driving the real binary over stdio, since the library call is what
the dev's own numbers measure too:
- 40 distinct ~90-line ordered modules, one 40-line screen, 840 hints: