Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both
package-lock.json spots); notes in CHANGELOG.md (## 0.63.0) and
editors/vscode/CHANGELOG.md. TODO §66.1, §66.2.
Gates: the local tools/gates.sh run was not green — vlog_semantic and
vlog_refactor were killed on the 300 s wall clock (a stuck syspolicyd made
each new test binary take up to 40 s to launch); every test that ran
passed, and both suites passed in full when re-run piecewise on d8119aa.
By the owner's call the release relies on the Gitea CI run.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
149 KiB
Changelog
All notable changes to lucisv are recorded here. Versions follow
semantic versioning; until 1.0 the CLI's exit codes
(see README.md) are the only frozen contract.
0.63.0 — 2026-11-09
Format Selection that fits where it stands; comment toggling in VS Code
(docs/features/selection-formatting; TODO §66.)
- Format Selection lays out only the block you selected. Selecting an
alwaysblock, acasestatement or a few statements used to re-lay the whole enclosing module-level item — at the formatter's own depth, so a block in a 4-space or tab-indented file moved, and the blank lines at the selection's edges were eaten. The new engine (vlog_formatter::format_selection) finds the smallest run of sibling items or statements the selected lines cover, lays out that run alone and puts it back starting at the leading whitespace it already has (tabs kept). The parent is not touched.textDocument/rangeFormatting,rangesFormattingand the on-type;all run on it. - A parse error elsewhere in the file no longer refuses the request. The selection is formatted when the error lies outside it, and refused only when it lies inside.
- How a selection picks its block. Touching a block's first line takes
the whole block; a selection that starts inside it takes only the
statements it covers, even when it reaches the closing
end; theendline alone takes the block it closes. A selection of whole module-level items behaves as before. - Still verified. Every result passes the whole-file equivalence check and a convergence replay, or the buffer is left unchanged; the verifier itself is unchanged. CRLF files keep every line ending.
- The on-type
;now tidies its statement in a buffer whose error is elsewhere, and no longer adds a final newline to a file without one. - The reply is still one whole-document edit; the CLI's
--linesis unchanged (whole module-level items). - VS Code:
Ctrl+/toggles comments. The extension now declares the language's//and/* */comments, bracket pairs and auto-closing pairs for Verilog and SystemVerilog, so Toggle Line Comment and Toggle Block Comment work on one line or a selection.
0.62.0 — 2026-10-19
Paths rooted at a top-level module; a dependable release gate
(docs/features/top-rooted-paths, docs/features/release-gates,
docs/features/references-fanout-pd-main.)
- A hierarchical path that starts at a top-level module now resolves.
tb.dut.u_core.sigwritten in a file that does not declaretbused to stop attb; now every segment is a reference —find_referencesand LSP references list it, and a rename ofdut,u_core,sigor a generate label on the way rewrites the path.$root.tb…works; a localtbshadows. The LSP's rename also reads the files of the path's root and the modules it passes through. Rooted only when lucisv can prove the head is a top-level module: not when the name could come from a wildcard import (includingimport uvm_pkg::*withuvm_pkgoutside the project), not inside a class, not beside a macro that stands where a declaration could, and not when the name is also a package or several modules share it — those paths are left unchanged and warned about exactly as before. The index cache format moves to 22, so a 0.61.0 cache is rebuilt once. - An unresolved path through the renamed name is warned about once (it was sometimes named twice).
- Find All References across blocks is relative to the index scope, by
design. On a default
folderscope a module's references and rename reach only the folders the index covers; thelucisv.index.scopesetting now says that a rename of a module instantiated outside the scope leaves those instantiations unchanged (useworkspace, or open the file first). tools/gates.shis the release gate: fmt, clippy, the test build, each crate's suites, the doc-tests, the corpus gate and the extension tests, each a separately guarded step with its own log and a summary; a step the guard kills is retried once and reported asKILLED → retried.tools/guard.shfixes: its memory limit now sees every process in the tree (a pid-list bug hid everything three or more levels down, so builds and test-spawned servers were never capped), and a closed stdin no longer makes the command silently not run.
0.61.0 — 2026-10-14
Call hierarchy from anywhere, functions and tasks as nodes; full-line references in VS Code
(docs/features/call-hierarchy-everywhere, docs/features/vscode-references-view.)
textDocument/prepareCallHierarchyanswers from any position in a body. It answered only on a module name, so Show Call Hierarchy was empty almost everywhere. Now: an instance name prepares the instantiated module; a function or task's declaration, call or end label prepares aFunction/Methoditem; a position inside a function or task body prepares that function or task; one inside a module, interface or program prepares the enclosing module. Module items answer exactly as before.- Functions and tasks are call-hierarchy nodes.
incomingCallslists every call site, grouped by the enclosing function or task (else the module, interface, program, package or class), over the same filesreferencesreads;outgoingCallslists the resolved callees, skipping system tasks and unresolved names. A function's own name read inside its body (clog2 = clog2 + 1) is its result variable, not recursion. Calls throughthis.,super., a typed handle and animportresolve; virtual dispatch and calls inside macro bodies are not modelled. textDocument/prepareTypeHierarchyanswers the enclosing class anywhere inside a class body, and the base class onsuper.- VS Code: Find All References with whole lines. VS Code's references
pane starts each preview a few characters before the match. The extension's
new References view (lucisv sidebar) lists every reference's full line
with the identifier highlighted, grouped by file, the declaration marked;
Shift+Alt+F12opens it in Verilog/SystemVerilog editors whilelucisv.references.fullLineViewis on (the default). Closed files are read without opening them on the server.
Review fixes and housekeeping
- The closing-label fallback of an unnamed block no longer attaches a
mismatched
end : a(or anendfunction : gbeside blockg) to a same-named block. duplicate-declarationreports siblingforgenerate blocks of one label, and a procedural block beside a generate block in either order.- Rename warnings: a comment between
.and the name is still a path; a file that fails to lex is warned about instead of skipped. - Refactoring messages name a file by its path wherever another file shares
its base name (the
.*expansion, ANSI conversion, inline and extract too). lucisv_server's workspace state is split into seven modules (a pure move);tools/release.shrefuses to build when the extension'spackage.json/package-lock.jsonversions disagree with the binaries.
0.60.0 — 2026-10-08
Rename and references through a generate block label
TODO §65.1, topo §2.9 row 43 (MCP-14). (docs/features/generate-label-rename.)
renameof a block label rewrites every path through it. Renamingg_laneinfor (…) begin : g_laneused to rewrite the label alone, leavingg_lane[0].lane_q(andu_x.g_lane[1].sigin another file) naming a block that no longer existed, with no warning. The label, its closingend : g_lane, and every path segment naming the block — bare, indexed (g[0].x,g[i].x), nested (g_a.g_b[2].x), behind an instance path from another file — are now one reference set, renamed all or nothing; a spelling inside macro text or a string is a warning. A name declared inside a block is likewise renamed through such a path. Named procedural blocks:begin : lbl,end : lblanddisable lbl;(and thelbl: begin … end : lblform) are one set.find_references(LSPtextDocument/references,lucisv-mcp find refs) lists the declaration, the closing label and every segment, same file and cross-file, with the declaring file open or closed.lucisv-mcp renameno longer refuses ablock-kind declaration.- Resolution changes every consumer sees: a
forgenerate block's label is a name of the enclosing module (its genvar is not);generate … endgenerateis not a scope;blk.xandarr[0].field(a packed struct array) resolve their tails; an unnamedgenblk1still names nothing. The index cache format moves to 21, so a 0.59.0 cache is rebuilt once. - A rename says so when a path it cannot resolve spells the name: a
hierarchical path segment in any file of the rename's set that resolved to
no declaration (
tb.dut.gen_x[0].q, rooted at a top module) is left unchanged and warned about with its lines, for every kind of declaration; and renaming a member one arm of a generateif/casedeclares warns about the same-named member of the arm sharing its label. duplicate-declarationnow also reports a block label beside a net, variable, parameter or instance of the same name, and such a label is no longer counted as a read of the net.- Rename and port warnings name a file by its path whenever another file of
the set shares its base name (two
pwrmgr_if.svare two findable lines, root-relative inlucisv-mcp), and a line a path warning names is not repeated underunresolved:. Same-named members are warned about through every enclosing same-label generate arm (g.h.x), and an escaped name's unresolved paths are found too. - Rename warnings and mentions are about the renamed declaration. For a
member of a module or interface (a net, variable, port, parameter, block,
…), a bare spelling of its name in a macro argument, a
`definebody, an unstructured assertion, a comment or a string is reported only where it can mean it: in the declaration's home set — the declaring file, everything it`includes, whatever includes it (transitively), and the files the rename edits. In code, a spelling in the declaring file is reported after a scope lookup finds the declaration there (an instantiating module's own same-named signal is not); one in an included fragment always; a`definebody when the macro is invoked from the home set (through other macros too —ASSERT_DEFAULT_CLK'sclk_i); a macro argument inside abindinto the declaring module; and a bare use in the plain code of an included fragment (prim_util_memload.svh'smem) is named as a use the rename could not edit. Reported wherever they are written: a dotted spelling (.state_q, a possible hierarchical path); a bare macro argument the macro carries to the declaration — after a.(`CONN(state_q)building.state_q(state_q),`FORCE(state_q)buildingforce u_m.state_q), into abindinto the declaring module, or into a macro lucisv has no definition of; and the body of a macro that expands to such abind. Not reported: a body whose spellings are only its own parameter named like the declaration (unless the body also spells the name after a., or a default argument spells it), and a backtick inside a string. Any doubt means no scoping: a module, interface, package or package member, a declaration outside a module, or one whose home set holds an include lucisv cannot resolve (a macro-built name, a file outside the project such asuvm_macros.svh) is reported everywhere as before. On opentitan thestate_qrename's answer went from 274 lines (61 kB, 230 macro warnings, 229 about other modules) to about 72 lines (12 kB),hmac_core.StIdle's from 48 lines to 3. duplicate-declarationalso reports a block label beside a port, genvar, typedef, function or task, and two named procedural blocks of one label in one scope.lucisv-mcp renamewith many warnings is fast again: rooting the warning paths was quadratic per warning (astate_qrename on opentitan: 125 s → 3.3 s). Naming the files in warnings no longer scans the whole set once per file either: the engine's part of that rename went from 2.9 s to 2.2 s.- A use in a file that includes the declaring file (or that it includes) is no longer reported as "left unchanged" when the rename did rewrite it — renaming a module whose instantiation sits in a file included beside it said so wrongly.
0.59.0 — 2026-09-29
MCP read-only mode
PLAN §11, the owner's request of 2026-09-29: one binary, two modes.
(docs/features/mcp-read-only.)
lucisv-mcp --read-onlyoffers exactly the five read tools —hierarchy,find,outline,read,check, in that order, with the same descriptions and schemas as full mode. The model-visible catalogue is 1 797 bytes (budget ≤ 1 800) and the instructions 297 bytes (≤ 300), both pinned bytests/read_only.rs.- The mode filters the tool registry:
tools/callofrename,port,edit_itemorformatis the unknown-tool error (-32602,unknown tool: rename (the server runs --read-only)); no edit handler is reachable. Resources answer as in full mode. - No write inside a root, whatever is called: a test snapshots every
path, size and mtime (directories too) of a fixture copy, calls every
full-catalogue tool name (the four edits with valid edit arguments, which
a control test shows do write in full mode) and every resource, and finds
the snapshot unchanged after the server exits. The server's own index
store under
--index-cacheis still written (outside the roots unless--index-cachenames a directory inside one). - Full mode is byte-identical to 0.58.0 on the wire (
initialize,tools/list); only the usage line gains[--read-only]. - Extension: setting
lucisv.mcp.mode("full"default,"read-only") — the definition gains--read-onlyand the label becomeslucisv read-only (<folder>); a change of the setting re-announces the servers. lucisv: Copy MCP server config follows it (server keylucisv-ro, args ending--read-only, the message names the mode). editors/vscode/mcp_smoke.js <binary> --read-onlysmokes the mode (five tools, onehierarchy,renamerefused, files untouched);tools/release.shruns both smokes on the host binary and on the one embedded in the package.hierarchycaps at 300 instances, 100 withpeek;peeklines no longer count toward the cap (census round 5:prim_fifo_syncup with peek showed 20 of 77 instantiations). Withoutpeekthe answer is unchanged.
0.58.0 — 2026-09-24
The lean MCP catalogue: nine tools, short answers, trusted writes
The census (mcp_analysis.md) found the server right on every run and
dearer than plain file reads on every small task: a 5 400-token catalogue
read each session, answers carrying more than the question, and agents
dry-running what they were told to trust. PLAN §10 is the owner's ruling:
accuracy over breadth. (docs/features/mcp-lean-catalogue.)
- Nine tools, in this order:
hierarchy,find,outline,read,check,rename,port,edit_item,format. The model-visible catalogue (name, description, schema of every tool) is 3 440 bytes, was 17.9 kB; theinitializeinstructions are 398 bytes. Both budgets (≤ 3 500 and ≤ 400) and the names and order are pinned bytests/wire.rs. Notitle, nostructuredContent(a result is its text), no per-argument descriptions; the schemas aretype(andenum) only. hierarchy— withoutroot:N files, M modules, K topand each top asname file:line; withroot: the instance tree (depth1–20, default 1), every instance at its instantiation site;up: every instantiation, all levels todepth;peek: each statement's source. Opentitan'stop_earlgreynames 0.57.0's instance set, pinned.find— every declaration of a name (orunit.name), macros included, askind name file:line;refsadds each declaration's uses one file per line (file:120,133) and the unresolved mentions.outline(fileorunit),read(one item; design-wide withoutfile),check(file:line:col severity message [rule], errors first,okwhen clean — the 0.57.0diagnosticsline set).rename(by name;fileandname@LINEpick a declaration),port(addafterafter, orremove, in every instantiation),edit_item(replace,insert_before,insert_after,delete— the M4 verifier unchanged;deletehas noforceany more),format(a path, directory or glob;fixapplies the safe lint fixes first; a file the formatter refuses is named, the rest written).- Census round 4 (
mcp_analysis.md): on the same four OpenTitan tasks the lean server answered every run correctly, at parity with plain file tools on the whole-design questions (task a −1 %, task d −0.4 % over two runs) and +9…+10 % on the two small edits (was +15…+25 % in round 1). - Gone from the wire:
dry_run,limit,offset,in,template,overrides,force, and the toolsproject_overview,list_units,unit_interface,read_item,search_symbols,defines,definition,references,diagnostics,fix_lint,expand_wildcard,convert_ports,organize_imports,inline_module,propagate_ports,remove_port,add_port,extract_module,replace_item,insert_item,delete_item,instantiate(the engines stay in the CLI and the language server). Answers are capped (300 lines;check200) with one… and N moreline.
0.57.0 — 2026-09-23
The MCP block complete: structural edits, the server in the extension, cache reuse, and three census rounds
lucisv-mcpships inside every platform package and VS Code's agent mode finds it with no configuration: the extension registers one server per workspace folder throughmcpServerDefinitionProviders(VS Code 1.101+; older VS Code keeps working without it), passes it the folder as root and the extension's storage as the index-cache directory, and the command lucisv: Copy MCP server config puts the snippet for Claude Code, Cursor or a.vscode/mcp.jsonon the clipboard. Settingslucisv.mcp.enabledandlucisv.mcp.path. The Agents guide on the docs site lists every tool. (docs/features/mcp-packaging.)- Structural edits — the token saver.
replace_item,insert_itemanddelete_itemtake one item's text, never the file: a module, analwaysblock, a function, a declaration, selected the wayread_itemslices it. The block's own verifier refuses anything that changes a byte outside the item's lines, opens a block it does not close, closes the enclosing module, changes an item's kind, declares a name twice, splits anifdef, alters a macro definition or a fence marker, or leaves a comment or string running into the code after it;delete_itemrefuses while a declared name is still used — by the engine, by a macro argument ordefinebody, or through a.*binding — unlessforceis passed. 45 QA attack tests. (docs/features/mcp-structural-edits.) - Warm start from the editor's index. With
--index-cache DIRthe server reads the language server's store read-only (never writes it), skips the parse of every file whose bytes it already describes, and keeps its own store beside it: opentitan startup 1.9 s → 0.8 s. (docs/features/mcp-cache-and-census.) - What three census rounds changed (
mcp_analysis.md: four tasks, 20 sub-agent runs on opentitan, with and without the server): everyreferences,rename,add_portandremove_portanswer now ends with the unresolved mentions of the name — strings, comments, macro text and macro-rooted paths no engine resolves — so a DV force path built as a string is no longer missed; every paged answer opens withN things (showing a–b)and the default limit is 500; the listing tools take aninpath glob (ip/**/rtl/*.sv), which turns "who instantiates X under ip/, RTL only" into one call;add_porttakesafterto place the port where the file's style wants it; the tool catalogue is 40 % smaller; the instantiation template and hierarchy overrides are opt-in. Verdict: no wrong answer in 20 runs, 15 % fewer tokens on the whole-design question, small edits 4–19 % dearer, the cross-file rename complete where plain search had missed a site. - Filed for the engines, not fixed here: the parser's silence on a
trailing
,in a connection list,{d,, d}andtype(x)'(y)in a connection; a falseremove_portrefusal on a same-file instantiation;extract_modulewriting LF into a CRLF file; a lint gap on a directionless header port; the LSP'sreferencesomitting three realaesinstantiations in the*_pd_main.svtops (docs/topo.md§2.9 rows 35–42).
0.56.0 — 2026-09-23
Rename keeps implicit connections bound; the MCP server, as a preview
- Rename no longer cuts a
.nameor.*connection. Renaming a portd→dinofleafused to leaveleaf u (.*)binding nothing and turn.dinto.dinagainst a parent with no netdin; renaming the parent's net cut both bindings — and every case verified clean, because nothing records what an implicit connection binds. Now the binding is written out:.dbecomes.din(d), a.*that bound the port gains.din(d)beside it, and a renamed netn→mgives.n(m). Every rewrite is listed in the rename's warnings; a case the engine cannot read — a.*into a module lucisv cannot see or finds declared twice, a list split byifdefs, a hierarchicalbindtarget, a.*that would start binding the new name — is refused with the reason. The verifier now prints every implicit binding before and after and refuses a mismatch, and accepts only the four spelled connection templates at the exact positions the rewrite writes them. The language server hands the engine one more hop of files (the modules a handed-over file instantiates), so a.*into a module declaring neither name is read rather than refused. Abindonto a bare instance name resolves through the instance table, soclk_i/rst_ni/err_orenames beside opentitan's fifo binds succeed. On opentitan copies:prim_count'serr_o,aes_core'sclk_iandentropy_src'sclk_irename cleanly with their.*cov binds written out;prim_fifo_sync'sclr_iis refused over the FPV binds that really target fifo instances — the refusal the old engine silently skipped. (docs/features/refactor-rename/README.md, "Implicit connections".) lucisv-mcp, a Model Context Protocol server for coding agents — preview. A third binary,cargo build --release -p lucisv_mcp, MCP over stdio, built from the same library crates as the editor and the CLI and sharing no code path with either. Twenty-three tools:project_overview,list_units,unit_interface(ports, parameters, a paste-ready instantiation),outline,read_item(one module, function oralwaysblock — not the file),search_symbols,defines,definition,references,hierarchy,diagnostics(whatlucisv checksays, with the CLI's JSON field names), and the edit toolsformat,fix_lint,rename,expand_wildcard,convert_ports,organize_imports,inline_module,propagate_ports,remove_port,add_port,extract_module,instantiate— every edit verified by the same engines, all-or-nothing, re-read before the first write, inside the roots only, withdry_runreturning the diff. Answers are from disk (never an unsaved buffer), fresh at every call, rendered for a token budget. Try it from a checkout with Claude Code (claude mcp add lucisv -- /path/to/lucisv-mcp --root .), Cursor (.cursor/mcp.json) or VS Code (.vscode/mcp.json,"type": "stdio"). Not yet inside the.vsixand not yet reading the editor's index cache — those are the next lanes (docs/mcp/PLAN.md,TODO-MCP.md; feature READMEsdocs/features/mcp-*).- CLI:
--diffoutput is unchanged; its printer now lives inlucisv_core::diff, shared with the MCP server'sdry_run.
0.55.0 — 2026-09-17
Loop 3, round 2 — find-references reaches a module's internals
- References see every cross-file use of a module's nets, variables
and instances. With
module leafdeclaringlogic sigand another file writingassign w = u_leaf.sig;(or abinddirective namingsigin a connection), Find All References from the declaration answeredleaf.svalone — while a rename already edited both files. The two index questions behind references asked the module's connection surface (ports and parameters), which cannot hold an internal net; they now ask the hierarchical surface, the one a path in another file actually reaches the declaration by. Every answer for a port, parameter, package member, class field or struct field is byte-for-byte what it was. Hover's declaration snippet uses the same lookup and now shows the live line for such a signal in an edited buffer. On the opentitan tree, references onaes.sv'sentropy_masking_reqnow listaes_bind.sv, andstate_qinentropy_src_main_sm.svlists its use inentropy_src_core.sv. (docs/features/references-hierarchical-surface/README.md.) - A closed declaring file's own uses are in the answer. The index
deliberately posts no in-file references for a module's internal
signals (a table sized by every RTL body, for a rarely asked
question), so a request from another file into a declaring file
nobody has open used to list the cross-file sites and silently omit
that file's own
assign … = sig;lines. That one file is now parsed once, on exactly that request shape — 0.4–1.5 ms on a real design file, the same trade a rename already makes. - A stale index may omit a location; it can never point at a wrong
line. Three QA rounds found that a span recorded at index time, or
computed against one read of a closed file, could be rendered against
a different read of the same file after an external edit (another
tool,
git checkout, a build step) and land on a line that no longer holds the name. Each closed file is now read exactly once per request, and every index-time span — closed files and the open-buffer declaration fallback alike — must still spell the name exactly where it is rendered, or it is dropped. Escaped identifiers, UTF-8 boundaries, a deleted declaring file and a name that is both a port and a net are covered by tests; references and rename are asserted to agree with the whole-scope engine. - Cost, accepted and recorded in
docs/perf/README.md: a references request on a heavily used local net in a 40 000-line buffer now walks the indexed path, 1.22 → 1.54 ms median; every other harness row unchanged.
0.54.0 — 2026-09-12
Loop 3, round 1 — a rename correctness fix and a faster first edit
- Rename edits a
bindfile's own occurrences. Renaming a module's internal net that abinddirective's connection names bare (bind aes chk u (.req(entropy_masking_req))), or reaches by a hierarchical path (u_aes_core.u_aes_prng_clearing.seed_en), used to leave the bind file untouched and say nothing — the design no longer elaborated after the rename. The resolver had asked the bind target's connection surface (ports and parameters) for a bare name, and rooted a bind's hierarchical path in the scope the directive is written in, which declares nothing. A bind connection is now a reference on the target's hierarchical surface, a bind's path is rooted at the target (a multi-segment target such asbind tb.u_aes …included), and an occurrence the engine cannot resolve is warned about by file and line, never silent. Definition, hover and references answer over bind files the same way. The index store format is bumped (FACTS_FORMAT20): a 0.53.0 store is rebuilt once. (Found by the previous round's QA on the opentitan tree.) - The first request after an edit is ~19 % faster. On a 40 000-line generated register file the first code-action menu after a one-character change costs 88 ms instead of 109: the lexer's raw and comment-attachment phases are fused (no intermediate token vector), the parser no longer clones a token it is about to discard, and the operator table is filtered by first byte before the longest-match scan. Token stream, diagnostics, AST and symbols are byte-for-byte what they were over 4 807 files; every formatter and linter output is identical.
--verbosetiming lines carry a third group,rebuild{…}, that splits the document rebuild after an edit into its stages.- Known remainder, filed: cross-file references from a module's internal net (bind or not) still stop at the connection surface; the rest of the rebuild (the token clone, analysis, external resolution).
0.53.0 — 2026-09-09
The 0.52.0 review — one correctness fix
- A symlink-aliased directory is indexed once at startup. 0.52.0's
startup scan walks the open file's folder before the rest of the
workspace, and the two walks kept separate visited sets: a directory
reachable by two spellings (
a_alias -> z_real) was indexed twice, so go-to-definition offered two targets and a valid rename was refused as ambiguous until the next rescan (found by the independent review of 0.52.0). The two walks now share one directory identity; when an alias sorts before the open folder the scan takes the single canonical walk; an alias only the remaining walk can see requests one ordinary rescan so the spellings converge; and a same-named symlink to an open buffer is never a second copy of it. Startup, rescan and restart agree on index paths, definitions, rename and diagnostics across nine alias shapes, and a genuine duplicate declaration is still refused. - The load probe in
tools/perf/primes a warm store before timing and stamps scan completion from the scan's own end event. - No performance number moved; the CLI is unchanged.
0.52.0 — 2026-09-09
Performance take 5 — the review round
An independent review of 0.51.0 (docs/performance_take5_review.md)
named four remaining costs with gates; all four are implemented and
measured (docs/perf/README.md, the 2026-09-08 review-round entry).
Behaviour is unchanged everywhere the suites and byte-identity gates can
see; two pre-existing gaps the round found are filed, not hidden.
- A rename refuses cheaply. A cursor with no symbol used to read, parse and index every file in the workspace before refusing (2 s on opentitan); an engine-owned preflight now refuses from the request buffer alone in 0.3 ms with the same sentence and precedence. Refusals the workspace index would have to answer stay on the slow road, because a wrong rename refusal is terminal.
- One lint pass per buffer revision. The diagnostics publish and the quick-fix discovery share one result, keyed by value on every input (rule set, options, width, tab width, waiver contents) and cleared by every index change; a cursor move on a 42 000-line file costs 1 ms instead of 23, and the navigation queued behind it likewise.
- The first answer after opening a file. A workspace start now walks, indexes and publishes the open file's own folders before it discovers the rest of the workspace, one scan, every file once: the first go-to-definition answers in about 80 ms cold and 115 ms warm, correct every session, and a warm start settles under one second.
- Scans under load. A scan publishes at most once per 512 files instead of once per burst of requests (a publish costs the size of the index): at the same offered load the median request wait falls from 112 ms to 2 ms and the scan finishes about twice as fast. An empty navigation answer computed while the index is still growing is no longer an answer — it is asked again at the next publish or at the scan's end — and a cancel for such a request is honoured where it lands.
- Rename reuses the index's own records. For the files a rename selects but never analyses, the engine now takes the index cache's record instead of parsing, and only when the file's bytes hash to what that record was written for. The hierarchical-tail rename falls from 380 to 314 ms, the duplicate-module refusal from 2 s to 0.7 s; every edit and every warning byte-identical.
- The CLI is unchanged in this release.
0.51.0 — 2026-09-08
Performance take 5 — the implementation round
The owner's take-5 plan (docs/performance_take5.md) implemented end to
end, each stage measured against the 0.50.0 reference on opentitan
(docs/perf/README.md, 2026-09-08). Behaviour is unchanged everywhere the
suites and the byte-identity gates can see; what changed is how much work
the same answers cost.
- Code actions stop repeating work. A code-action request runs the
lint pass and reads the project configuration only when the client asks
for quick fixes or fix-all (
only: []answers at once); the formatter's fence answer is computed only when a finding carries a fix and once per document revision; the four refactoring selectors read the document's own parse instead of re-parsing the buffer; the ports and organize-imports lightbulbs are answered from the plan-time checks with the same titles and counts, the click still recomputing and verifying. On opentitan's 42 192-line generated file a no-offer cursor move fell from 310 ms to 24 ms, and the navigation queued behind it with it; an offering cursor from 22 ms to 5.5 ms. - Rename reuses its analysis; the verifier is untouched. A rename
parses and analyses each selected file once and builds its after-index
from the edited files' fresh records; every check the verifier makes is
the same code, re-attacked. The hierarchical-tail rename fell from 780
to 388 ms (2.01×), an ordinary rename 141 → 92 ms, the extract command
246 → 149 ms. A
--verbosesession now logs a per-stage rename trace. Topology handshake 33 is closed: inline-module's hierarchical-use refusal now sees every file whose tokens write the dissolved instance's name, including abindin a file that instantiates nothing in the chain. - The CLI's package census parses once. With
unused-importon,check --select error,warning,styleno longer builds a one-file index for every file: the census reads package exports off its one parse and skips the nine files in ten that declare no package. The rule's cost onhw/ipfell from 142 ms to 5 ms; every output is byte-identical. - Startup. The server asks for the client's settings before its first
scan (2 s bound for a client that never answers) and runs one scan at
the answered scope — the empty default-scope scan is gone; the index
store is not rewritten when nothing changed and is opened at the first
step that needs it; the corpus is read a file at a time in its own step
rather than all up front; the open buffers' folders are indexed first
and the first navigation after opening a file is answered once that
folder is published — correct in every session, at ~250–275 ms, where
it used to be 84–208 ms or over a second depending on a race. Warm
start 1.33 → ~1.05 s, warm idle RSS −15 to −20 %, the store
byte-identical across sessions.
--verboselogs a per-stage scan trace. - The harness (
tools/perf/) records units, status, result counts and edit fingerprints on every row, measures the extract/inline commands for real, and is what every number above was taken with.
0.50.0 — 2026-09-07
The format cache key; performance take 4
uvm-utils-indentis part of the format cache key. In 0.49.0 a clean verdict cached under one setting of[format] uvm-utils-indentsurvived a toggle of the option, soformat --checkcould exit 0 where--no-cache --checkwould reformat (found by the repository audit, topo handshake 34). The entry carries the option, the store line has it as a fourth field, and a 0.49.0 store is dropped entry by entry and rebuilt — never trusted, never an error. Regression through the real CLI in both toggle directions.- Performance take 4 (
docs/performance_take4.md): 0.49.0 against 0.43.0 on opentitan, both binaries driven by one client in one hour. 0.44.0'sdidOpenfix confirmed in the release build — 14× on the 42 192-line file, 3–7× on ordinary RTL; the CLI unchanged and its formatter verdicts byte-identical on all five trees; the findings filed for the next loop: the lazy code-action offer 2–3 ms dearer per cursor move (the extract and inline gates re-parse a buffer the server already holds), the hierarchical-tail rename at 751 ms, the Style lint class 1.27× afterunused-import, the index 14% bigger at codec 19. The measurement harness now lives intools/perf/and runs from a clean checkout.
0.49.0 — 2026-09-06
Inline module; the last coverage gaps
- Inline module. With the cursor on
S u_S (...),S's body is copied into the instantiating module: ports replaced by the connected names or literals, parameters aslocalparams with the override or default, internal names prefixedu_S_only where the file already spells one of them, comments and attributes carried verbatim,.nameshorthand connections inside the body expanded when their signal is renamed. Refuses — with a sentence — a.*or positional list, an expression connection, an unconnected port, an output into a literal, any hierarchical reference to the instance, agenerate,initial/final, macros, directives, interface/inout/unpacked ports, and a module declared in the same file.refactor.inlineaction,lucisv.inlineModule. Extract → inline round-trips byte-equal after formatting. - The verifier learns a copy. A copied region's comments and attributes may be written once per copy in the destination while the copied file must appear in no edit at all; attack tests through the production entry, re-attacked by QA.
- The last coverage gaps. Six language shapes now parse and format:
->>non-blocking event triggers (with delay or event control), streamwith [range]slices, the LRM's other cast bases ((W+1)'(x),logic [3:0]'(x)), drive strength on a net declaration (wire (strong0, weak1) w = a;— its comment slots also fix a pre-existing refusal onassign /*c*/ (weak0, pull1) x = y;),letat statement position, and#(min:typ:max)clocking skews.randsequence … endsequenceis a real node — productions, weighted alternatives,rand join,repeat,if/case, code blocks — printed one production per line; it was a parse error before andrandsequenceis now a keyword. Comment slots added tolet, stream concatenations and the clocking grammar: the formatter's gap fuzzer covers 499 gaps at zero failures. [format] uvm-utils-indent(editorlucisv.format.uvmUtilsIndent), default off: indents theuvm_field_*lines betweenuvm_object_utils_begin/uvm_component_utils_beginand their_end. On over the corpus it changes 21 files, all idempotent, no comment lost. A short comment-free enum body already prints on one line, so no key was added for it; the behaviour is pinned.
0.48.2 — 2026-09-06
The 0.48.0 packages, rebuilt from the right commit
- 0.48.0's packages were built one commit early — a release-chain slip tagged the version commit before the feature commit landed, and the tag was moved after the build had started — so its extension lacks the DUT-centred hierarchy view its notes describe. 0.48.1 never built: its tag caught a concurrent lane's half-written verifier edits. 0.48.2 is the 0.48.0 tree, packaged from the commit that has the view. Nothing else changed.
0.48.0 — 2026-09-06
A DUT-centred hierarchy view
- Star a module as DUT from the hierarchy pane's row menu (or the
lucisv.hierarchy.starDutcommand, or a checked-inlucisv.hierarchy.dutssetting, whose entries show locked). Each DUT gets two collapsible sections: the DUT with its instance subtree, the DUT at the very top, and the DUT's parents — an upward tree from the DUT through every module that instantiates it, transitively, which is where the DV bench lands. One section holds every other module: those in no DUT's subtree or ancestor chain, re-rooted where their only parents are DUT ancestors, so a monitor beside the DUT under the same bench stays visible. One DUT → three sections; two → five. A module both below one DUT and above another appears in both DUT sections. With nothing starred the pane is exactly as before. Client-only, over the hierarchy snapshot the server already sends.
0.47.0 — 2026-09-06
Organize imports, extract module
- Organize imports. Removes the
import pkg::*;lines nothing in the scope reaches through, merges exact duplicates and sorts the run at the top of a module, package or class;source.organizeImports, so an editor's organize-on-save runs it, andlucisv.organizeImports. "Used" is the binder's own lookup, read as a superset — over-keeping is the safe direction — and anexport pkg::…in the same package counts as a use of its import (IEEE 1800 §26.6). It refuses rather than guesses wherever a macro call, a conditional directive, an unknown or twice-declared package, or a base class in another file could hide a use, which is why every opentitan UVM package (all carrying`include "uvm_macros.svh") is refused. The same judgement is the newunused-importrule (Style, off by default, safe fix). - Extract module. Select whole module items and give a name: the
items become a new module with ports inferred from dataflow across the
selection (read only →
input, written →output, written on both sides → refused), parameters passed through, used imports copied, and the selection replaced by an instantiation rendered from the new module's own text. Written to a new file when the client can create one, below the source module otherwise. Forty-three refusal sentences for what lucisv cannot judge (a routine argument, a hierarchical path crossing the boundary, an interface-typed name, atypedefof the source module, …).refactor.extractcode action,lucisv.extractModule, and a name prompt in the VS Code extension. Inline module follows in a later release. - The verifier's never-dropped ledger follows a move. For the bytes an extraction moves, a comment or attribute deleted inside the moved region must land exactly once in the file the move names; a deletion outside the region stays an ordinary deletion that must be written back in its own file. Opt-in per edit, four equations, twelve attack pairs through the production entry, re-attacked by QA.
0.46.0 — 2026-09-05
Two refactorings: expand .*, convert ports to ANSI
- Expand
.*. A wildcard connection is written out as the named connections it stands for, in the module's declaration order, through the port engine's splice and verifier. The wildcard rule is read strictly (IEEE 1800 §23.3.2.4): a same-named net, variable or port binds; a parameter, genvar, type or instance does not, and that port becomes.p()with a warning naming it. Refused inside abinddirective, on a positional list, on two.*, or when a file does not parse. Code actionlucisv: expand .* (N connections)and commandlucisv.expandWildcard. - Convert ports to ANSI. A Verilog-2001 header with body
declarations becomes an ANSI header (
output b; reg [7:0] b;→output reg [7:0] b, every merge of §23.2.2.2), the absorbed declarations deleted and their comments carried onto the ports. The edit inserts around each header name so nothing that referenced the port moves; twenty-three shapes are refused with a sentence rather than guessed (port expressions, disagreeing ranges, initialisers, directives, a comment that would have to move into a one-line list). Code actionlucisv: convert ports to ANSI (N ports)and commandlucisv.convertToAnsi. - The refactoring verifier's comment rule is stricter, and covers
attributes. Every comment and every
(* … *)attribute a file had it still has, by exact text and count; a piece a deletion covers is written back exactly as many times as it was deleted, and an edit may not duplicate one nothing touched — which also catches a comment rewritten, truncated or duplicated. Ships with masked-corruption attack tests, re-attacked by QA.
0.45.0 — 2026-09-05
Cross-file semantics: type spans, re-exports, hierarchical tails
- Type names carry spans. Every
DataTypeanddisabletarget knows its range on the AST; the semantic crate's text scanner (scan.rs) is deleted. Definition and hover on a type name land exactly,pkg::tselectingt; a segment the source spells differently from the parser's join is recorded with an empty range rather than guessed. - Package re-exports are real references.
export pkg::item;andexport pkg::*;bind both halves, the index records each package's re-exports, and definition, hover, completion afterpkg::, references and rename follow them transitively. On opentitan a name reached only throughexport spi_device_reg_pkg::SramDepth;now resolves. - Renaming an internal net edits its hierarchical uses in other files.
A module now has a hierarchical surface (nets, variables, instances)
read only behind an instance head —
assign w = u_x.sig;in another file renames withsig's declaration, nestedu_a.u_b.sigincluded — while connection lists still see ports and parameters only. Completion afteru_x.in an expression lists the hierarchical members. Over opentitan'shw/, 514 hierarchical references resolve that did not before; a rename that now reaches one more file costs one more file's read. - The index facts format is 19; stores written by earlier releases are rebuilt on first use.
0.44.0 — 2026-09-05
Opening a file no longer stalls the editor
undriven-netasked the workspace census once per declaration, ahead of the local guards that silence almost every one, so adidOpen— and every keystroke flush — of a large file paid a walk over every indexed file thousands of times. Asked last now, the way its twinunused-signalalways did. Opening opentitan's 42 192-linepinmux_reg_top.svat workspace scope: 1 742 ms → 117 ms; typical IP files 51–95 ms → 5–8 ms. Same findings in the same order.- Walk warnings. An unreadable directory, an unreadable
.gitignoreor a dangling source-file symlink no longer fails a run: the CLI printswarning: <path>: <message>on stderr before the report with the exit code unchanged, and the server logs once per scan. - A typo in
lucisv.lint.selectorignoreis logged once (lucisv.lint.select: unknown rule: <name>) instead of silently emptying the selection. - Inline aggregate types as parameter-override arguments
(
m #(.T(struct packed { logic a; })) u ();) parse, format and are emitted by the instantiation skeleton. - Comment slots inside delay lists (
#( /*a*/ 1 : 2 : 3 ), gate#(rise, fall)), and a line comment after a gate instance's comma now ends the line.
0.43.0 — 2026-09-05
The repository analysis's three findings
- Atomic writers cannot collide. In-place writes use an exclusive,
per-operation temp file (
.{name}.{pid}.{n}.lucisv-tmp, created 0600 when a target exists and given the target's mode before the bytes land); the CLI deduplicates its inputs by canonical identity, so a symlink alias of a file reaches one worker and is reported once. Two processes on one target remain last-writer-wins, which the formatter's idempotence makes safe. - One lint-configuration contract. The editor now honours a project's
[lint] selectand[lint] ignorethe way the CLI honours its flags:lucisv.lint.selectwhen set, else the project's, key by key, with the editor-only severity switches and per-rule toggles applied over whichever stands. A project entry the server cannot use — a rejected[lint.<rule>]option, an unknown rule name, a bad waiver directive — is logged once with file and line inlucisv check's wording and dropped; the buffer keeps linting. The CLI's and the server's rule lists are asserted equal over the wire. - Directory walks terminate on symlink cycles. Each directory is entered once by identity; a link to a directory already entered is skipped, one not yet entered is followed once, a dangling directory link is skipped and a dangling source-file link is still reported. Both the CLI and the server's index scan.
- A comment before a net delay's
#(wire /* c */ #5 w;) now formats.
0.42.0 — 2026-09-05
External waiver files, and the two vendor shapes the sweep skipped
- External waiver files in Verible's format:
waive --rule=<rule> [--line=N|N-M] [--location=<pattern>],#comments. Read from[lint] waiversinlucisv.toml,lucisv check --waiver-file(repeatable) and the editor settinglucisv.lint.waivers; the three add up.--locationis an--exclude-style pattern, not a regex, and a regex-looking one is refused by name. Union with inline waivers; unused external waivers are reported underunused-waiverat their line of the waiver file bylucisv check, after the whole run. The editor's quick fixes and fix-on-save honour external waivers too. - Rival module/interface headers across an
ifdef/else(opentitan'sjtag_if.sv) now parse: the unit is kept verbatim as a whole, the standing directive-split trade, instead of nesting and losing its closer. - A net delay after the type (
wire [31:0] #0.1 x = y;, where the LRM puts it) is accepted and printed where it was written. - Documentation: the repository analysis audit's README and site rewrite (architecture across all eight crates, topo facts at codec 17) is committed; its three findings are planned as TODO §41–§43.
0.41.0 — 2026-09-04
Code actions off the fan-out
- Lazy port refactorings. For a client that supports
codeAction/resolve(VS Code does), the port actions are offered from the buffer and the instantiated module's declaration alone, and the edit is computed when the action is picked. The request VS Code sends on nearly every cursor move no longer reads the module's fan-out: flat at ~55 µs in-process from a 3-file to a 128-file fan-out, where it was linear (15 ms at 128). A resolve for an action that no longer applies is an error, not an empty edit. Clients without resolve support get the edit up front, as before. - Definitions from the index.
textDocument/definitionand workspace symbols for a file-scope declaration in a closed file now build the location from the positions the index already records instead of reading the file: 0.4 µs against 28 µs per answer. - inlayHint at the default scope: investigated, not changed. The hints missing at that scope belong to a module declared outside what the scope reaches; definition and hover say the same. A scope question, recorded in the feature README.
0.40.0 — 2026-09-04
Two parser residues and atomic writes
- A bare
begin … endat module scope, or straight insidegenerate … endgenerate, is recovered in error-tolerant mode as an unnamed generate block (ItemKind::GenBlock) with a diagnostic at the keyword, instead of being refused and taking the rest of the unit with it. The items inside and after the block are now visible to the editor and to every lint rule;module-begin-block,v2001-generate-beginandmismatched-labelsread the node. Strict parsing is unchanged, so the formatter still refuses the file exactly as before. - A half-typed
#(override or connection whose value would read as the next instance (sub #(.W(8), .DEPTH(⏎u0 (.a(x));) now costs one error element:.W(8)survives,u0is an instance with its connections, one diagnostic on the unclosed(. The balanced-parens spelling stays ambiguous and is still parsed greedily, by design. - In-place writes are atomic.
lucisv format,lucisv check --fixand the cache write a sibling temp file and rename it over the target, so a crash or a full disk never leaves a source file truncated. The target's permissions are kept, a symlink's target is what gets replaced, and a read-only file is refused as it always was.
0.39.0 — 2026-09-04
The rest of Verible's rules
Nineteen more rules bring lucisv to 73 — every rule in Verible's
published list except the one that needs a compiler. New: module-begin- block, legacy-generate-region, legacy-genvar-declaration,
v2001-generate-begin, explicit-function-lifetime,
explicit-task-lifetime, positive-meaning-parameter-name,
suggest-parentheses (safe fix), unpacked-dimensions-range-ordering,
uvm-macro-semicolon, create-object-name-match,
numeric-format-string-style, macro-string-concatenation,
disable-statement, forbidden-macro (macros option),
endif-comment (safe fix), forbid-line-continuations,
dff-name-style, proper-parameter-declaration.
invalid-system-task-function gains a symbols option (Verible's
"forbidden-symbol" is the same rule); void-cast gains
forbidden_calls. The two lifetime rules deliberately exempt an
out-of-body method definition (function cls::f()), which is where
almost every finding on a UVM tree would otherwise land. Each rule's
documentation cites the Verible rule and default it follows.
0.38.0 — 2026-09-04
Lint rule options, and the Style family
Per-rule options. A rule that takes options can be configured in
lucisv.toml ([lint.line-length] length = 120,
[lint.signal-name-style] style_regex = "[a-z_0-9]+") and from the
editor (lucisv.lint.options, one object keyed by rule). Both doors run
one validator: a bad key, kind, range or pattern fails lucisv check
naming the file and line, and is logged and dropped in the editor so a
typo cannot switch a rule off. Editor options win over lucisv.toml,
key by key. --rules-doc lists every option with its kind and default.
Patterns use a small built-in regex dialect (literals, ., classes,
groups, alternation, * + ?, \d \w \s), whole-name anchored, run as
a linear-time automaton so no pattern can slow a lint run; anything
outside the dialect is refused by name.
Eighteen new Style rules (54 in all): line-length (the
formatter's width), posix-eof (safe fix), forbid-consecutive-null- statements (safe fix), generate-label, generate-label-prefix,
package-filename, one-module-per-file (off), signal-name-style
(off), interface-name-style, macro-name-style,
constraint-name-style, parameter-type-name-style (off),
port-name-suffix (off), banned-declared-name-patterns (off),
typedef-enums, typedef-structs-unions, always-comb (unsafe fix),
explicit-begin (off). The four existing naming rules take Verible's
option spellings. typedef-structs-unions allows a nested anonymous
aggregate by default — a deliberate divergence from Verible, because
every one of its 3 159 findings on opentitan was a generated register
package; allow_anonymous_nested = false restores the stricter reading.
Every rule's toggle in VS Code is regenerated from the registry.
0.37.0 — 2026-09-04
Typing a header no longer loses the module
While you type a port list, a parameter list, a function's argument
list, an instantiation's connections, or the header of a for/if/
while/case, the editor used to lose the whole surrounding module or
function: its body re-parsed at file scope, its symbols vanished from
the outline and from completion, and the orphaned endmodule produced a
second error. Recovery now happens inside the list: the element that
failed becomes an error element, the ones you already typed stay, the
header keeps its node, and the body binds in the right scope. One
diagnostic per typo. The strict parse (what the formatter uses) is
untouched, so every corpus file formats byte for byte as before.
Measured over the corpus with every file cut in half: error nodes fall
by 11 %; diagnostics rise by 7 % because a module whose header was cut
now survives to report its missing endmodule instead of vanishing
into one error node. Known gap: a half-typed #( override whose value
can read as a call still collapses its instantiation (filed).
0.36.1 — 2026-09-04
The 0.36.0 tag never published: its release commit shipped without a CHANGELOG section (the release chain's draft lived in a session scratchpad that a crash had wiped), and the release workflow refuses a version without notes, as designed. 0.36.1 is 0.36.0 plus these notes.
0.36.0 — 2026-09-03
The linter grows up: severities, per-rule toggles, and 19 new rules
Every lint rule now has a severity — error (would likely fail to
compile or elaborate, or silently mis-synthesize), warning (a probable
bug) or style — printed in lucisv check output
(FILE:LINE:COL: warning: message [rule]), carried in the JSON output,
mapped to red / yellow / blue in the editor, and shown in
--rules-doc, which now groups rules by class. --select, --ignore
and [lint] in lucisv.toml accept a severity word (--ignore style).
Editor toggles. VS Code settings gain three master switches
(lucisv.lint.severity.error, .warning, .style) and one setting per
rule (lucisv.lint.rules.<rule>: default / on / off), generated
from the rule registry so the list can never drift. Precedence, top to
bottom: defaults → select → severity switches → per-rule settings →
ignore. Changing any of them re-checks every open file.
New rules — Error: mismatched-labels, duplicate-declaration,
undeclared-identifier (with a project; silent for names that come
from macros, `included fragments or hierarchical paths),
unknown-port, unknown-parameter.
New rules — Warning: forbid-defparam, invalid-system-task-function,
truncated-numeric-literal, undersized-binary-literal (safe fix pads),
suspicious-semicolon, packed-dimensions-range-ordering, module-port,
module-parameter, explicit-function-task-parameter-type,
plusarg-assignment, instance-shadowing, forbid-negative-array-dim,
void-cast, incomplete-assignment (latch inference in always_comb).
Verible equivalents are named in each rule's documentation; defaults
follow Verible's except where the doc says why not. Existing rules
re-classified: multiply-driven and wire-reg-mixup are errors.
Measured on opentitan: every false-positive class found was closed with
a test; lucisv check over its hw/ tree runs in the same time as
0.35.0.
0.35.0 — 2026-09-02
Format fences reach statements and class bodies
// verilog_format: off / // lucisv: off (and the lucisv: spelling)
now protect statements inside begin … end, fork … join, function
and task bodies and always/initial/final blocks, and items inside
a class body — not only items at module scope. A fenced region is
copied byte for byte, keeps its own indentation, and is a fixed point
under a second pass; an unmatched off runs to the end of its own
list. --lines range formatting honours a fenced statement inside the
selected range. Four opentitan files that already carried fences inside
functions and class bodies now keep those bytes.
One rule is applied uniformly: a fence must start its line (whitespace
or a finished block comment may precede it). A fence written after code
on the same line — module m; // lucisv: off — is an ordinary comment,
as the fence documentation has said since the feature shipped; it used
to open a region at module scope by accident.
Not yet fenceable, with reasons in the feature README: port lists, case-item label lists, same-line fences, and a property's local declarations.
0.34.0 — 2026-09-02
Rename tells you what it could not reach
- Macro arguments are named. A rename now lists every file where the
old name appears inside a macro invocation that the rename did not
read (
`uvm_info(..., $sformatf("%0d", sig))in a file with no other relationship to the name), one warning per file, so nothing is silently left behind. Answered from a new per-file census in the index without reading any file (under a millisecond on opentitan). - The index store format changed (
FACTS_FORMAT17); it rebuilds once.
Grammar
- Modport method prototypes (
modport mp (import task drive(int x), input clk);) parse, format and resolve: hover on the prototype's name lands on the interface's task. - Unnamed DPI formals (
import "DPI-C" function int f(int, chandle);) parse and format; an unnamed formal anywhere else is still an error. const /*c*/ refkeeps its comment.
CLI
lucisv check --rules-docprints the generated rule reference.
Internal
- Every file over 1 200 lines was decomposed (parser, formatter, server,
semantic and refactor crates) as pure moves with byte-identical
output;
vlog_refactor'sScopemoved to the crate root.
0.33.0 — 2026-09-02
Assertions are code now
property/sequence declarations and concurrent assertions (assert,
assume, cover, restrict property, expect, cover sequence,
default disable iff) were verbatim text: kept byte for byte, invisible
to everything else. They are real nodes now — every sequence and
property operator (##, [*n], |->, |=>, throughout, within,
intersect, until, implies, iff, nexttime, always,
eventually, first_match, accept_on…, property if/case, typed
formals, local variables, match items) with the LRM's precedence, no
new reserved words, and a byte-exact fallback for anything the grammar
cannot take (it fires on none of 4 792 corpus and opentitan files).
- Rename and references see inside assertions. A signal named only in a property is renamed with its declaration; a property's formal is scoped to the property. Anything that still falls back warns instead of staying silent.
- Formatting: one rule — the spec's top-level
|->/|=>/##/and/orbreak one per line when the spec does not fit; everything else inline. 13 corpus and 36 opentitan files move, all inside assertion text; every`ASSERT*macro invocation is byte-identical. - Properties and sequences appear in document symbols;
undriven-netsees a net driven or read inside an assertion. - The index store format changed; it rebuilds once after updating.
0.32.0 — 2026-09-02
bind directives mean something now
- Bind targets are real.
bind top.gen[0].u_core chk u_chk (.clk(clk));parses and formats with its indexed path; a lone target (bind prim_fifo_sync …) is a reference to the module, so go-to- definition and hover work on it. An instance path records nothing — no file knows an elaborated hierarchy, and a guess would be wrong. - Bind connections resolve where the LRM says they live: the
.porthalf against the module being bound in, the expression half in the target module's scope first (then the workspace, then the scope the directive is written in). Hover on.x(top_sig)in a bind findstop_sigin the target. - The index store format changed (
FACTS_FORMAT15); it rebuilds once.
Two macro-and-directive shapes that used to leave a file unformattable
- A spaced macro call in an expression —
assign x = \WIDTH (a + b);, a parameter override ``MACRO (1) `` — keeps the author's space between the macro name and its(. The gap is token text (a macro defined with formals reads it differently), so the formatter keeps it rather than guessing; the safety net still refuses either rewrite. - A conditional directive inside a connection value —
.a(⏎`ifdef X⏎ … ⏎`endif⏎)— no longer turns the whole instantiation into opaque bytes: the directive region is kept byte-for-byte as a verbatim value, and the instantiation keeps its edge, code lens, hierarchy entry and port references. In opentitan the twopadringinstantiations inchip_earlgrey_{asic,cw340}.svlay out canonically and gain their edges; the`ifdefthat splits two instantiation heads (tb.sv) stays as it was.
Editor
lucisv.instantiate— an execute command ([uri, position, module]) that inserts the same instantiation skeleton the inline ghost offers, as plain text throughworkspace/applyEdit. For clients without inline completion; the Neovim README shows the keymap.
0.31.0 — 2026-09-02
Comments are never dropped — now at every gap
A comment written between two tokens that no AST node owned was never
deleted, but it was printed one node later, and the safety net refused
the whole file for it (exit 2, no output). Three rounds had filed their
leftovers (52 covergroup gaps, 41 fragment gaps, 40 constraint gaps) and
plain RTL had never been measured. This release gives every such gap an
owner: about seventy named comment slots across expressions (q[/*c*/ i],
pkg /*c*/ ::name, x /*c*/ inside {…}, casts, unary/postfix operators),
statements (if/case/for/foreach/do…while headers, @/#
timing, the gap before every ;, block and generate labels) and
declarations (qualifier runs like pure /*c*/ static, function/task
headers and ports, module/package/class headers, typedefs, enums,
structs, declarators, port lists, connections, instantiations).
Four exhaustive gap fuzzers — a /*C*/ in every inter-token gap of
fixture sets for covergroups (329 gaps), fragments (153), constraints
(395) and ordinary RTL (352) — all format and re-format identically, and
are the regression gate from here on. The formatter's output for every
comment-free construct is unchanged: all 860 corpus files and 3 975
opentitan files are byte-identical to 0.30.0. verify.rs is untouched;
ten new attack pairs assert a comment moved across any newly slotted
token is still refused.
- Escaped names inside scoped names (
\my-pkg ::\state-tas a type, an instantiated module, abindtarget) now keep their terminating space instead of being refused.
Editor
- Go to definition on a macro use (
`WIDTH,`uvm_info) jumps to the`define— the file's own definition first, otherwise every workspace candidate the include graph cannot rule out; nothing for a macro nothing defines. - A cast's type is a reference.
state_t'(0)andpkg::t'(x)now light up find-all-references, go-to-type-definition and rename of the typedef (FACTS_FORMAT13 → 14: the index rebuilds once). - Rename warns about what it could not finish. A
u_x.sigwhose module is indexed nowhere is left unchanged and now named — one line per file and unit — instead of silently skipped.
0.30.0 — 2026-09-02
Two lanes, run in parallel: semantic lints on by default, and the vendor/formal collateral grammar.
Semantic lints on by default
unused-signal, undriven-net and multiply-driven shipped off
because a per-file analysis cannot see a signal read or driven from
another file's hierarchy. The index now carries a per-file identifier
census (FileFacts::words, FACTS_FORMAT 12 → 13 — one harvest,
which also builds the completion word table so the server no longer
re-lexes every file at startup: scan time −28 %), and the linter gains
a mention oracle: unused-signal and undriven-net say nothing when
the name is mentioned in any other indexed file. The three rules are
on whenever an oracle exists — always in the editor, and in the CLI
when it walks a project — and stay off for a single file or stdin.
With them came the missing off switch: [lint] select = […] /
ignore = […] in lucisv.toml (CLI flags win key by key) and
lucisv.lint.select / lucisv.lint.ignore in the editor.
Measured: corpus unused-signal 52 → 44 and undriven-net 3 → 0 with
every silencing hand-checked as a genuine cross-file use, nothing
added; across opentitan — lint-clean under its own tools — 14
findings, spot-checked true. Store +14 %.
Vendor and formal collateral grammar
The gap analysis ranked specify/UDP/checker/interface class as
Medium on the strength of "13 corpus checker files"; the round's
census found those were UVM protocol-checker filenames, and that
every construct here has zero declarations in the corpus and in
opentitan. So this is a completeness round for vendored cell, IO and
memory models and formal collateral — and it is proven
output-neutral: formatted output is byte-identical for all 860 corpus
files and all 3 975 opentitan files against the previous release.
Five keywords reserved on a measured zero-collision census
(checker, endchecker, config, endconfig, library); five
deliberately not (expect has 41 real task-call sites — the statement
form is recognised only when its parentheses hold a sequence operator).
specify … endspecify, primitive … endprimitive with table,
checker … endchecker and config … endconfig parse as opaque blocks
that format byte-for-byte and fold in the editor; library …; lines
parse; specparam is a real declaration that hovers and resolves;
alias a = b = c; parses with every term a reference; union tagged
formats; interface class … endclass parses as a class and
implements now contributes supertypes to the type hierarchy. Filed:
the tagged pattern grammar, checker/UDP names as instantiable
symbols, the reverse implements edge.
0.29.0 — 2026-09-02
Fragment mode, and `define continuation.
The gap analysis had this one wrong in an interesting way: class-body
and module-item `include fragments already parsed, because the
file-scope item loop is the class-item loop. What did not parse were
three narrower shapes — a bare statement list, an enum-member list
(riscv-dv's CUSTOM_1, file, included between enum members), a
covergroup-item list — and all three failed at one call site. They are
now SourceFile::fragment, detected by a whole-file rule that cannot
misfire on a valid file: the first structural item failed (directives,
macros and stray ; do not count, and a tolerant parse that quietly
recorded a diagnostic counts as failed — an existing parity test
caught if … else reading as a generate-if to one parser and a
statement to the other), the file does not open with a design-unit
keyword, and a shape consumes the file to its end, tried
narrowest-first because the wider grammars mis-read the narrower. A
fragment formats at indent zero through the existing printers, its
declarations bind, and its enum variants are deliberately not
exported (a package that includes the fragment is the real home of
CUSTOM_1; resolving it elsewhere would name something that does not
exist).
The other opentitan .svh that would not parse was never a fragment
problem: a `define whose formal-argument list spans two lines with
no backslash, which every tool accepts. The lexer now continues such a
directive until the list closes.
Opentitan: 12 → 10 failing files, exactly the two predicted, nothing else moved. Corpus baseline 813 → 814 of 820. Comment-gap fuzzer: every remaining failing slot proven to fail identically outside a fragment (§2.9-22). Formatter output unchanged for every file that parsed before.
0.28.0 — 2026-09-02
Covergroup bodies — round 2 of coverage_gaps C1, closing it.
covergroup … endgroup was a flat token scan into verbatim text: no
name span, no coverpoint names, nothing inside bound. Now a covergroup
is a real node — the header with its argument list, with function sample(…) and @(…) event, labelled and unlabelled coverpoints,
bins/ignore_bins/illegal_bins with arrays, value lists, $,
transition lists (=>, [*n], [->n], [=n]), default and
default sequence, with (…) filters, wildcard, iff, crosses with
binsof … intersect … && !binsof select expressions, option./
type_option. assignments, `ifdef arms, and the endgroup : g
label — behind the same rewind snapshot as constraints, so an unknown
shape restores both comment buckets and re-runs the old scan character
for character. No keywords were reserved. Two disambiguations are by
position, the LRM's own rule (a coverpoint bin's (…) is a transition
list, a cross bin's is a select expression), which replaced a lookahead
scan and took opentitan's fallback count from two to zero.
Two guards were added to shared expression machinery and are the
round's one risk, stated plainly: an index cannot begin with *, ->
or = (so 1'b1[*5] reads as a transition repeat), and a bin's own
with (…) filter is not consumed as an array-method iterator
argument. The whole corpus and the whole opentitan tree re-verified
under both.
Layout is canonical (one cover item per line, { } bin bodies like
constraint sets, the label at the header's column); verify.rs
untouched, twelve attack pairs. The comment-gap fuzzer was built in
from the start: 329 gaps, the 52 that fail are all the shared-machinery
slots already filed as §2.9-22 — and that classification is asserted by
a test that runs each shape outside a covergroup and requires the same
failure. Every sampled expression, bin value and iff binds to the
class's properties; cg_inst.cp resolves cross-file; renaming a rand
field rewrites the coverpoints that sample it. FACTS_FORMAT 11 → 12.
Opentitan: 544 of 544 covergroups structured, 87 of 87 DV covergroup files idempotent with comment streams byte-identical, 81 of 3 963 files re-laid-out and every one verified, the sweep's failure set and per-file diagnostics identical. Corpus: 10 files change layout, all verify; +1 139 references, 1 135 answered.
0.27.0 — 2026-09-02
Constraint bodies — round 1 of coverage_gaps C1, the DV correctness item.
constraint c { … }, constraint C::c { … } and randomize() with { … } were opaque verbatim text: no name span, nothing inside bound,
so renaming a rand field left constraint c { user_id < 5; } as
non-compiling code with, at best, a generic warning. Now a constraint
declaration is a real node — soft, dist (:=/:/), ->
implication, if/else, foreach, solve … before, unique,
disable soft, `ifdef arms — and the parser attempts the
structured body behind a rewind snapshot: any shape it does not know
restores the cursor and both pending-comment buckets and re-runs the
verbatim capture character for character, so an unknown body is the
old behavior, not an approximation. No keywords were reserved —
soft/dist/solve/before are matched by text — so logic before;
keeps working and the editor grammar is untouched.
Layout is canonical: one constraint item per line, } at the header's
column, dist weights broken like a braced list; a with block keeps
its one-line-or-not shape. verify.rs untouched; the constraint attack
pairs re-derived and extended (a dropped soft, := for :/,
swapped solve/before, a dropped else set, a flattened
implication, a comment moved across }). Every operand binds to the
class's properties (this. implicit; foreach variables nest; a
with block resolves against the randomized object's class first), so
hover, definition, references and rename reach inside; renaming a
rand field from its declaration rewrites its constraint uses in-file
and cross-file. FACTS_FORMAT 10 → 11. Lint rules read constraint
operands instead of treating the body as opaque.
QA's finding — a comment right after soft, dist, solve,
before or the constraint name was dropped, so the safety net refused
the file — was answered with an exhaustive gap fuzzer (a block comment
in every inter-token gap of fifteen fixtures, 358 gaps, format and
idempotency both demanded) and fourteen named comment fields; the
forty gaps that remain are shared expression machinery that behaves
identically outside a constraint (q[/*c*/ i], inside {[/*c*/ 0:3]},
scoped-name chains) and are filed as a parser-wide round. No opentitan
file hits one.
Opentitan: 1 993 of 2 009 constraint bodies parse structured (the 16 fallbacks are macro-item bodies and non-LRM shapes), all laid out, token-equivalent and idempotent; 48 DV files across 16 IPs re-format idempotently with their comment streams byte-identical; the sweep's failure set unchanged and the tolerant-diagnostic count per file identical. Corpus: 37 files change layout, all verified; +1 646 references, 84 % answered. Covergroups are round 2.
0.26.0 — 2026-09-02
Two lanes, run in parallel: member completion, and escaped identifiers.
Member completion — a dot means members
Typing item. used to get the whole-index dump — every keyword and
every project word, capped at 512 — because the empty word after a dot
fell through to the ordinary tiers. Now the answer after . or :: is
exclusively the members of what precedes it: a class's properties and
methods (inherited ones included, through the same base chain hover
follows), a struct's fields (reg2hw.ctrl. via the synthesized nested
keys), an interface's signals, modports and clocking blocks (vif.,
vif.cb.), a package's members (tlul_pkg::), this./super.. The
walk is published from vlog_semantic (Semantics::member_site,
WorkspaceIndex::members_of_chain) and the resolver's own member
resolution is rewritten to call it, so the popup cannot list a name
hover would not resolve. A dot inside an instantiation's (…) or
#(…) lists the module's ports or parameters, already-connected ones
dropped. . and : are trigger characters. An unreadable head answers
nothing — never the dump. Cheaper than what it replaces: 6–62 µs
against 212 µs.
QA's finding, fixed at the root: #(. offered header localparams
because the binder had discarded the parameter/localparam keyword.
SymbolKind::LocalParam is now bound from the keyword (sticky across
continuation entries, as the ghost skeleton already read it), shows as
"localparam" on the hover card, is excluded from override lists only,
and still resolves for hierarchical reads. FACTS_FORMAT 9 → 10.
Escaped identifiers format
wire \my-signal ; was refused outright: the lexer ends an escaped
identifier before its terminating whitespace and the formatter emitted
every name bare, so \my-signal; re-lexed as one token and the safety
net — correctly — rejected the file. Fifty name-emission sites now go
through one choke point that writes the IEEE 1800 §5.6.1 space;
verify.rs untouched, eight masked-corruption attack pairs; the corpus
is byte-identical by construction. Netlists and generated RTL format.
One shape is refused rather than corrupted and filed (\my-pkg ::x,
whose segments the parser joins).
0.25.0 — 2026-09-01
Struct members — s.field, reg2hw.ctrl.q and the anonymous
aggregates resolve.
typedef struct packed {…} bus_t; bus_t s; s.field recorded nothing.
The in-file gap was a single resolver gate: a struct typedef's member
scope already existed, hung off the typedef, and lookup simply never
entered it. Now any symbol whose child scope is a struct scope — a
typedef, an anonymous struct {…} s; declarator, or an inline nested
field — answers member access with one rule, and fields carry their
own type so s.hdr.addr hops through a member. Unions are the same
node. Anonymous enum {A, B} x; variants land in the enclosing scope
exactly like typedef'd ones (the open handshake since types-decls).
Across files, struct members are exported under the typedef's name,
and inline nested fields — the shape opentitan's generated register
packages use everywhere — under a synthesized owner.field key
carried as the field's type, so hw2reg.status.txfull.d lands on
txfull's d and never rxfull's two lines up (bare-name keys would
collide on q/d/qe in every register package). Same-named struct
typedefs in two packages answer ambiguity, never a guess. FACTS_FORMAT
8 → 9 (older stores rebuild once); typeDefinition works inside a
typedef struct body.
Unresolved names on the corpus fell 1 203 → 1 162; its store shrank
1.1 % (a resolved local fact encodes smaller than the external
candidate it replaced) while opentitan's register packages grow theirs
4.3 %. QA: 28 live opentitan probes across six IPs with three planted
sibling-field pairs, zero wrong answers, hover under 0.5 ms. Known
remaining shape: an indexed link mid-chain (reg2hw.key_share0[i].q),
pre-existing and filed.
0.24.0 — 2026-09-01
Interface semantics — interfaces, modports and clocking blocks become
symbols, and vif.sig crosses files.
An interface was indexed as a Module (its hover card said "module"),
modports and clocking blocks declared nothing, the signal names inside
them were not references, and one export line kept an interface's
signals out of the workspace's member table — so virtual my_if vif; vif.sig resolved only when the interface was in the same file. Now:
SymbolKind::{Interface, Modport, Clocking}; an interface exports its
signals (they are its surface — a module still exports ports and
parameters only); every name inside a modport or clocking block is a
reference to the interface's signal, method or block; the modport half
of bus_if.mp in a port type or a virtual bus_if.mp handle resolves
to the modport; a clocking block carries its enclosing interface as its
type, so vif.cb.data reaches data's declaration through the member
chase unchanged. FACTS_FORMAT 7 → 8 (older stores rebuild once).
Interfaces stay in the completion/ghost module table, the design
hierarchy and the port refactorings — pinned unchanged — while hover,
outline and completion kinds become honest.
Unresolved names on the 860-file corpus fell 1 256 → 1 203, the first
movement in three rounds — the @(cb) and cb.data names that had
nothing to bind. Store +1.2 %. Renaming a modport from its
type-position use now rewrites its declaration and every use. QA: 17
live opentitan probes, zero wrong answers, every hover sub-millisecond.
0.23.0 — 2026-09-01
Member chains and instance heads — DV class-semantics round 2.
cfg.vif.clk, item.hdr.addr, u_sub.port, tb.dut.u_core.done_o:
the tail of a chain now resolves link by link through each link's
declared type. In one file the resolver hops declared type → declared
type; across files a chain becomes one composed path (item_t::hdr::addr)
the workspace's member table walks, so hover, find-references and rename
agree by construction. Def::type_name rides every indexed declaration
(FACTS_FORMAT 6 → 7; older stores rebuild once), and this.x/super.x
uses now post to the index, so references from a base class's
declaration list its subclasses' uses in other files.
Instance heads: an instance's type is its module, and modules export
their ports and parameters — so u_sub.port resolves cross-file;
internal nets and vars resolve in the declaring file only, by ruling:
exporting them cost +24 % store and made .port(w) connections resolve
to internals. Typedef'd class aliases (typedef c1 my_t; my_t h; h.x)
are chased, visited-guarded. A chain link whose type is declared twice
in the workspace with different kinds is refused — round 1's lesson,
one hop out. No link ever guesses.
Rename's truth moved with it: renaming sub's wire sig now rewrites
u_sub.sig too, which a compiler needs; an unresolvable tail is left
alone (and, a known gap filed as topo §2.9-20, no longer warned about).
Corpus: unresolved unchanged at 1 256; store +15.4 % (opentitan 30.8 → 35.4 MB), most of it the inherited-member postings. Zero wrong answers in QA's 15 live opentitan probes. Formatter output unchanged.
0.22.0 — 2026-09-01
Class member access — the first DV class-semantics round.
task class2::update(c1 in_item); address = in_item.user_id; … —
hovering user_id used to show nothing. Now the tail of handle.member
resolves through the handle's declared type: a new Symbol::type_name
records the type as written; the member is found in that class's scope,
else up its extends chain in the file, else through the workspace's
member table, which chases WorkspaceIndex::base_of — a subclass→base
map built from the inheritance census the index already keeps —
cycle-guarded on both sides. Hover shows rand bit user_id; with its
file and line; go-to-definition, find-references (from either end) and
rename follow. this.x/super.x misses resolve to inherited members
through the same chase (the open handshake since the classes wave), and
an out-of-class method body sees its class's members. FACTS_FORMAT
5 → 6 (the reference census grew; older stores are discarded).
Honest by construction: a head whose type is declared in the file as
anything without a member scope — a struct typedef, an alias, an enum —
records nothing rather than reaching the workspace, after QA caught the
first cut answering bus_t s; s.field from an unrelated class named
bus_t elsewhere. Module-instance heads, chains a.b.c, struct fields
and typedef'd class aliases are round 2.
Cost: hover 7–143 µs; on opentitan a tl_seq_item member resolves in
0.12 ms cold / 0.01 ms warm; store +2.85 %. Formatter output unchanged.
0.21.0 — 2026-09-01
Null items: endgenerate; parses — and everywhere else a stray ; may
legally stand.
The report was "for loop inside generate fails"; the diagnosis was that
every generate-for spelling — and three published examples — already
parsed, and the failing token was the lone ; after endgenerate.
IEEE 1800-2017 A.1.4 makes that a null item, legal in module,
generate, package, interface, program and class scope and at file
scope; lucisv rejected it in all of them with expected item. Now
ItemKind::Empty, accepted by one parser branch, laid out where it
was written (glued to the previous line for endgenerate; / end; /
endmodule; / ;;, or on its own line), token-preserving and
idempotent both ways. verify.rs untouched; eight masked-corruption
attack pairs (a dropped ;, one moved across a comment, into a
procedural block, between `ifdef arms) all rejected.
New lint empty-item (slang's -Wempty-member): warns on a null
item; its safe fix deletes the ; — and the line, when nothing else
stood on it — with a deletion range that structurally cannot swallow a
comment. In the editor, a file that used to show a parse error now
shows a warning with a quick fix and fix all.
Formatter output changes only for files that contain a null item; the 820-file corpus is byte-identical (813/820) and the opentitan sweep is unchanged file-for-file. Version bumped per the format-cache rule.
0.20.0 — 2026-08-30
Fuzzy completion: clkenq reaches clk_osc_en_q.
Identifier completion now matches by subsequence — the typed
letters present in the name, in order — at three or more typed
characters, and by prefix below that: VS Code's own rule, ruled by the
owner. The scope-visible, project-declaration and project-word tiers
go fuzzy; modules (substring), keywords, templates and `define
names keep their own semantics, and the instantiation ghost's
exact-match trigger deliberately stays exact.
Ranking is prefix-first, then a boundary-aware score: letters landing
at the starts of name parts (c·l·k at clk_…'s components)
outrank accidental scatter, contiguous runs outrank gaps, and the
order is deterministic. The scan is affordable because every table
entry carries a 32-bit character mask — a clkenq keystroke rejects
99.6 % of opentitan's 100 022-word table with one AND each and costs
+0.05 ms; the expensive class is three very common letters (aes,
ena), measured at 1–4 ms server-side and accepted as imperceptible
in a popup. 1–2-character responses are always isIncomplete, so the
third keystroke — the one that turns fuzzy on — always reaches the
server.
Formatter output unchanged; the bump is the completion behavior.
0.19.0 — 2026-08-30
Inline instantiation, round 2 — two rulings from first live use.
The space is the commitment. The ghost now appears only after
name<space>: aes alone may still be growing into aes_dft, so the
typed space is what says the name is finished. An exactly-typed name
with the cursor at its end offers nothing; one space arms it; two
spaces or a tab do not. The popup flow is accept the name, type the
space you were going to type anyway, Tab the ghost.
Every indexed module answers. A module declared in more than one
file used to get no ghost (ast_dft and io_osc are each declared
under both top_earlgrey and top_darjeeling in opentitan — two
whole IP blocks silenced). The server now picks the declaration
nearest the file being edited: most shared leading path components,
then the shallower copy, then the smallest path — deterministic, and
the popup's detail names the file that will be read. The refusal
residue is a named enum, and the QA sweep proves the ruling: all
1,131 opentitan module names ghost, zero declines (199 of them
multiply declared, one of them 61 ways), at 0.05–0.08 ms per
non-matching keystroke and ~0.5 ms per ghost.
Formatter output unchanged; the bump is the trigger and chooser behavior.
0.18.0 — 2026-08-30
Inline instantiation: the popup names the module, the ghost writes the rest. Two levels, sized for a 4,000-file SoC.
The two-level split
Level 1 — the completion popup offers module names. Tier 0 used to
plan a full instantiation skeleton for up to 64 candidate modules on
every keystroke — each one a definition-file read and a header parse.
It is now a scan of the in-memory module table and nothing else: the
item inserts the name, Module icon and declaring file beside it.
Level 2 — the exact name grows a ghost. The moment the identifier
at the cursor exactly (case-sensitively) matches an indexed module, at
a position where an instantiation is legal, with nothing after the
cursor, textDocument/inlineCompletion offers the rest of the
instantiation in grey: every parameter override, every port
connection, each a snippet tabstop, ports matching an in-scope signal
auto-connected. Tab writes it; the editor's own tab settings indent
it. Works the same whether the name was typed by hand or accepted
from the popup. Exactly one module is ever planned, through the
guarded header-slice path and the file-view cache.
The per-keystroke probe is Candidates::has_module — a case-sensitive
binary search whose sorted-table premise is pinned by test. Measured
on opentitan (3,976 files): a keystroke that is not a module name
costs 0.10–0.17 ms; the ghost for aes (14 parameters, 16 ports)
0.6–1.1 ms; the 112-parameter top_earlgrey 2.5 ms cold.
New setting: lucisv.inlineInstantiation (default on), independent of
lucisv.inlineTemplates.
Honest losses, written down: the popup's per-module documentation
panel is gone (it cost a plan per item); a client without
inlineCompletion support (Neovim's built-in LSP today) gets names
but no skeleton — filed as docs/topo.md §2.9-19 for an
execute-command spelling. A module declared in two files now appears
in the popup by name (it used to vanish entirely); its ghost declines
rather than guess which file.
Formatter output is unchanged; the bump is the two-level completion
behavior itself. Also checked in: docs/performance_take2.md
(referenced since 0.15.0, never staged — performance.md,
performance_take2.md).
0.17.0 — 2026-08-29
The wave's second half: from 100 sweep failures to 11 on the
3,943-file opentitan checkout — 99.7 % of the tree parses, formats and
round-trips clean, and what remains is macro `include fragments
(a preprocessing decision), vendor files that are not SystemVerilog
(exclude patterns recommended in the analysis), and three written-up
skips.
The mop-up: nine small buckets
Block-scoped typedef statements, system-function casting types
($bits(x)'(…)), enum member ranges, casts over assignment patterns,
gate delay lists, virtual iface.modport declarations, rand on
struct members, foreach skipped dimensions, hierarchical bind
instance paths — 45 files, seven of the nine buckets needing no new
AST surface at all.
The clocking wave: eight more, one round
Clocking signal bindings, default disable iff (half of what the
analysis had called "clocking"), iff on event-control terms, indexed
event names, gate drive strengths, program blocks, and macros as a
concurrent assertion's action — where QA caught a real regression in
four UVM-idiom shapes and the rework decides by the token after the
macro, with the failure direction proven trunk-identical rather than
assumed. The expression-chain limit rises 256 → 1024 on measured need
(a generated pinmux file chains 567 links) with the parse stack
resized to keep its safety margin, sabotage-proven.
Formatter output moved in exactly one file-class (code previously swallowed into an assertion's opaque bytes is now parsed and laid out), so this release bumps the version and warm format caches re-verify.
0.16.0 — 2026-08-29
The testbench-syntax release: the coverage gap named by
syntax_coverage.md (a full sweep of a 3,943-file opentitan checkout),
closed bucket by bucket. Sweep failures 151 → 100 across three
lead-reviewed rounds.
Out-of-class constraints parse
constraint ClassName::name { ... } at file or package scope — the
single biggest bucket, 45 files — was a one-line grammar fix reusing
the out-of-body method-name path. The real win is tolerant-mode: the
cascade of bogus diagnostics these files produced in the editor
(300+ per file, 1,349 across the bucket) collapses to at most one
honest report.
Directives may open inside a statement
An `ifdef splitting the right-hand side of an assign, an
expression, or an instantiation head — the mirror image of every
previous directive feature, which all recovered at a closing
directive — is captured verbatim, with a head classifier that refuses
what it cannot prove rather than guessing. Fixes chip_if.sv in both
opentitan tops, both flagship tb.sv testbenches, and friends. Crafted
corrupted-capture pairs are asserted rejected by the safety net.
Three formatter comment bugs, fixed where they lived
A line comment trailing end no longer swallows a cuddled else; a
comment inside an if/while/repeat/wait/case header's parens
stays inside them; default; no longer grows an invented :. Eleven
of the twelve files the safety net had (correctly) refused now format
and round-trip; the twelfth needed a parser-side pending-comment fix
(take_gap) delivered by the directive round — all twelve close on
the merged tree. verify.rs's forgiveness was not widened; the
attack-test template was applied anyway.
Formatter output changed for the comment shapes above, so this release bumps the version and warm format caches re-verify (the format-cache rule).
0.15.0 — 2026-08-29
The interactive-latency release, benchmarked twice against a real
3 976-file opentitan checkout (performance.md, performance_take2.md
at the repo root), plus a design-hierarchy sidebar contributed by
codex.
Every hot path measured, then fixed
- codeAction (fires per cursor move): 3.1–4.6 s → 7 ms — the port-refactor engine reads the cursor module's indexed fan-out, not the workspace; equality with the whole-workspace computation is pinned, ambiguity refusals intact.
- prepareRename (pressing F2): 2.5–3.0 s → microseconds, flat in project size — answered from the open buffer and the index, with a refusal-by-refusal parity table; refusals are deferred to the rename, never lost.
- rename: 3.6–8.7 s → ~105 ms over the reference-postings fan-out, including a sixth rung over unresolved spellings so the dangling-import capture refusal fires exactly as the whole-workspace walk's did. willRenameFiles rides the include graph: 250 → 14 ms.
- completion: 34–66 ms per keystroke → 3–15 ms — module headers are sliced, not whole-file-parsed, with whole-file re-plans wherever the slice cannot be proven identical; items byte-identical.
- documentHighlight: fixed — it answered nothing for any name the file uses but does not declare (a module instance, a connected port), which is most of what a tb hovers.
- A widen that subsumes the old scope indexes only its new files, and the word table merges per batch instead of per word (935 → 555 ms for the first jump into a 1 685-file root, warm).
The scope default finds your block
Behavior change: lucisv.index.scopeDepth defaults to 2 (was
0). Opening hw/ip/aes/dv/tb/tb.sv now indexes the aes block and
cross-file answers work immediately, where before exactly one file was
indexed and every cross-file answer was empty until a jump widened the
scope. An explicit 0 restores the old behavior exactly.
--verbose, when you want receipts
lucisv-server --verbose (or the lucisv.verbose setting, which
restarts the server through a race-proof one-chain restarter) prints a
timing: line for every operation into the output channel. Off by
default and free when off. --stdio is accepted as the statement of
fact it is.
The design-hierarchy sidebar (contributed by codex)
An instance-oriented hierarchy in the Activity Bar: every module, its instances, search over the whole design, bookmarks, click-to-jump. Snapshots read no files at all — the index now carries client positions — so the handler answers in ~17 ms on opentitan and a save with the sidebar open costs ~141 ms total. Search runs over a resident model in single-digit milliseconds at 120 000 entries, collapsed by default, expansion preserved across refreshes.
One-time index rebuild
The persisted facts format moved to 5 (declaration spans, instance occurrences, client positions; ~+2 % store). The first scan after upgrading rebuilds the store once.
0.14.0 — 2026-08-28
The first-hover release: the owner's "hover is really slow on first try," traced to three costs and each one removed. Hover's steady state was already microseconds; now the firsts are too — or as close as physics allows.
The index carries every declaration's line
Each indexed declaration — modules, and ports/parameters through the
same member entries — now records its line number(s), computed at index
time for a u32 per name (+68 KB over the 860-file corpus). A hover
heading into a closed file costs zero I/O: it survives the file being
deleted. The persisted facts format moved to 4; an older cache is
discarded whole and rebuilt once (~175 ms on the corpus).
Closed files are read once, not per hover
The snippet's one remaining read is served from a small bounded view cache (4 files / 8 MiB, newest kept, invalidated on every path that can change a file's text): a repeat hover into a 12 MB closed file goes 5.8 ms → ~1 µs, and mean cross-file hover 40/157 µs → 4.7/12.9 µs. A stale view can only ever omit a snippet — the wrong-line guard is unchanged.
The startup scan answers requests as it goes
A request sent right after initialized used to wait out the whole
scan: 780 ms cold / 287 ms warm over 200 files. The scan now feeds the
live index incrementally and drains the message queue between files —
the first hover of a session answers in ~15 ms against the index so
far, with the open file indexed first. One merge per drain (per-file
merging measured quadratic: 11.7 s over 800 files), scans under 64
files stay one-shot, only the startup scan answers mid-way so the
request-order contract holds, and the finished index fingerprints
byte-identical to the old all-at-once scan. Scan totals unchanged
within noise.
0.13.1 — 2026-08-28
The F12-latency release: the two costs behind a slow jump out of a big open file, found by measurement and removed, plus a stack-safety hole closed.
References stop sweeping the open buffer
The open-document overlay in find-references did index lookups for
every reference in every open buffer. A spelled-name prefilter and a
hoisted file lookup take a 70 000-reference open top.sv from 3.2 ms
to 0.11 ms per request, both directions; in-file references and
occurrence highlighting on a heavily used signal drop ~40 %. Answers
are byte-identical — the old refactor walk remains the tested oracle.
A rescan reuses what open buffers already analyzed
Jumping into a folder the index scope had not reached triggered a rescan that re-parsed every open buffer's text twice — once for index facts, once for completion words. Both now come from the analysis the buffer already holds (one implementation per path, byte-identical facts pinned over the corpus): the folder-widening jump drops from 228 ms to 23 ms, and didSave's incremental update rides the same reuse.
The stack now fits the nesting limit by construction
The parser's 64-level nesting limit only turns over-deep input into an
error on a stack big enough to reach level 64 — an assumption that had
drifted out from under the 2026-08 measurement (~94 KiB per level in
debug under rustc 1.97; a default 2 MiB thread aborted near level 30).
PARSE_STACK_SIZE (16 MiB) is now applied at every parse-reaching
thread, both binaries' work included — the CLI previously aborted under
a 1 MiB main stack (ulimit, win32 default) on 500 nested begins and
now emits an ordinary diagnostic. Deep-nesting suites across four
crates pin it, sabotage-verified.
0.13.0 — 2026-08-28
Editor responsiveness, and hover for old-style ports.
Typing costs one reanalysis, not one per keystroke
didChange no longer reparses and re-lints the buffer on every
keystroke. The text the server holds is still exactly current after
every notification; only the analysis is deferred, and it runs at the
first moment anything needs it — the next request, the next
non-didChange notification, or a 150 ms quiet period. A burst of ten
keystrokes in a 10 000-line file therefore costs one 31 ms reanalysis
instead of ten. The visible consequence: intermediate diagnostics
states are no longer published, so squiggles for a half-typed line that
was finished a moment later never appear. Every state that is published
is one the buffer really passed through. Closing a file that was
mid-edit discards its pending change instead of analyzing it, so it
costs one publish — the one that clears its squiggles — and not two.
The one case this makes slower is a single keystroke followed by nothing at all: it now waits out the quiet period before publishing, 164 ms instead of one reanalysis. Editors ask for something after every change — semantic tokens, inlay hints, highlights — and any request flushes the buffer before it is answered, so the latency a user actually meets is 4.4 ms in a 1 000-line file and 37.6 ms in a 10 000-line one.
Hover shows a non-ANSI port's real declaration
A port declared the old way — named in the module header, completed in
the body by input signed [31:0] data_in; — now hovers as two fenced
sections: the header line, then the body declaration that carries the
direction, the type and the width. Go-to-definition offers both, the
body declaration first. It works cross-file, into files that are not
open, because the span travels through the workspace index. An
old-style task or function argument (task t(a); finished by
input [7:0] a;) reads the same way. Each section also carries every
comment that documents it: the lines above it, the comment beside it,
and the lines below it when nothing else could claim them — all three
at once where all three are written.
Faster hover and navigation
A hover into a closed file reads that file once instead of twice (34 ms
→ 16.3 ms on a 31.7 MB file), and resolving a live declaration looks
its name up instead of walking every symbol in the buffer. Measurements
and how to reproduce them: docs/perf/README.md.
Cursor-position answers stop walking the whole buffer
Expand-selection, on-type formatting, the completion scope gates and the inline template trigger each used to scan every token in the file to find the one at the cursor. They now binary-search for it: 77 µs → 20 ns in a 10 000-line buffer, and 130 µs → 36 ns for the widest of them. No answer changed — each swap is pinned by a test that compares it against the scan it replaced at every byte of the buffer.
The persistent index cache's record format changed to carry the new span, so the first session after upgrading rebuilds its index rather than reading the old store.
0.12.1 — 2026-08-27
Hover shows the cross-file declaration itself. A name declared in
another file — a port at an instantiation, a module instance, a package
member — now renders its declaration's source line, fenced and
highlighted, under the existing "declared in file:line" heading:
direction, type and width for a port, the header line for a module.
Snippets come from the live buffer when the declaring file is open
(unsaved edits included) and from disk otherwise, with a
boundary-checking guard that drops the snippet rather than ever
showing a wrong line, and caps of 5 lines / 400 characters for
netlist-sized declarations. No settings and no index format change.
0.12.0 — 2026-08-27
The indexed-navigation release: find-all-references stops paying a project scan per request.
References become a lookup
Each indexed file now persists compact reference facts — same-file uses
of its exported declarations, plus unresolved cross-file candidates —
and the workspace index resolves them once into
declaration-to-occurrence postings. textDocument/references reads
that posting list and overlays every open buffer's live analysis, so
unsaved additions, deletions and moved declarations stay visible with
no request-time scan: 0.06 ms per request over an 820-file workspace
where the old walk cost 22 ms (~350×). The old walk remains rename's
engine and is pinned equal to the indexed answer by test; ambiguity
still degrades to the in-file answer exactly as before.
Cursor lookups stop sweeping
Declaration, reference and macro-token lookups under the cursor —
hover, definition, references entry points — binary-search sorted
position tables instead of scanning every symbol in the buffer, and
`include definition inspects only the cursor's line.
One-time cache rebuild
The persisted facts format moved to version 2 for the new reference records. An existing index cache from 0.11.0 is discarded whole on first open and rebuilt — one re-scan, never a misread record.
0.11.0 — 2026-08-27
The large-workarea release: a project too big to scan is now a project lucisv keeps up with. Six owner-requested rounds, one dev/QA/review cycle each.
Indexing starts where you are
lucisv.index.scope defaults to folder: the index covers the folders
your open files live in — raised lucisv.index.scopeDepth ancestor
levels — and widens as you open more. Cross-file answers are
scope-relative until the scope reaches a folder; a filelist still
defines the whole project, and "workspace" restores the previous
walk exactly (the same code path, not an equal-output one). This is
a behavior change for workspace users without a filelist — the
migration is that one setting.
One file changed, one file merged
A save re-indexes only the saved file — 33 ms where the corpus rescan cost 1.5 s — through an index whose incremental histories are byte-identical to fresh builds. Instantiation counts, incoming calls and subtype answers now come from edge tables built at index time (code lens 92 ms → 0.26 ms), so they read as of the index rather than of unsaved keystrokes.
The index survives a restart
Per-file index records persist under the editor's workarea storage
(lucisv.index.persist, on by default), keyed by content hash: a
crashed or closed session resumes where it stopped, cached files fly
through the progress bar, and the end message says how many came from
cache. The cache is a performance artifact with a per-record checksum
— a damaged entry costs a re-parse, never an answer.
Netlists open instantly
Above lucisv.largeFile.threshold (4 MiB) a buffer skips the pipeline
entirely: a 104 MB netlist opens in 40 ms, viewport syntax
highlighting answers in a quarter of a millisecond, and same-file
definition/references run as bounded text scans. Most other features
deliberately answer nothing there. Fixing this path's long-line
behavior also made ordinary files' semantic tokens up to 9× faster.
The scan explains itself
The indexing bar counts n/total through the files; the output
channel logs each file as indexed, cached, or skipped;
lucisv.index.maxFileSize (1 MiB default) keeps generated files out
of the index, with skips counted in the closing message.
0.10.2 — 2026-08-27
The works-anywhere release: a seventh extension package that carries every platform's binaries in one file, and a Marketplace-grade extension page.
The all-platforms package
lucisv-<version>-all.vsix embeds all five platforms' lucisv and
lucisv-server pairs under bin/<platform>-<arch>/, and the extension
picks the right pair at runtime from process.platform and
process.arch. It is deliberately target-less, which makes it the
package for machines the targeted five cannot name: Alpine (VS Code
there asks for an alpine-* target, but reports plain linux at
runtime, so the static musl binaries just work), mixed fleets, or one
file mirrored internally. The cost is download size — about 13 MB
against 3 MB for a single-platform package — and nothing else. The
resolution order is unchanged: an explicit lucisv.serverPath first,
then the bundled binary (flat bin/ before the platform subdirectory),
then PATH. Details: docs/features/editor-platform-vsix/README.md.
One consolidated release flow
The release workflow's publish-only-the-packages logic now lives in
tools/prune_release_assets.sh, and it requires all seven packages
by name — five platform, all, and the universal no-binary fallback —
before anything is published; a missing one fails the release. Every
tagged release follows this same flow with no manual steps beyond the
version bump, the changelog section, and the tag.
A Marketplace-grade extension page
editors/vscode/README.md is rewritten for end users — install matrix,
capability tables, snippet library, settings ladder, troubleshooting —
with an icon and diagrams, and the manifest gains the Marketplace
metadata (icon, banner, keywords, categories). Troubleshooting now also
names the duplicate-hover trap: the pre-rename vfmt extension left
installed next to lucisv attaches a second language server, and every
hover and diagnostic shows twice. Uninstall vfmt and reload.
0.10.1 — 2026-08-27
The install-in-one-step release: the VS Code extension now ships as
platform-specific packages with the binaries inside, and the release
page carries exactly those packages — nothing to build, nothing to put on
PATH.
Platform packages for the VS Code extension
Five new .vsix packages — darwin-arm64, darwin-x64, linux-x64,
linux-arm64, win32-x64 — each embedding that platform's lucisv and
lucisv-server under bin/ inside the extension. Install the one
matching your machine with code --install-extension and the extension
spawns its own server; both Linux packages are statically linked (musl),
so they run on any distro, and linux-arm64 is a new build target
altogether. The extension resolves the server as: an explicitly set
lucisv.serverPath first, then the bundled binary (made executable on
activation — VSIX extraction drops the bit), then PATH — so pointing at
your own target/release build still works, and clearing the setting
falls back to the bundled server. The universal lucisv-<version>.vsix
(no binaries, server from PATH) remains the fallback for platforms
without a package. Details and the verification story:
docs/features/editor-platform-vsix/README.md.
The release page ships packages only
A tagged release now publishes the six .vsix files and SHA256SUMS,
nothing else. Every platform package is checked by name before publishing
— a missing one fails the release — and the per-platform binaries are
still built and audited (static-linkage, glibc ceiling, file types) since
the packages embed them, but no longer attached as loose assets: a
standalone binary is a cargo build --release away. The host package's
embedded server is smoke-tested through a full LSP session, straight out
of the zip, on every release.
0.10.0 — 2026-08-27
The audit-complete release: TODO.md §9c, the last section of the LSP 3.18 audit, shipped one feature per dev/QA/review round — plus the two cross-crate rounds the audit's findings demanded.
Go to type definition
From a name to its type's declaration: variable to typedef, handle to class, instance to module, signal to interface — one redirection into the same two-layer resolution F12 uses, cross-file included.
The semantic layer answers cross-file types (and only types)
Unqualified type-position misses now reach the workspace overlay, so
bus_if bus; and my_cls h; resolve into other files — including
inside extending (UVM-style) classes. Value-position identifiers
deliberately do not: QA proved a typo could otherwise rename an
unrelated same-named module cross-file, and the promotion was narrowed
to exactly the positions that name types. 418 corpus references gained
a jump target; none lost one. Cross-file interface rename works.
The parser accepts direction-less first ANSI ports
module m (bus_if bus, input logic clk); — the normal spelling for
interface ports — parses, along with modport-qualified and
package-scoped first ports. All 820 corpus files format
byte-identically to before, proven by hash on both sides.
Linked editing, code lens, on-type formatting
Closing labels (endmodule : m, end : blk) edit as one. Every
module carries an instantiation-count lens whose click jumps to the
sites. Typing ; reformats the finished statement through the
verified engine; a newline indents the new line through a model that
agrees with the formatter on 77k corpus lines.
Type hierarchy
Supertypes and subtypes over extends, one hop per request, riding
the overlay's cross-file resolution.
Renaming a file rewrites its includes
workspace/willRenameFiles rewrites every `include that
resolves to a moved file — resolution, never name matching — with a
three-check safety net that refuses rather than guesses, edits
addressed to pre-rename URIs, and directory renames for free.
Workspace folders and pulled configuration
Folders added or removed mid-session reindex on the spot; clients using the modern configuration-pull model get their settings through the same parser as the push, so the two can never drift.
Multi-range formatting
textDocument/rangesFormatting — the request VS Code's client
library was asking for all along — formats any set of ranges in one
verified pass, the same call the CLI's --lines a-b,c-d makes.
Snippet workspace edits and server-provided documents are assessed
and parked with evidence until a shipping client can consume them.
0.9.0 — 2026-08-26
The performance-model release: TODO.md §9b, the high-value half of the LSP 3.18 audit, shipped one feature per dev/QA/review round.
Incremental text sync
A keystroke now costs one range on the wire, not the whole file. Edits are applied by one pure function with clamping rules inherited from the existing position converter — a backwards range becomes a pure insertion, the only reading that cannot lose text — cross-checked against an independent reference model over 400 randomized edit sequences. One notification is still one reparse, one diagnostics generation, one publish.
Format on save (willSaveWaitUntil)
The protocol's native format-on-save hook, for editors without one of
their own. Off by default (lucisv.formatOnSave) so it never fights an
editor that already formats on save; when on, it is the formatting
request with a different trigger — same engine, same verified-output,
all-or-nothing contract. The one protocol gap (no editor tab size on
this path) is documented rather than papered over.
Semantic tokens: range and delta
semanticTokens/range answers just the lines the editor is showing;
full/delta answers edits against the previous result instead of the
whole token set. One tokenizer and one pure encoder serve full, range
and delta, proven byte-identical to the old encoder over a 41k-token
corpus file; the delta's single-edit diff carries the classic
prefix/suffix overlap trap, deliberately broken twice (dev and QA,
independently) to prove the suite catches it.
A progress bar on indexing
Every workspace rescan — the startup build included — now shows a real progress bar in clients that support one: what is being indexed, no invented percentages, and an honest file count when it comes down.
$/cancelRequest
The server reads its backlog in bursts and answers a request whose cancel arrived alongside it with RequestCancelled instead of computing it — completion requests a fast typist already outran no longer cost a parse each. Cancellation is stateless by construction: a cancel matters only next to its own request, everything else is dropped on sight, and no cancel can talk the server out of a shutdown. Enabled by the server's first thread — a 12-line forwarder that makes the client's backlog observable at all through lsp-server's rendezvous channels.
0.8.0 — 2026-08-26
The protocol-compliance release: the server was audited line-by-line against the LSP 3.18 specification (the full gap list is TODO.md §9), and the three findings that matter most shipped in one round.
Port commands now actually edit (workspace/applyEdit)
lucisv.addPort, lucisv.removePort and lucisv.propagatePorts invoked
as commands did nothing in every stock client: the server returned the
WorkspaceEdit as the executeCommand result, which the protocol does
not define and which vscode-languageclient and Neovim both drop. (The
code-action lightbulb path was never affected — those edits ride inline.)
The server now pushes the edit as a workspace/applyEdit request with a
label for the undo stack, answers null, and reads the client's verdict:
a refusal becomes an error popup naming the command and the editor's own
reason. A client that never advertised workspace.applyEdit keeps the
old return-the-edit behavior — for that one it is the only thing that
could ever work.
Pull diagnostics (LSP 3.17)
textDocument/diagnostic and workspace/diagnostic are served, from the
same parse+lint pass the push model publishes — one computation, two
deliveries, proven byte-identical in tests. Reports carry a resultId
and answer unchanged when nothing that feeds them has moved, so a
client re-pulling on focus changes costs nothing. A client that pulls is
pushed nothing at all — never both models for one client. Clients that
don't advertise the capability keep today's push behavior untouched.
Workspace reports cover the open buffers, which is the only scope this
server has ever diagnosed.
Expand selection (textDocument/selectionRange)
One keystroke grows the selection from the identifier through the
statement, the enclosing begin/end, the process, the module, out to
the whole file. Chains are built from what the server already computes —
token spans, the tolerant parse's item/statement spans, and the
rainbow's own scope-pair matcher, which keeps expansion working in the
half-edited files where you actually reach for it. Every step strictly
contains the last; a sweep over all 860 corpus files (6,880 positions)
holds the invariant everywhere.
0.7.2 — 2026-08-26
Honest columns, honest docs, and a CI that enforces the headline number.
Formatter: the printer's column survives multi-line raw text
Raw text that carries a string literal across a line break, and the
#( ... ) of a parameterized type reference, were emitted as a single
text node with embedded newlines — leaving the printer's column tracker
stale for the rest of the line, so later width checks broke
conservatively. Both now ride the Doc::Inline path, which resumes
measuring from the text's own last line. Bytes only change where the
stale column forced a spurious break: across the 813-file passing corpus
exactly one file improves (a = new; initializer after a multi-line
#( ... ) rejoins its line). Found by adversarial QA during 0.7.1's
directive-split round.
README truth pass
0.7.1's release page made the README wrong in three places, now fixed:
prebuilt downloads exist (five platforms + the .vsix per release, with
SHA256SUMS), tools/release.sh grew --cross a while ago, and the
sideload example no longer hardcodes 0.5.0. One claim was stale in the
other direction: the "server does not read lucisv.toml yet" caveat —
the server has read it since the config ladder landed; the README now
states the actual precedence (lucisv.toml > lucisv.* settings >
editor tab size > defaults). The README also now says plainly that
Linux/Windows artifacts are cross-built and audited, not executed.
.DS_Store is untracked and ignored.
CI: the corpus score is a gate, and releases audit their artifacts
The 99.1% corpus number is now CI-enforced: every push scores the
820-file corpus (pinned-rev cache on the runner) and fails on any drop
below scripts/corpus-baseline — and on any verification error or
crash, which are formatter bugs at any count. Release builds audit every
cross-built binary before publishing (tools/audit_artifacts.sh): the
musl build must be fully static, the linux-gnu build's glibc ceiling
must stay ≤ 2.28 (RHEL 8), and every file must be the object format its
name claims. Details: docs/features/ci-release/README.md.
0.7.1 — 2026-08-26
Conditional-split recovery and an automated release.
Formatter: `ifdef regions whose arms are half a declaration
A conditional region whose arms are each an incomplete fragment of one
construct — two alternative declaration heads sharing a single { ... };
body, or two typedef struct { bodies sharing one closing — used to be a
parse error. The strict parser now recovers the whole construct as a
verbatim item: exact source bytes, first line re-indented, nothing
inside reformatted (the constraint/covergroup/assertions precedent).
The trigger is deliberately narrow — it fires only when the failed arm
left a bracket open inside a region that is genuinely open at item scope,
where "at item scope" is structural: directives inside opaque bodies
(constraints, covergroups, properties) cannot influence it, and a
recovered block hands back exactly the nesting it swallowed. A stray
unmatched `endif, a forgotten ;, or any ordinary syntax error near
a directive still refuses with exit 2. The safety net (verify.rs) is
untouched — verbatim bytes need no new forgiveness. Corpus: 800 → 813 of
820 files (97.6% → 99.1%); the 13 gains are riscv-dv's
riscv_core_setting.sv (12 target variants) and riscv_instr_pkg.sv.
Every remaining failure needs macro expansion (a deliberate non-goal) or
is not valid standalone Verilog. Design, the three-round adversarial QA
history and the accepted residual risk:
docs/features/directive-split/README.md.
CI and releases
The repository now builds and releases itself on Gitea Actions
(docs/features/ci-release/README.md): every push runs
fmt/clippy/test on a self-hosted Apple Silicon runner, and pushing a
vX.Y.Z tag runs tools/release.sh --cross — Apple Silicon + Intel
macOS, static-musl and RHEL 8-compatible Linux, and Windows builds of
both lucisv and lucisv-server, plus the .vsix and SHA256SUMS —
and publishes a Gitea release with that version's CHANGELOG section as
its notes. A tag that does not match the workspace version, or has no
CHANGELOG section, fails instead of releasing.
0.7.0 — 2026-08-25
Ghost text grows up: aligned, and fluent in the constructs a designer actually types.
Snippets land aligned
The end of an accepted ghost snippet used to land one indent level deeper
than its opener: VS Code re-indents every snippet line after the first with
the trigger line's own indentation, and the server was baking that
indentation in as well. Ghost bodies are now indented relative to the
trigger line — the editor's own tabSize/insertSpaces place them, so
begin and end align in any indent style (lucisv.indent no longer sizes
them). The completion popup's multi-line skeletons had the same latent
double indent since 0.4.0; they keep their layout and now tell the editor
insertTextMode: asIs instead.
The designer trigger set
Ghost text now finishes: case (/casez (/casex ( with arms and
endcase; for ( with a dialect-correct header (int i in SystemVerilog,
i = i + 1 in Verilog); while (; always_ff @( with posedge clk;
always @( offering the clocked shape first and *) second (Alt+] cycles);
fork→join, generate→endgenerate, and module→named endmodule.
Every expansion is offered only while its construct is genuinely unclosed,
and every accepted expansion is proven to parse.
0.6.0 — 2026-08-25
The ghost-text release: the editor now finishes the block you open.
Inline templates (ghost text)
Type if ( and grey ) begin … end appears behind the cursor; type begin
at the end of a line and its end does. Tab accepts as a snippet — the
cursor lands in the condition first and on the indented body line second.
This is LSP 3.18 textDocument/inlineCompletion: token-based triggers (a
comment, a string or my_if never fire), offered only while the construct
is genuinely unclosed, indented to the site. lucisv.inlineTemplates: false
turns it off. The VS Code extension opts into the still-proposed client
feature; Neovim's built-in client does not speak it yet, and those users
keep the same skeletons in the completion list. Details:
inline-templates.
Scope matching is linear
pairs::analyze — the matcher behind the rainbow, the missing-end
diagnostic and the new ghost-text gate — was quadratic in nesting depth two
ways (the per-push depth scan, and a closer that matches nothing rescanning
the stack). Both are now running counts: 8,000 nested begins went from
629 ms to 2.3 ms per pass, on a path the ghost text runs at every
keystroke. Output is proven bit-identical on the corpus and by two
independent old-algorithm oracles kept as regression tests.
0.5.0 — 2026-08-25
The navigation release. 0.3.0 taught lucisv to change a project and 0.4.0
to complete what you are typing; this one is about reading one you did not
write — who instantiates this module, which file defines this macro, what does
this ordered connection actually connect, and what does this macro call turn
into.
Cross-file references, highlights and folding
textDocument/references now answers across files for every symbol the
workspace index holds — a module, a package, an exported member, a port — so
the list finally matches what rename had been able to change since it shipped;
a local wire still answers in-file, which is what keeps a signal named n
off a workspace walk. The cursor on a name highlights its declaration and every
use of it in the file (textDocument/documentHighlight), where before only a
begin/end pair answered. And every matched scope pair the rainbow already
computes is now a folding range, folded through the line before the closer
so end/endmodule stays on screen, plus one region per multi-line block
comment. Details:
references-nav.
Inlay hints on ordered connections
An ordered connection list writes the values and leaves the names to your
memory. textDocument/inlayHint now draws each port's name as ghost text
before the expression it belongs to — clk:, rst_n:, data: — and does the
same for a positional #( ... ) parameter override, from the same
instantiation plan the completion and signature help already read. Nothing is
written into the buffer, and every uncertainty (a module the index does not
hold, a name two files declare, a connection past the last port, a buffer that
does not parse) draws no hint rather than a guess: a wrong port name in ghost
text is worse than none. Details:
inlay-hints.
The index keeps up with the disk
The server registers for workspace/didChangeWatchedFiles and rebuilds its
index when files change outside the editor — a git pull, a branch checkout, a
generator's output, or an edit to the .f filelist itself. Until now the index
was rebuilt on save, so cross-file answers could quietly describe a tree that
no longer existed. Details:
file-watching.
`include is a real edge now
An `include line is clickable: textDocument/documentLink underlines the
quoted path and textDocument/definition jumps to the file, resolved through
the including file's own directory and then each +incdir+ of the configured
filelist in order (the <angled> form skips the first rung). The same graph
makes hover on `NAME prefer the definition the hovered file actually
reaches through its includes — the first thing lucisv has that can order two
definitions of one macro name. Where the graph orders nothing, the honest
all-candidates list from before still stands. Details:
include-nav.
Module hierarchy
"Who instantiates this module?" and "what does this module instantiate?" are
answered over LSP's call hierarchy, which is the same graph under different
names: textDocument/prepareCallHierarchy picks the module under the cursor,
callHierarchy/incomingCalls lists its instantiation sites and
callHierarchy/outgoingCalls lists what it builds. Every editor draws the tree
with its own hierarchy view, one hop per request, so a recursive design simply
unrolls as far as you keep clicking. Details:
hierarchy.
The first semantic lint rules
Three rules written against the symbol table rather than the syntax tree —
unused-signal, undriven-net and multiply-driven — the ones a syntax-only
linter structurally cannot write, because each needs to know which declaration
a name refers to. All three are off by default and are opted into with
--select: they are diagnose-only, they see one file at a time (a signal
driven by a cross-module connection is not yet visible to them), and a semantic
rule that cries wolf costs an engineer a debugging session and their trust in
the tool. A default lucisv check is byte-for-byte what it was, and pays nothing
for the analysis it does not run. Details:
semantic-lints.
lucisv -f project.f
The CLI gets the front door the language server got in 0.3.0: lucisv -f project.f formats or checks exactly the files an EDA filelist names, nested
-f and $VAR expansion included. The flag is repeatable and combines with
positional paths; a path the filelist names is a named path, so --exclude
and .gitignore do not filter it away. Details:
cli-filelist.
Hover expands a macro call
Hovering a macro use still shows the definition — signature, body, and the file
and line it came from — and now shows, under it, what this call expands to:
the body with the call site's arguments substituted for the parameters. It is
deliberately one step. A nested `INNER inside the body keeps its name,
and the card says so; `" and `` pass through as written; string
literals and escaped identifiers are not substituted into. An argument count
that does not match the parameter list expands nothing at all rather than
guessing, and where hover lists several candidate definitions there is no
winner to expand. lucisv still does not preprocess — this is bookkeeping shown in
a tooltip, and the formatter cannot see it. Details:
macro-expansion.
Editors
No new settings. Everything above arrives through the server, and the VS Code extension needed only the capabilities it already forwards.
0.4.2 — 2026-08-24
#200 is a delay, not a colour. VS Code 1.78+ ships a built-in
"default colour decorators" provider (editor.defaultColorDecorators,
default auto): in a language where no extension provides document
colours, the editor itself pattern-matches CSS-style hex — so a delay
control like #200 or #1ff grew an RGB swatch. The extension now sets
the language-scoped default "editor.defaultColorDecorators": "never"
for [verilog] and [systemverilog]. It is a default, not a lock: a
user who wants swatches back can override it per language in their own
settings. Nothing else changed.
0.4.1 — 2026-08-24
Hover cards are syntax highlighted. The server has always sent its
declaration snippets and `define expansions as fenced
```systemverilog blocks, but VS Code colours a fenced block with the
TextMate grammar registered for that language id, and the extension
deliberately shipped none — semantic tokens colour the buffer, and they cannot
reach markdown. So every hover card, and every completion template's
documentation panel, rendered as flat grey text. The extension now contributes
one compact grammar, registered for both verilog and systemverilog:
comments, strings, based and real literals (8'hFF, 4'b10xz, '0, 1.5e-3,
10ns), system tasks ($display), compiler directives and macro uses
( `define, `WIDTH), and the keywords — all 181 of them, generated from
the lexer's own list, with a test that fails the build if the two ever drift
apart. Operators and (* attributes *) are deliberately left out; the reasons
are in
editor-packaging.
The side benefit is a buffer that has colour before the server starts, in a file the server is not indexing, and in a diff or a git preview where no language server runs at all. Where the server is running its semantic tokens still win, as they always did: the grammar only fills in what nothing better has coloured.
0.4.0 — 2026-08-24
Completion now offers templates, not just words. Typing if inside an
always block offers if begin/end above the bare keyword, and accepting it
writes if (cond) begin / body / end at the line's own indentation with the
condition selected and TAB moving into the body; if/else, else if, case
and casez with a default arm, for, while, always_ff (with and without
an async reset), always_comb, always @(...), initial and the everyday
declarations (logic, reg/wire, localparam, parameter) are all there
too. Every template is gated by position — a statement is only offered
where a statement may be written, an always block only at module-item
position, a declaration at both — and by dialect: a .sv file is offered
logic and always_ff, a .v file reg/wire and always @(posedge clk),
so nothing on the list is code the buffer's own compiler would reject. A client
that does not understand snippets gets the same skeleton with its defaults
filled in rather than a buffer full of ${1:…}. Every template's untouched
expansion is parsed by lucisv's own parser in the test suite, which is what keeps
the list honest. Details:
completion-templates.
Because these come from the server, both editors get them, and the VS Code
extension's own static snippets shed the nine that would otherwise have been
offered twice (always_ff, always_comb, case and initial from the
SystemVerilog file; always, alwayscomb, case, for and initial from
the Verilog one). The file-level templates it is actually good at —
module, tb, fsm, interface, function, task, genfor, guard and
the rest — stay exactly where they were, and still work with no server running.
Details: editor-snippets.
0.3.1 — 2026-08-24
A fix for the begin/end rainbow, which could make the keywords it was
supposed to colour invisible. The extension painted each nesting level with
editorBracketHighlight.foreground1..6, VS Code's own bracket colours — but
only the first three of those have a visible default: foreground4, 5 and
6 default to fully transparent and are left for themes to define, which most
themes never do. Any begin/end at nesting depth 3, 4 or 5 was therefore
painted transparent, and the keyword vanished from the screen. The rainbow now
uses its own colours, lucisv.rainbow1 … lucisv.rainbow6, contributed by the
extension with an opaque default for dark, light and both high-contrast themes;
they appear under Workbench → Appearance → Color Customizations like any other
theme colour, so a theme or a workbench.colorCustomizations entry can still
override them. Levels 1–3 keep VS Code's familiar bracket hues so nothing
changes for the depths that already worked.
The same round makes the other half of the story visible: lucisv/scopePairs now
also reports unmatched block delimiters — a begin whose end never
arrived, an end that closes nothing — and the extension paints them in a
bright error red (lucisv.rainbowUnmatched) instead of leaving them as ordinary
uncoloured text. Typing a fresh begin now shows red until its end exists,
rather than showing nothing at all. Matched pairs, their nesting depths and the
missing-end warnings are unchanged. Details:
editor-scopes.
0.3.0 — 2026-08-24
The refactoring release. 0.2.0 shipped a formatter, a linter and a language
server that could read a project; this one can change it — rename across
files, add and remove module ports everywhere they are connected, generate an
instantiation from the module's own declaration — and can finally complete what
you are typing.
Project scope: filelists
lucisv now accepts a standard EDA filelist (-f style: one path per line,
nested -f, +incdir+/+define+, # and // comments, $VAR/${VAR}
expansion, unknown +args/-flags skipped with a warning). When one is
configured — lucisv.filelist in the editor, or a filelist key in lucisv.toml
— it defines exactly the set of files the language server indexes, which is
what a project with a build already says out loud. Without one the scope ladder
falls back to the workspace-folder walk, and, when no folder was opened at all,
to the directory the open file sits in. A filelist that cannot be read falls
back with a warning rather than leaving the editor silently empty. Details:
filelist.
Rename
textDocument/rename and prepareRename across every symbol the semantic
layer resolves — nets and variables, ports, parameters and localparams,
genvars, typedefs, enum members, struct fields, functions and tasks, modules,
instances, packages and class members — and across files, so a module rename
reaches every instantiation and a package member reaches every import site.
Every edit comes from a resolved reference span; there is no textual
search-and-replace anywhere in it. The rename refuses rather than guesses: on a
collision with an existing name in any affected scope, on an invalid
identifier, and whenever any touched file would no longer parse — whole-edit-
or-nothing, the same contract the formatter has always had. Occurrences inside
a `define body or an `ifdef-excluded arm are reported as a warning and
left alone, because lucisv does not preprocess. Details:
rename.
Module signature changes
Three code actions (and the matching workspace/executeCommand entry points,
for editors without a lightbulb): add a port to a module, which updates the
declaration — ANSI or non-ANSI — and gives every instantiation a named
connection, bound to a same-named signal when one is in scope; remove a
port, which drops it from the declaration and from every instantiation,
turning an ordered connection into an explicit empty position and refusing when
the connected expression has side effects worth preserving; and propagate
ports, which diffs a module against each of its instantiations and adds the
missing named connections. Every touched file is re-parsed before the edit is
offered. Details: ports.
Module hinting and signature help
Typing a module name at item position now completes to the whole
instantiation, generated from the definition the workspace index found:
parameter overrides carrying their declared defaults, every port as a named
connection, the ports with a same-named signal in scope already bound and the
rest left as snippet tabstops to tab through. A client that does not advertise
snippetSupport gets the same text with every hole filled in and no ${}
anywhere, and a plan containing an escaped identifier is always plain text —
$, } and \ are legal inside one and are the snippet grammar's own
punctuation. Inside a connection or parameter list, textDocument/signatureHelp
names the ports with their directions and types and highlights the one under
the cursor. Details:
module hinting.
Completion
The completion list is no longer only about instantiations. One response now
carries, in this order: the module skeleton where one belongs, the declarations
the scope chain at the cursor binds (with their real kinds and the line they
were declared on), what the project declares — packages, package members,
typedefs, classes, modules and `define names — every reserved word the
lexer knows, and finally every identifier used anywhere in the project, the
word-completion tier editors have trained everyone to expect. A name appears
once, offered by the best tier that has it. Nothing is offered while the cursor
is inside a comment or a string, and a name that appears only inside one is
never a candidate: the word list is harvested from the token stream, where
comments are trivia and a string is a single token. Scope is the filelist
ladder's, so a file the project does not build contributes nothing. The tables
are built with the workspace index rather than per keystroke — 860 real-world
files answer a request in about 300 µs. Details:
completion.
Editors
One new setting, lucisv.filelist, forwarded like the rest of lucisv.*.
Everything else in this release arrives through the server, so no editor
configuration changes.
0.2.0 — 2026-08-19
The first released version. 0.1.0 was the workspace's initial version number
and was never tagged or published, so these notes describe lucisv as it stands
rather than a delta against a shipped predecessor.
lucisv is a formatter, a linter and a language server for Verilog-2001 and the
synthesizable SystemVerilog subset — one parser and one style engine behind a
CLI (lucisv) and an LSP binary (lucisv-server).
Formatter and the safety net
Formatting is Wadler/prettier-style: every breakable construct is a group that
stays on one line if it fits within the line limit and otherwise breaks
one element per line, over the full statement, expression, declaration,
instantiation, generate, function/task and typedef grammar. Defaults follow
Verible — 2-space indent, 100-column lines. Comments are attached as leading
and trailing trivia and are never dropped. Every format is verified at
runtime: the output is re-lexed and its token stream (comments included)
compared against the input, then formatted a second time and checked for a
fixed point; if either check fails the output is discarded and the file is
left byte-for-byte untouched. // verilog_format: off / // lucisv: off fences
return the enclosed items as their exact source bytes, indentation included.
Deep nesting is a normal parse error with a position rather than a stack
overflow. Details: formatter,
safety net,
fences,
comment attachment and
round 2,
case tables,
spans,
recursion limit.
Command line
lucisv <paths> formats files and directories in place. --check and --diff
are the CI modes (exit 1 if anything would change, nothing written); - reads
stdin, with --stdin-filename naming the buffer. Directory walks honor
.gitignore (a documented subset) and repeatable --exclude patterns, and run
on all cores — --threads N pins the worker count without changing a single
output byte, since results are collected in input order. Settings live in a
lucisv.toml / .lucisv.toml discovered upward from each input, ruff-style, with
CLI flags taking precedence per setting; an unknown key or a bad value is a
hard error naming the file and line. The exit-code contract (0 / 1 / 2) is
frozen and documented. A panic on one file cannot take down the run. Details:
CLI,
config discovery,
parallel walk.
Linter
lucisv check is a ruff-shaped linter over the same files, the same walk and the
same config discovery as the formatter: a rule registry, --select / --ignore,
--output-format json, and fixes classified safe or unsafe with --fix
applying only the safe ones. Eight syntactic rules ship — no-tabs,
no-trailing-whitespace, case-missing-default, always-ff-non-blocking,
always-comb-blocking, explicit-parameter-storage-type, module-filename
and unused-waiver. Inline waivers use Verible's spelling
(// lucisv: waive <rule>, waive-start / waive-stop, with verilog_lint:
accepted as an alias), so code already annotated for Verible lints unedited.
check runs on the error-tolerant parser, so a file the formatter refuses is
still linted for what can be read. Violations inside a format fence are
reported but never auto-fixed, by the same shared computation the formatter
uses. Details: linter,
shared fence filter,
error recovery.
Language server
lucisv-server speaks LSP over stdio from a single binary and serves every
editor the same answers: textDocument/formatting (honoring the file's own
lucisv.toml, which wins over the editor's tab size), parse errors and lint
warnings in one diagnostic publish per change, codeAction quick fixes
plus source.fixAll.lucisv for fix-on-save, semanticTokens/full, hover
(declaration snippets and `define expansion, in-file and across the
workspace), go-to-definition, in-file references, and document and workspace
symbols. Underneath it are a single-file semantic model (scopes, symbols,
references) and a workspace index that resolves names arriving through package
imports and module instantiations across files. Not yet advertised, and said so
out loud: range formatting, cross-file references, completion, rename and
signature help. Details: server,
lint wiring,
semantic model,
workspace index,
define table,
name spans,
shared core.
Editors
A thin VS Code extension in editors/vscode/ registers the file types
(.v/.vh → verilog, .sv/.svh → systemverilog) and starts the server;
it has one setting, lucisv.serverPath, and no language logic of its own —
everything a user sees comes from the server. Install it by building the
.vsix and sideloading it (tools/release.sh, then
code --install-extension); publishing to a marketplace is optional and
deferred. editors/nvim/README.md documents the equivalent Neovim 0.11+,
nvim-lspconfig, Vim 9 vim-lsp and coc.nvim configuration — no plugin
needed. editors/vscode/smoke.js is a zero-dependency check that spawns the
server exactly as the extension does and drives a full LSP session, so a
failure can be pinned on the binary or on the editor config without guessing.
Details: editor packaging.
Real-world corpus
lucisv is measured against an 820-file corpus of open-source RTL
(picorv32, ibex, common_cells, OpenTitan) rather than against its own fixtures
alone. At this release 476 of 820 files (58.0%) parse and format cleanly,
with zero verification errors and zero crashes — every file lucisv cannot
handle is a documented parse error, never a corrupted output. The remaining
gap is unsupported syntax, ranked by measured impact in README.md's roadmap:
classes/constraints (the largest block, and mostly DV rather than RTL), bind,
dynamic arrays and queues, identifier-typed declarations, then concurrent
assertions and DPI. Macro invocations at module-item and statement position and
compiler directives inside port, parameter, enum, override and connection lists
were the two blockers closed during this cycle; no corpus file is blocked on a
compiler directive any more. Details:
corpus check,
corpus bugs,
macro items,
directives in lists and
in instances.