Files
lucisv/CHANGELOG.md
T
lucioandClaude Fable 5 b7a934080a
ci / checks (push) Successful in 52s
ci / corpus (push) Successful in 22s
release / build-and-publish (push) Successful in 4m54s
Release 0.14.0 — the first-hover release
Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-28 20:22:30 -07:00

52 KiB
Raw Blame History

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.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.