Rename the tool to lucisv (Language Utility for Coding In SystemVerilog)
This commit is contained in:
1 parent
a284e33110
commit
eeaffafd56
188 files changed
+2825
-2802
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
## Goal
|
||||
|
||||
`vfmt-server` has been a running binary since round 11, but a binary nobody can
|
||||
`lucisv-server` has been a running binary since round 11, but a binary nobody can
|
||||
launch from an editor is a demo. This round closes TODO.md §6's last
|
||||
non-deferred item: a **minimal VS Code extension** that registers the
|
||||
Verilog/SystemVerilog file types and starts the server, and **documented
|
||||
@@ -39,7 +39,7 @@ static snippet templates, which LSP has no channel for — see
|
||||
`editors/vscode/README.md` covers the collision.
|
||||
- **The user builds the binary.** No download, no bundled executable, no
|
||||
version check between extension and server. `cargo build --release` and a
|
||||
`PATH` entry, or an absolute `vfmt.serverPath`. A version handshake would be
|
||||
`PATH` entry, or an absolute `lucisv.serverPath`. A version handshake would be
|
||||
worth adding the day a released extension can meet an older server; today
|
||||
they come out of the same working tree.
|
||||
- **Marketplace publishing is out of scope**, as is CI packaging. `publisher`
|
||||
@@ -55,11 +55,11 @@ the same way:
|
||||
|
||||
| Not shipped | Why |
|
||||
|---|---|
|
||||
| ~~TextMate grammar~~ — **ships since 0.4.1** | The original reasoning (below) was right about the *buffer* and wrong about *markdown*, which semantic tokens cannot reach at all. See "The TextMate grammar" below. Struck through rather than deleted, because the reason it was cut is still the reason it is deliberately small. *(Original: "The server ships `semanticTokens` (14 types, `docs/features/vfmt-server/README.md`). A grammar would be a second, worse highlighter to keep in sync.")* |
|
||||
| ~~TextMate grammar~~ — **ships since 0.4.1** | The original reasoning (below) was right about the *buffer* and wrong about *markdown*, which semantic tokens cannot reach at all. See "The TextMate grammar" below. Struck through rather than deleted, because the reason it was cut is still the reason it is deliberately small. *(Original: "The server ships `semanticTokens` (14 types, `docs/features/lucisv-server/README.md`). A grammar would be a second, worse highlighter to keep in sync.")* |
|
||||
| `language-configuration.json` | Comment/bracket rules are the smallest useful thing here, and still a judgement call about Verilog syntax living in the editor layer. The brief says "declare the language only"; if `Ctrl+/` proves painful, this is the first thing to add back — 12 lines, no dependency. |
|
||||
| Commands (restart server, show logs) | The language client already contributes a restart command and an output channel. |
|
||||
| Status bar item | State the user can already see in the Output panel. |
|
||||
| Settings beyond `serverPath` | Formatter options belong in `vfmt.toml`, one source of truth for the CLI and the editor. (The caveat that once lived here — "the server does not read it yet" — was closed by vfmt-core-lift; lead trued up all three doc locations at review.) |
|
||||
| Settings beyond `serverPath` | Formatter options belong in `lucisv.toml`, one source of truth for the CLI and the editor. (The caveat that once lived here — "the server does not read it yet" — was closed by lucisv-core-lift; lead trued up all three doc locations at review.) |
|
||||
| Bundling (esbuild/webpack) | `vsce` warns about the 166 JavaScript files in the dependency; bundling would add a build step to a repo whose extension has none. 460 KB is not a problem worth a toolchain. |
|
||||
| A Neovim plugin | The configuration *is* the integration. A plugin would only wrap `vim.lsp.config`. |
|
||||
|
||||
@@ -69,9 +69,9 @@ the same way:
|
||||
|
||||
Semantic tokens colour *buffers*. The server's richest output is not a buffer:
|
||||
it is **markdown** — hover cards carrying a declaration snippet or a
|
||||
`` `define`` expansion (`crates/vfmt_server/src/hover.rs:89,131`) and a
|
||||
`` `define`` expansion (`crates/lucisv_server/src/hover.rs:89,131`) and a
|
||||
completion template's documentation panel
|
||||
(`crates/vfmt_server/src/completion.rs:423`). All three have always been fenced
|
||||
(`crates/lucisv_server/src/completion.rs:423`). All three have always been fenced
|
||||
```` ```systemverilog ````, which was correct and did nothing: VS Code colours a
|
||||
fenced block by looking the fence's info string up in the **language registry**
|
||||
and tokenizing with the TextMate grammar registered for that language id.
|
||||
@@ -93,7 +93,7 @@ attached (diffs, git blame, walkthrough panes).
|
||||
`editors/vscode/syntaxes/systemverilog.tmLanguage.json` is registered **twice**
|
||||
in `contributes.grammars`, once for `verilog` and once for `systemverilog`,
|
||||
with the same `scopeName` (`source.systemverilog`) and the same `path`. That is
|
||||
the boring option, and it is honest: vfmt's own lexer has a single `KEYWORDS`
|
||||
the boring option, and it is honest: lucisv's own lexer has a single `KEYWORDS`
|
||||
list serving both dialects, so a second grammar would be a copy that can only
|
||||
drift.
|
||||
|
||||
@@ -109,7 +109,7 @@ against VS Code's own shipped code rather than assumed. In
|
||||
registration for a scope warns **only when the two locations differ**:
|
||||
`isEqual(old.location, new.location) || console.warn('Overwriting grammar scope
|
||||
name to file mapping…')`. Same file, no warning; the language-to-scope map
|
||||
takes both ids. `crates/vfmt_server/tests/grammar.rs` asserts both entries keep
|
||||
takes both ids. `crates/lucisv_server/tests/grammar.rs` asserts both entries keep
|
||||
naming the same path, so that stays true.
|
||||
|
||||
### Pattern inventory
|
||||
@@ -167,7 +167,7 @@ taxonomy here.
|
||||
|
||||
### The drift test, and why there is no regex-compile test
|
||||
|
||||
`crates/vfmt_server/tests/grammar.rs`, three tests:
|
||||
`crates/lucisv_server/tests/grammar.rs`, three tests:
|
||||
|
||||
1. `the_grammars_keywords_are_exactly_the_lexers` parses the JSON, strips the
|
||||
`\b(` … `)\b` around `repository.keywords.match`, and asserts the
|
||||
@@ -198,7 +198,7 @@ taxonomy here.
|
||||
|
||||
| package | version | why not std, why not hand-rolled |
|
||||
|---|---|---|
|
||||
| `vscode-languageclient` | `9.0.1` (exact, no `^`) | Microsoft's own client library, maintained alongside the protocol spec and used by essentially every language extension including ruff's. It is the exact analog of `lsp-server`/`lsp-types` on the Rust side, and the reasoning is the same one `docs/features/vfmt-server/README.md` records for those: the alternative is hand-writing the wire format. Requires VS Code `^1.82.0`, which is `package.json`'s `engines.vscode`. |
|
||||
| `vscode-languageclient` | `9.0.1` (exact, no `^`) | Microsoft's own client library, maintained alongside the protocol spec and used by essentially every language extension including ruff's. It is the exact analog of `lsp-server`/`lsp-types` on the Rust side, and the reasoning is the same one `docs/features/lucisv-server/README.md` records for those: the alternative is hand-writing the wire format. Requires VS Code `^1.82.0`, which is `package.json`'s `engines.vscode`. |
|
||||
|
||||
Transitive cost, measured on this machine (`npm ls --all`): **8 packages
|
||||
total** — `vscode-languageclient` plus `vscode-languageserver-protocol`,
|
||||
@@ -225,12 +225,12 @@ stdout, and asserts: the process exits 0, `initialize` returned capabilities,
|
||||
four named capabilities are present, diagnostics were pushed for the opened
|
||||
document, and `shutdown` was acknowledged without an error.
|
||||
|
||||
Three deliberate choices, all inherited from `crates/vfmt_server/tests/e2e.rs`:
|
||||
Three deliberate choices, all inherited from `crates/lucisv_server/tests/e2e.rs`:
|
||||
|
||||
- **The framing is hand-rolled.** A check that reused `vscode-jsonrpc` could
|
||||
not catch a framing bug, and could not run before `npm install`.
|
||||
- **The whole session is written before a byte is read.** The rationale is the
|
||||
one in `tests/e2e.rs`'s own header, reinforced by the vfmt-server QA log's
|
||||
one in `tests/e2e.rs`'s own header, reinforced by the lucisv-server QA log's
|
||||
hang investigation: interleaving reads and writes against a subprocess is how
|
||||
a smoke test becomes an intermittent hang. The session is under 4 KB, well
|
||||
inside a pipe buffer, and the server closes stdout on `exit`, so the read
|
||||
@@ -246,11 +246,11 @@ sequence, and is the thing to run when a user reports "nothing happens".
|
||||
|
||||
## Handshakes
|
||||
|
||||
**Consumed from `vfmt_server`** — and this is the whole interface, exactly as
|
||||
**Consumed from `lucisv_server`** — and this is the whole interface, exactly as
|
||||
that feature's README promised ("the editor packaging round will consume the
|
||||
binary's name and its stdio contract, nothing else"):
|
||||
|
||||
1. Binary name `vfmt-server`, resolved on `PATH` by default.
|
||||
1. Binary name `lucisv-server`, resolved on `PATH` by default.
|
||||
2. No command-line arguments, no required environment.
|
||||
3. LSP over stdin/stdout, `Content-Length` framing.
|
||||
4. `initialize` succeeds with neither `workspaceFolders` nor `rootUri`
|
||||
@@ -273,20 +273,20 @@ binary's name and its stdio contract, nothing else"):
|
||||
`tests/grammar.rs` pins the registration.
|
||||
|
||||
**Consumed from `vlog_parser`:** `KEYWORDS` — the grammar's keyword alternation
|
||||
is generated from it and `crates/vfmt_server/tests/grammar.rs` fails if the two
|
||||
is generated from it and `crates/lucisv_server/tests/grammar.rs` fails if the two
|
||||
diverge. Adding a keyword to `token.rs`'s `keywords!` macro is now also an edit
|
||||
to `editors/vscode/syntaxes/systemverilog.tmLanguage.json`; the test names the
|
||||
missing word.
|
||||
|
||||
**Promised to `vfmt_server`:** the spawn contract above. If the server ever
|
||||
**Promised to `lucisv_server`:** the spawn contract above. If the server ever
|
||||
grows a required flag, a subcommand, or a stdio mode switch, `extension.js` and
|
||||
`smoke.js` change in the same round.
|
||||
|
||||
**Requested of other modules** — none blocking, none done here:
|
||||
|
||||
1. **`crates/vfmt`: lift `config.rs` into a library** (already filed by
|
||||
`docs/features/vfmt-server/README.md`). Restated because it is now
|
||||
*user-visible*: formatting from an editor ignores `vfmt.toml`, so a project
|
||||
1. **`crates/lucisv`: lift `config.rs` into a library** (already filed by
|
||||
`docs/features/lucisv-server/README.md`). Restated because it is now
|
||||
*user-visible*: formatting from an editor ignores `lucisv.toml`, so a project
|
||||
that sets `line-length = 120` gets 100-column formatting on save and
|
||||
120-column formatting from the CLI — the two disagreeing on the same file.
|
||||
Both editor guides state this caveat out loud rather than hide it, but the
|
||||
@@ -300,7 +300,7 @@ grows a required flag, a subcommand, or a stdio mode switch, `extension.js` and
|
||||
## Status / TODO
|
||||
|
||||
- [x] `editors/vscode/package.json` — language declarations, activation,
|
||||
`vfmt.serverPath`, pinned `vscode-languageclient`.
|
||||
`lucisv.serverPath`, pinned `vscode-languageclient`.
|
||||
- [x] `editors/vscode/extension.js` — 41 lines, plain JS, no build step.
|
||||
- [x] `editors/vscode/smoke.js` — zero-dependency spawn-contract check.
|
||||
- [x] `editors/vscode/README.md` — build, smoke, package, install,
|
||||
@@ -315,7 +315,7 @@ grows a required flag, a subcommand, or a stdio mode switch, `extension.js` and
|
||||
- [x] `npm install` and `vsce package` run green on this machine.
|
||||
- [x] **0.4.1** — `editors/vscode/syntaxes/systemverilog.tmLanguage.json`,
|
||||
registered for both language ids in `contributes.grammars`.
|
||||
- [x] **0.4.1** — `crates/vfmt_server/tests/grammar.rs`: keyword drift,
|
||||
- [x] **0.4.1** — `crates/lucisv_server/tests/grammar.rs`: keyword drift,
|
||||
pattern validity, registration.
|
||||
- [x] **0.4.1** — fence audit of every markdown surface the server emits;
|
||||
the three code-carrying ones pin their fence tag in unit tests.
|
||||
@@ -338,10 +338,10 @@ grows a required flag, a subcommand, or a stdio mode switch, `extension.js` and
|
||||
assumptions they rest on were verified independently; see the Work log.
|
||||
- [ ] **Not done, out of scope:** CI packaging, Marketplace publishing, a
|
||||
version handshake between extension and server, bundling.
|
||||
- [ ] **Follow-up, blocked on a concurrent round:** a `crates/vfmt_core` lift
|
||||
(config + walk out of the `vfmt` binary) landed in the tree *while this
|
||||
round was being written*, and `crates/vfmt_server` already depends on it.
|
||||
If that closes the "the server does not read `vfmt.toml`" gap, the caveat
|
||||
- [ ] **Follow-up, blocked on a concurrent round:** a `crates/lucisv_core` lift
|
||||
(config + walk out of the `lucisv` binary) landed in the tree *while this
|
||||
round was being written*, and `crates/lucisv_server` already depends on it.
|
||||
If that closes the "the server does not read `lucisv.toml`" gap, the caveat
|
||||
must be deleted from **three** places: `README.md`'s Editor setup
|
||||
section, `editors/vscode/README.md` (Settings), and
|
||||
`editors/nvim/README.md` ("What you get"). Left in place here because it
|
||||
@@ -418,7 +418,7 @@ grows a required flag, a subcommand, or a stdio mode switch, `extension.js` and
|
||||
`README.md` and `editors/vscode/README.md`, and the eleven version strings in
|
||||
`tools/RELEASING.md`; `CHANGELOG.md` gains a `0.4.1 — 2026-08-24` section.
|
||||
`editors/vscode/README.md:159`'s "since 0.4.0" is history and was left alone.
|
||||
`target/debug/vfmt --version` → `vfmt 0.4.1`.
|
||||
`target/debug/lucisv --version` → `lucisv 0.4.1`.
|
||||
- **`RELEASING.md` grew one line**, because a `.vscodeignore` that swallowed
|
||||
`syntaxes/` would ship an extension whose hovers are grey again with nothing
|
||||
failing: the packaging step now checks the grammar is *in* the `.vsix`, next
|
||||
@@ -432,14 +432,14 @@ grows a required flag, a subcommand, or a stdio mode switch, `extension.js` and
|
||||
|---|---|
|
||||
| `cargo fmt --all --check` | clean |
|
||||
| `cargo clippy --all-targets` | clean, no new warnings, no `#[allow]` added |
|
||||
| `cargo test --workspace` | **34 test binaries, all green** (`vfmt_server`: 308 unit + 17 e2e + **3 new** grammar) |
|
||||
| `cargo test --workspace` | **34 test binaries, all green** (`lucisv_server`: 308 unit + 17 e2e + **3 new** grammar) |
|
||||
| Negative control: keyword removed from the alternation | drift test fails, names `genvar` |
|
||||
| Negative control: `"//.*"` → `"//(.*"` | validity test fails, names the pattern and the file path |
|
||||
| `node --check extension.js` / `smoke.js` | both parse |
|
||||
| `package.json`, `package-lock.json`, the grammar as JSON | all three load |
|
||||
| `npx @vscode/vsce ls` | accepts the manifest — 324 files; `syntaxes/systemverilog.tmLanguage.json` listed, `smoke.js` still excluded |
|
||||
| `node smoke.js ../../target/debug/vfmt-server` | `smoke: OK`, 8 messages, exit 0 |
|
||||
| `target/debug/vfmt --version` | `vfmt 0.4.1` |
|
||||
| `node smoke.js ../../target/debug/lucisv-server` | `smoke: OK`, 8 messages, exit 0 |
|
||||
| `target/debug/lucisv --version` | `lucisv 0.4.1` |
|
||||
| Grammar patterns under Python `re` on a sample buffer | 13/13 compile; tokenization as listed above |
|
||||
|
||||
**Not run, and why:** no tokenization through `vscode-textmate` (not in
|
||||
@@ -453,15 +453,15 @@ file **and** a `.v` file, and the Developer Tools console for the absence of an
|
||||
### 2026-08-19 — dev agent
|
||||
|
||||
- Read `CLAUDE.md`, `README.md`, TODO.md §6 and
|
||||
`docs/features/vfmt-server/README.md` (all of it, including the QA log) before
|
||||
`docs/features/lucisv-server/README.md` (all of it, including the QA log) before
|
||||
writing anything. Two things from that reading changed the work: the server's
|
||||
**staleness model** and its **`vfmt.toml` blindness** are user-visible
|
||||
**staleness model** and its **`lucisv.toml` blindness** are user-visible
|
||||
behaviors, so both editor guides state them plainly instead of letting a user
|
||||
discover them as bugs; and the QA log's hang investigation settled `smoke.js`'s
|
||||
I/O shape before I wrote a line of it.
|
||||
- **Did not touch `crates/`.** The one thing this feature wanted from another
|
||||
module — config discovery — was already an open Handshake from the
|
||||
vfmt-server round, so it is restated here with its now-visible user
|
||||
lucisv-server round, so it is restated here with its now-visible user
|
||||
consequence rather than fixed.
|
||||
- **`vscode-languageclient` was taken, and the reasoning is written down.** The
|
||||
brief floated a zero-dependency client; VS Code has no built-in generic LSP
|
||||
@@ -502,11 +502,11 @@ file **and** a `.v` file, and the Developer Tools console for the absence of an
|
||||
someone's editor is a change to their environment, not a validation step I
|
||||
was asked for. The `.vsix` was built, inspected and deleted; the install
|
||||
command is documented, unrun.
|
||||
- **Concurrency note.** Midway through this round another agent's `vfmt_core`
|
||||
round landed in the same tree — `crates/vfmt/src/{config,walk}.rs` moved to a
|
||||
new `crates/vfmt_core`, and `crates/vfmt_server/Cargo.toml` gained a
|
||||
dependency on it. That is exactly the Handshake `docs/features/vfmt-server`
|
||||
filed and this feature restated, so the `vfmt.toml` caveat in the three
|
||||
- **Concurrency note.** Midway through this round another agent's `lucisv_core`
|
||||
round landed in the same tree — `crates/lucisv/src/{config,walk}.rs` moved to a
|
||||
new `crates/lucisv_core`, and `crates/lucisv_server/Cargo.toml` gained a
|
||||
dependency on it. That is exactly the Handshake `docs/features/lucisv-server`
|
||||
filed and this feature restated, so the `lucisv.toml` caveat in the three
|
||||
editor docs is likely to become false very soon. I left it as written: it was
|
||||
true of the binary I built and smoke-tested, and the follow-up is recorded in
|
||||
Status/TODO with the exact three places to edit. Nothing under `crates/` was
|
||||
@@ -518,8 +518,8 @@ file **and** a `.v` file, and the Developer Tools console for the absence of an
|
||||
|
||||
| Check | Result |
|
||||
|---|---|
|
||||
| `cargo build --release -p vfmt_server` | exit 0, `target/release/vfmt-server` |
|
||||
| `node smoke.js target/release/vfmt-server` | **`smoke: OK` — 3 messages, exit 0** |
|
||||
| `cargo build --release -p lucisv_server` | exit 0, `target/release/lucisv-server` |
|
||||
| `node smoke.js target/release/lucisv-server` | **`smoke: OK` — 3 messages, exit 0** |
|
||||
| `smoke.js` negative control: missing binary | FAIL, exit 1 (as designed) |
|
||||
| `smoke.js` negative control: `/bin/cat` | FAIL on capabilities, exit 1 (as designed) |
|
||||
| `package.json` parses as JSON | yes (`JSON.parse`) |
|
||||
@@ -538,7 +538,7 @@ file **and** a `.v` file, and the Developer Tools console for the absence of an
|
||||
binary.
|
||||
- **Every Vim/Neovim snippet.** No `nvim` on this machine (`command -v nvim`:
|
||||
nothing; `vim` 9.1 exists, without `vim-lsp`). Expected behavior on a machine
|
||||
that has it: `:checkhealth vim.lsp` shows one client `vfmt` attached to the
|
||||
that has it: `:checkhealth vim.lsp` shows one client `lucisv` attached to the
|
||||
buffer with `documentFormattingProvider`, `hoverProvider`,
|
||||
`definitionProvider`, `referencesProvider`, `documentSymbolProvider`,
|
||||
`workspaceSymbolProvider` and `semanticTokensProvider` set and
|
||||
@@ -553,7 +553,7 @@ file **and** a `.v` file, and the Developer Tools console for the absence of an
|
||||
|
||||
Owner report: `#200 $finish;` (clkdivider_tb.v:24) showed an RGB colour
|
||||
swatch. Diagnosis, verified on the owner's machine: no installed extension
|
||||
provides document colours, `vfmt-server` advertises no colour capability,
|
||||
provides document colours, `lucisv-server` advertises no colour capability,
|
||||
and the owner's settings carry no override — the swatch is VS Code's
|
||||
built-in default colour provider (`editor.defaultColorDecorators`,
|
||||
default `auto` since 1.78, owner runs 1.134), which pattern-matches
|
||||
@@ -583,7 +583,7 @@ entry is the only lasting write.
|
||||
| `cargo fmt --all --check` | clean |
|
||||
| `cargo clippy --all-targets` | clean, 0 warnings |
|
||||
| `cargo test --workspace` | all green |
|
||||
| `cargo test -p vfmt_server` | **308 unit + 17 e2e + 3 grammar**, all passing — matches the claim exactly |
|
||||
| `cargo test -p lucisv_server` | **308 unit + 17 e2e + 3 grammar**, all passing — matches the claim exactly |
|
||||
| `node --check extension.js` / `smoke.js` | both parse |
|
||||
| `npx @vscode/vsce ls` | **324 files**, `syntaxes/systemverilog.tmLanguage.json` listed (line 7), `smoke.js` absent — matches the claimed count exactly |
|
||||
| `cargo metadata` | all 8 workspace crates report `0.4.1` |
|
||||
@@ -720,23 +720,23 @@ session checked.
|
||||
|
||||
**Build tested:** `HEAD` at `c8b936a7` plus the working tree exactly as it
|
||||
stood (20 changed/untracked paths, `git status --short`), rebuilt twice
|
||||
(`cargo build --release -p vfmt_server`, both times "Finished ... in 0.02s" —
|
||||
(`cargo build --release -p lucisv_server`, both times "Finished ... in 0.02s" —
|
||||
already up to date, so one stable binary throughout this pass:
|
||||
`target/release/vfmt-server`, 1,996,608 bytes, md5 `ed84f61d8c414e34d840571`
|
||||
`target/release/lucisv-server`, 1,996,608 bytes, md5 `ed84f61d8c414e34d840571`
|
||||
`f8696191e`, mtime 09:26). This build **includes the concurrent
|
||||
`vfmt_core` config/walk lift** (`crates/vfmt_core/src/{config,walk}.rs`,
|
||||
`crates/vfmt_server` depends on it) — see the Finding below. Did not touch
|
||||
`lucisv_core` config/walk lift** (`crates/lucisv_core/src/{config,walk}.rs`,
|
||||
`crates/lucisv_server` depends on it) — see the Finding below. Did not touch
|
||||
anything under `crates/`; rebuilt only to confirm the binary was settled
|
||||
before each spawn-based check, per the lead's note that the vfmt_core-lift
|
||||
before each spawn-based check, per the lead's note that the lucisv_core-lift
|
||||
agent was doing its own final gate runs concurrently.
|
||||
|
||||
**Validation matrix — all green, re-run to completion:**
|
||||
|
||||
| Check | Result |
|
||||
|---|---|
|
||||
| `cargo build --release -p vfmt_server` (x2, bracketing the session) | exit 0 both times, binary unchanged between runs |
|
||||
| `node smoke.js ../../target/release/vfmt-server` | `smoke: OK` — 3 messages, exit 0 (re-run at session end too) |
|
||||
| Negative control: `node smoke.js /nonexistent/vfmt-server` | `FAIL — could not spawn ... ENOENT`, exit 1 |
|
||||
| `cargo build --release -p lucisv_server` (x2, bracketing the session) | exit 0 both times, binary unchanged between runs |
|
||||
| `node smoke.js ../../target/release/lucisv-server` | `smoke: OK` — 3 messages, exit 0 (re-run at session end too) |
|
||||
| Negative control: `node smoke.js /nonexistent/lucisv-server` | `FAIL — could not spawn ... ENOENT`, exit 1 |
|
||||
| Negative control: `node smoke.js /bin/cat` | `FAIL — initialize response carries no capabilities`, exit 1 |
|
||||
| `node --check extension.js` / `smoke.js` | both parse clean |
|
||||
| `python3 -c json.load` on `package.json` | valid JSON |
|
||||
@@ -746,25 +746,25 @@ agent was doing its own final gate runs concurrently.
|
||||
| `.vsix` contents (`unzip -l`) | 320 files, 462.22 KB (dev's numbers exact); `smoke.js`, `.gitignore`, `.vscodeignore` all absent, `extension.js`/`package.json`/`readme.md`/`node_modules/*` present |
|
||||
|
||||
**Finding 1 (confirmed, significant, not blocking function) — the
|
||||
`vfmt.toml`-blindness caveat is now false against the tested binary.**
|
||||
The `vfmt_core` lift landed in the working tree (uncommitted) and
|
||||
`crates/vfmt_server` already consumes it: `cargo test -p vfmt_server --release
|
||||
`lucisv.toml`-blindness caveat is now false against the tested binary.**
|
||||
The `lucisv_core` lift landed in the working tree (uncommitted) and
|
||||
`crates/lucisv_server` already consumes it: `cargo test -p lucisv_server --release
|
||||
format::` passes `a_config_file_beats_the_editors_tab_size` and
|
||||
`a_vfmt_toml_governs_the_buffer_it_sits_above`, both asserting `vfmt.toml`
|
||||
`a_lucisv_toml_governs_the_buffer_it_sits_above`, both asserting `lucisv.toml`
|
||||
wins over the client's tab size. I additionally drove a live LSP round-trip
|
||||
against the built binary (scratch dir with `vfmt.toml` containing
|
||||
against the built binary (scratch dir with `lucisv.toml` containing
|
||||
`indent = 4`, `.git` marker, `rootUri` pointing at it) and requested
|
||||
`textDocument/formatting` with `tabSize: 2`: the response's `newText` used
|
||||
4-space indent, i.e. the config file won over the client, over the wire, on
|
||||
this exact binary. This means the caveat "the server does **not** read
|
||||
`vfmt.toml` yet" is no longer true of the binary these docs describe. It
|
||||
`lucisv.toml` yet" is no longer true of the binary these docs describe. It
|
||||
appears verbatim in all three places `docs/features/editor-packaging/README.md`'s
|
||||
own Status/TODO already flagged: top-level `README.md` (Editor setup
|
||||
section), `editors/vscode/README.md` (Settings section), and
|
||||
`editors/nvim/README.md` ("What you get, and what you don't" section) — plus
|
||||
it's echoed in this feature's own Assumptions/Handshakes/Status-TODO/Work-log
|
||||
prose. Per the lead's instruction this cleanup belongs to the lead / the
|
||||
vfmt-server docs owner, not to this QA pass, so I have not edited any of
|
||||
lucisv-server docs owner, not to this QA pass, so I have not edited any of
|
||||
those five locations — reporting precisely instead, as asked. Locations,
|
||||
for the fix: `README.md` (top-level, "Editor setup"), `editors/vscode/README.md`
|
||||
(Settings), `editors/nvim/README.md` ("What you get"), plus (not previously
|
||||
@@ -804,7 +804,7 @@ packaging regression if they hit this same scratchpad-path issue later.
|
||||
`["onLanguage:verilog", "onLanguage:systemverilog"]`, matching the
|
||||
language ids character-for-character (no typo — this was checked
|
||||
specifically, since a mismatch here is the "silently never activates"
|
||||
failure mode); one setting `vfmt.serverPath` default `"vfmt-server"`;
|
||||
failure mode); one setting `lucisv.serverPath` default `"lucisv-server"`;
|
||||
`vscode-languageclient` pinned `"9.0.1"` (no `^`), confirmed both in
|
||||
`package.json` and resolved exactly in `package-lock.json`
|
||||
(`lockfileVersion: 3`) and in a fresh `npm ci`; `engines.vscode` is
|
||||
@@ -813,13 +813,13 @@ packaging regression if they hit this same scratchpad-path issue later.
|
||||
`smoke.js` (plus `.vscode/**`, `.gitignore`) — confirmed absent from the
|
||||
built `.vsix`.
|
||||
2. **`extension.js`** — read every line, 41 total (`wc -l` exact). Spawns
|
||||
`serverPath` read from `vfmt.getConfiguration('vfmt').get('serverPath')`
|
||||
with fallback `'vfmt-server'`; `serverOptions = {command, args: [],
|
||||
`serverPath` read from `lucisv.getConfiguration('lucisv').get('serverPath')`
|
||||
with fallback `'lucisv-server'`; `serverOptions = {command, args: [],
|
||||
transport: TransportKind.stdio}` matches `vscode-languageclient@9.0.1`'s
|
||||
`Executable` interface (`lib/node/main.d.ts`: `command`, `transport?`,
|
||||
`args?`, `options?`) exactly; `documentSelector: [{language: 'verilog'},
|
||||
{language: 'systemverilog'}]` matches the contributed language ids
|
||||
exactly; `new LanguageClient('vfmt', 'vfmt', serverOptions,
|
||||
exactly; `new LanguageClient('lucisv', 'lucisv', serverOptions,
|
||||
clientOptions)` matches the 4-arg `(id, name, serverOptions,
|
||||
clientOptions, forceDebug?)` overload in `main.d.ts`; `deactivate()`
|
||||
returns `client.stop()` so VS Code awaits shutdown. No other features
|
||||
@@ -828,11 +828,11 @@ packaging regression if they hit this same scratchpad-path issue later.
|
||||
yields no pid, `handleChildProcessStartError` rejects, the client's own
|
||||
`createConnection` catch calls `this.error(..., 'force')`, which *always*
|
||||
shows a `window.showErrorMessage` popup (with a "Go to output" button)
|
||||
and appends to the `vfmt` output channel regardless of
|
||||
and appends to the `lucisv` output channel regardless of
|
||||
`revealOutputChannelOn` — `extension.js` itself doesn't need a `.catch()`
|
||||
on `client.start()` because the library never lets a spawn failure go
|
||||
unsurfaced. This matches the README's troubleshooting text ("See what the
|
||||
server is saying... View → Output → the vfmt channel"); the README could
|
||||
server is saying... View → Output → the lucisv channel"); the README could
|
||||
additionally mention the error popup explicitly but doesn't claim silence,
|
||||
so nothing here is inaccurate, just slightly less complete than it could be.
|
||||
3. **`smoke.js`** — zero-dep (`require('child_process')` only), 93 lines
|
||||
@@ -841,7 +841,7 @@ packaging regression if they hit this same scratchpad-path issue later.
|
||||
4. **`editors/nvim/README.md`** — all four client variants present
|
||||
(`vim.lsp.config` 0.11+, `nvim-lspconfig` 0.9/0.10, Vim 9 `vim-lsp`
|
||||
one-liner, coc.nvim `coc-settings.json`); root markers
|
||||
`vfmt.toml`/`.vfmt.toml`/`.git` consistent across all four; the
|
||||
`lucisv.toml`/`.lucisv.toml`/`.git` consistent across all four; the
|
||||
`vim.filetype.add` line's load-bearing claim was checked directly against
|
||||
`/usr/share/vim/vim91/filetype.vim` on this machine (vim 9.1, matches
|
||||
what the dev cited): `*.sv,*.svh` map straight to `systemverilog`
|
||||
@@ -866,7 +866,7 @@ packaging regression if they hit this same scratchpad-path issue later.
|
||||
required feature-README sections (Goal, Assumptions, Handshakes,
|
||||
Status/TODO, Work log, QA log, Review) are present in this file.
|
||||
|
||||
**Overall: PASS**, with Finding 1 (stale `vfmt.toml` caveat, now confirmed
|
||||
**Overall: PASS**, with Finding 1 (stale `lucisv.toml` caveat, now confirmed
|
||||
false, not this feature's docs to fix) as the one substantive issue,
|
||||
recorded for the lead. No language-id/activation mismatch, no smoke
|
||||
failure against the current binary — the two conditions the brief called
|
||||
@@ -900,10 +900,10 @@ Points reviewed and accepted:
|
||||
line is load-bearing — is exactly the kind of verified-against-
|
||||
runtime fact these READMEs exist to hold; QA confirmed it
|
||||
byte-for-byte against this machine's filetype.vim.
|
||||
4. QA's Finding 1 (the "server doesn't read vfmt.toml" caveat went
|
||||
stale mid-round when vfmt-core-lift landed under it) was the lead's
|
||||
4. QA's Finding 1 (the "server doesn't read lucisv.toml" caveat went
|
||||
stale mid-round when lucisv-core-lift landed under it) was the lead's
|
||||
to fix and is now fixed in all flagged locations, including the
|
||||
vfmt-server README's superseded Assumptions. Finding 2 (vsce's path
|
||||
lucisv-server README's superseded Assumptions. Finding 2 (vsce's path
|
||||
resolution breaking inside the session scratchpad) is an
|
||||
environment artifact, correctly diagnosed by reproducing it on an
|
||||
unrelated minimal extension.
|
||||
|
||||
Reference in new issue
Block a user