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

+21 -21
View File
@@ -49,7 +49,7 @@ workspace index, from the same file list, and are replaced with it.
- **The index's freshness is the tables' freshness.** The index rebuilds on
`initialize` and on `didSave`, so the project-wide tables do too. An unsaved
edit in *another* buffer is therefore not in the word table until it is
saved — exactly the rule the index has always had (`vfmt-server`'s
saved — exactly the rule the index has always had (`lucisv-server`'s
invalidation notes). The buffer being typed in is the exception, and needs no
rebuild: its own token stream is already computed on every change, so its
words are harvested per request and an unsaved name is a candidate
@@ -65,7 +65,7 @@ workspace index, from the same file list, and are replaced with it.
## Handshakes
- **Widened in `vlog_parser`** — the only change outside `vfmt_server`.
- **Widened in `vlog_parser`** — the only change outside `lucisv_server`.
`token.rs`'s keyword table became a `keywords![...]` macro invocation that
generates both `pub const KEYWORDS: &[&str]` and `pub fn is_keyword`;
`lib.rs` re-exports `KEYWORDS`. `is_keyword` is still a `matches!` over
@@ -90,7 +90,7 @@ workspace index, from the same file list, and are replaced with it.
innermost-scope idea and nothing else, and lifting one to fit both would have
meant widening another crate's API for a second caller that wants a different
answer. Recorded so the lead can overrule it cheaply.
- **Promises `vfmt_server`'s own callers**: `completions` never panics, always
- **Promises `lucisv_server`'s own callers**: `completions` never panics, always
returns items whose `textEdit` replaces exactly the typed word (plus the
backtick, in the macro case), and never returns a module item whose text
differs from what M4 returned — the M4 tests assert the skeleton byte for
@@ -146,7 +146,7 @@ cursor is, so the rule is stated rather than implied:
a backtick: `` `ifdef NAME ``, `` `ifndef NAME ``, `` `undef NAME ``,
`` `define NAME ``.
Both spellings are tested. `` `undef`` entries are not offered: vfmt does not
Both spellings are tested. `` `undef`` entries are not offered: lucisv does not
preprocess and cannot say where a name stopped being defined, so a table that
listed them would be pretending to know.
@@ -232,23 +232,23 @@ examples it does not:
- [x] `editors/vscode/package.json` `"version"`
- [x] `editors/vscode/package-lock.json` `"version"` in **both** places (top
level and `packages[""]`)
- [x] `README.md` — the `code --install-extension dist/vfmt-0.3.0.vsix` example
- [x] `README.md` — the `code --install-extension dist/lucisv-0.3.0.vsix` example
- [x] `editors/vscode/README.md` — both install examples
- [x] `tools/RELEASING.md` — the `dist/` listing, the install commands, the
`git tag v0.3.0` example and the appendix's publish commands
- [x] `CHANGELOG.md` — a `0.3.0 — 2026-08-24` section in the existing voice:
one paragraph per area (filelists, rename, ports, module hinting,
completion, editors), each linking to its feature README
- [x] Verified: `target/debug/vfmt --version` → `vfmt 0.3.0`. Nothing
hard-codes a version string in Rust; `vfmt --version` and the server's
- [x] Verified: `target/debug/lucisv --version` → `lucisv 0.3.0`. Nothing
hard-codes a version string in Rust; `lucisv --version` and the server's
`serverInfo.version` both read `env!("CARGO_PKG_VERSION")`.
- [x] Verified: `node editors/vscode/smoke.js target/debug/vfmt-server` →
- [x] Verified: `node editors/vscode/smoke.js target/debug/lucisv-server` →
`smoke: OK`
Deliberately **not** touched: the `0.2.0` section of `CHANGELOG.md`,
`docs/features/release-prep/README.md` and `TODO.md`'s release entry — those
record what happened at 0.2.0 and are not install instructions. The literal
`0.2.0` strings in `vfmt_core/src/cache.rs`'s and `vfmt/tests/cli.rs`'s
`0.2.0` strings in `lucisv_core/src/cache.rs`'s and `lucisv/tests/cli.rs`'s
corrupt-cache fixtures are deliberately malformed lines whose version field is
incidental; they exercise the parser, not the version.
@@ -283,7 +283,7 @@ incidental; they exercise the parser, not the version.
tests added in `token.rs`; the parser suite (185 → 187 lib tests, all four
targets) is green.
**Tables (`crates/vfmt_server/src/candidates.rs`, new).** `Candidates` holds
**Tables (`crates/lucisv_server/src/candidates.rs`, new).** `Candidates` holds
three sorted vectors — index names, macro names, project words — built in
`Workspace::rebuild_index` from the same `collect_sources()` list the index
gets. That is what makes the scope ladder and the open-buffer-beats-disk rule
@@ -330,7 +330,7 @@ incidental; they exercise the parser, not the version.
**Suite**: 1 232 → 1 262 workspace tests, all green; `cargo fmt --all --
--check` and `cargo clippy --all-targets` clean; `node
editors/vscode/smoke.js target/debug/vfmt-server` → `smoke: OK`.
editors/vscode/smoke.js target/debug/lucisv-server` → `smoke: OK`.
## QA log
@@ -343,8 +343,8 @@ incidental; they exercise the parser, not the version.
- `cargo test --workspace` — green, **1262** tests (summed the per-crate
`test result` lines myself rather than trusting the printed total) —
matches the Work log's `1232 → 1262` claim exactly.
- `node editors/vscode/smoke.js target/debug/vfmt-server` — `smoke: OK`.
- `cargo build -p vfmt` then `target/debug/vfmt --version` → `vfmt 0.3.0`.
- `node editors/vscode/smoke.js target/debug/lucisv-server` — `smoke: OK`.
- `cargo build -p lucisv` then `target/debug/lucisv --version` → `lucisv 0.3.0`.
All gates: **pass, claims confirmed.**
@@ -378,7 +378,7 @@ total**, matching the claim exactly once both files are counted together.
Diffed the gate itself: `at_module_item`, `enclosing_scopes`,
`is_procedural`, `balanced`, and the `ITEM_SCOPES`/`NOT_ITEM_SCOPES`/
`PROCEDURAL`/`STATEMENT_END` constants are **byte-identical** between
`git show HEAD:crates/vfmt_server/src/completion.rs` and the working tree —
`git show HEAD:crates/lucisv_server/src/completion.rs` and the working tree —
only a doc comment above `completions` changed (`"module completions"` →
`"completions"`). The gate that decides *where* a skeleton may appear was
not touched.
@@ -536,13 +536,13 @@ not against this milestone's own code, since nothing in `completion.rs` or
is one the dev's README lists as deliberately untouched — `CHANGELOG.md`'s
`0.2.0` history section, `TODO.md`'s release-prep line,
`docs/features/release-prep/README.md`'s own history, and the
malformed-cache-line fixtures in `vfmt_core/src/cache.rs` and
`vfmt/tests/cli.rs`. No stray `0.2.0` anywhere else.
malformed-cache-line fixtures in `lucisv_core/src/cache.rs` and
`lucisv/tests/cli.rs`. No stray `0.2.0` anywhere else.
- `cargo metadata` — all eight workspace crates report `0.3.0`.
`editors/vscode/package.json` and **both** places in
`package-lock.json` (top level and `packages[""]`) — `0.3.0`.
`Cargo.toml`'s `[workspace.package] version` — `0.3.0`.
`target/debug/vfmt --version` → `vfmt 0.3.0`.
`target/debug/lucisv --version` → `lucisv 0.3.0`.
- `CHANGELOG.md`'s `0.3.0` section: read against what actually shipped
(filelists, rename, ports, module hinting, completion, editors) —
accurate, no overclaiming; the completion paragraph's "860 real-world
@@ -569,8 +569,8 @@ loaded machine) and the file/word/index counts match exactly (860 / 16 750
### e2e — real server binary over stdio
Ran the dev's own `crates/vfmt_server/tests/e2e.rs` tests as part of the
full-suite gate (both pass). Independently drove `target/debug/vfmt-server`
Ran the dev's own `crates/lucisv_server/tests/e2e.rs` tests as part of the
full-suite gate (both pass). Independently drove `target/debug/lucisv-server`
over stdio by hand (a small Python LSP client, not committed anywhere) for
the one case the dev's own e2e test doesn't explicitly assert on:
@@ -583,7 +583,7 @@ the one case the dev's own e2e test doesn't explicitly assert on:
- Project-word completion from another file, and inside-comment decline:
already covered by the dev's own
`keyword_and_project_completion_round_trip_over_the_wire`, which I
re-ran in isolation (`cargo test -p vfmt_server --test e2e
re-ran in isolation (`cargo test -p lucisv_server --test e2e
keyword_and_project_completion -- --nocapture`) — passes standalone.
**LOW, informational — the Status/TODO line "e2e stdio round trip for the
@@ -603,7 +603,7 @@ unambiguous fix).
### Cleanup
All probing was done with temporary `qa_probe_*` `#[test]` functions added
to `crates/vfmt_server/src/completion.rs`'s existing `tests` module, run
to `crates/lucisv_server/src/completion.rs`'s existing `tests` module, run
with `--nocapture`, then fully reverted. Verified clean:
`grep -rn qa_probe crates/` — zero hits; `git diff --stat` for this file
matches the pre-QA baseline exactly (898 changed lines, same as