• v0.67.0
    ci / checks (push) Successful in 1m26s
    ci / corpus (push) Successful in 18s
    release / preflight (push) Successful in 4s
    ci / linux (push) Successful in 6m7s
    release / linux (push) Successful in 6m6s
    release / build-and-publish (push) Successful in 6m7s
    Stable

    gitea-actions released this 2026-11-26 23:23:11 -08:00 | 0 commits to master since this release

    Twelve bug-fix rounds, measured against 0.66.2

    0.67.0 is everything since 0.66.2: twelve rounds of correctness, ordering,
    hardening and hygiene fixes, each with its own dev round, QA round and lead
    review, and a before/after performance report on OpenTitan hw
    (docs/performance_take6.md). Each paragraph below names the feature README
    that holds the detail. Three things to know before upgrading:

    • Formatted output changes. Over OpenTitan hw the formatter's output
      differs from 0.66.2 in 413 files in the default style, 576 under
      --style auto and 972 under --style lowrisc; no file gained or lost a
      diff, and verification failures are 0 in every style, as before.
    • One new lint rule is on by default (missing-port-direction, an Error),
      and two rules report differently; see Linter.
    • Saved state is rebuilt once. The persisted index (FACTS_FORMAT 22 → 23)
      of both the language server and lucisv-mcp --index-cache is discarded and
      rebuilt on first start, and the format cache's lines are re-keyed, so the
      first lucisv run after upgrading has no cache hits.

    Formatter and safety net

    • #(…) parameter ports and named parameter overrides are aligned like
      every other list: type, name and = in columns under both infer and
      always alignment (docs/features/format-alignment-overrides-r6). Every
      file Take 6 sampled from the output change above shows it; class parameter
      headers are unchanged.
    • lowrisc sets named connections tight to the widest name: the widest
      name's ( follows it directly (.err_o(…)) and narrower names are padded
      to that column (.tl_i (tl_i)). This is a new connection-align-min knob,
      0 for lowrisc and 1 for every other preset.
    • Selective [format] overrides. begin, else, else-after-label,
      port-lists, list-indent, alignment and connection-align-min in
      lucisv.toml (and the matching lucisv.format.* editor settings) layer
      over any named preset, and over every candidate under style = "auto". The
      CLI, the language server and the MCP format tool all honour them. Every
      effective knob is now part of the format cache key, so toggling one
      re-formats; older cache lines are dropped as stale.
    • Multi-instance declarations (p1 u8 (…), u9 (…);) break symmetrically
      under the one-per-line styles (google, lowrisc, microsoft, nxp)
      instead of the hanging layout; lucisv and ansi output is unchanged
      (docs/features/parser-formatter-r5).
    • Files that used to be left unformatted now format: a comment between a
      generate end and else, an `ifdef (balanced, or a conditional
      else arm) between end and else in procedural and generate if, and
      attributes on ANSI ports ((* keep *) input a).
    • The parser is stricter where it was silently lenient: empty elements in
      concatenations, replications, streaming and assignment patterns
      ({d,, d}, {d,}, '{4{a,, b}}), in case item lists (case a,, b:)
      and a trailing , after a named call argument (f(.a(x),)) are now parse
      errors, so such a file is reported and left as it is. Omitted positional
      arguments (f(a, , b)) are still accepted.

    CLI

    • --style auto is twice as fast: the file is parsed once for all six
      candidate presets and only the winner is verified. OpenTitan hw,
      --check --no-cache: 5 564 → 2 806 ms median, user CPU 49.9 → 21.2 s,
      peak RSS 981 → 699 MiB (docs/features/parser-formatter-r5, Take 6).
    • --output-format json works in format mode (lucisv, --check,
      format): one JSON document with status, exit_code, summary and one
      entry per file, with the error's category, line and column. It refuses
      --diff, --stdout and stdin without --check. Exit codes are unchanged
      (docs/features/cli-path-r5).
    • Stdin honours the project config: - / --stdin-filename applies the
      discovered lucisv.toml alike in format and check, including [lint] select and ignore in check; an empty --stdin-filename "" is refused.
    • Path normalisation (. and ..) is one shared function in lucisv_core
      for filelists, config discovery, includes and the CLI; behaviour is
      unchanged, including Windows drive and UNC roots.

    Linter

    (docs/features/linter-hardening-r7.) 75 rules now (8 error, 24 warning,
    43 style). On OpenTitan hw, lucisv check goes from 1 182 to 1 178
    findings:

    • New: missing-port-direction (Error, on by default, no fix) reports a
      non-ANSI header port that no body declaration gives a direction. It stays
      silent when the body holds a macro item, an `include, a verbatim or an
      error item. It reports 0 on OpenTitan hw.
    • suspicious-semicolon exempts the drain idiom while (<call>);
      (while (fifo.try_get(item));), only when the whole condition is one call:
      −5 findings on OpenTitan. while (busy); and while (!q.try_get(x)); are
      still reported.
    • incomplete-assignment sees a miss in a nested if, and counts a
      fully enumerated case without default as complete only when its selector
      is proven to be that wide: +1 finding on OpenTitan, a real latch
      (rom_ctrl/dv/tb/tb.sv:158).
    • mismatched-labels handles initial lbl : begin … end : lbl, and
      offers an Unsafe fix that renames a wrong footer to the header's name
      (CLI --fix --unsafe-fixes only; the editor and MCP apply Safe fixes only).
    • Rule options in [ … ] lists split on commas outside quotes only, and a
      naming-pattern regex nested more than 64 groups deep is refused by name
      instead of overflowing the stack.
    • Withdrawn during the round, not shipped: an autofix for
      uvm-macro-semicolon (it corrupted code in three QA passes; the rule offers
      no fix, as before) and a nested-loop exemption for instance-shadowing
      (it hid the bug the rule exists for; the 30 OpenTitan hits stay).

    Language server

    • Rename, code-action resolve, executeCommand and willRenameFiles wait
      for a running scan to finish
      instead of running against a partly built
      index (a module declared twice no longer gets an edit or a refusal at
      random); read-only answers from the open buffer still go ahead
      (docs/features/server-ordering-r1).
    • Rename and port edits carry document versions (documentChanges) when
      the client supports them, so an editor can refuse an edit computed against
      text it no longer has. A settings push older
      than the answer to the startup settings pull no longer overwrites it.
    • The index follows open and closed buffers exactly
      (docs/features/index-lifecycle-r2): closing an excluded or unlisted file
      removes it, closing an unsaved in-scope file reverts its record to disk, a
      buffer opened mid-scan is taken in as if opened before, a large open buffer
      keeps its disk record, and a symlinked file is held under one spelling
      whichever alias is open.
    • Colours refresh exactly when they change (docs/features/lsp-viewport-folding-r9):
      a save that changes how another open file colours (a package type renamed,
      a class declared) now refreshes it, and a range answered during a rescan no
      longer buys a refresh when the settled answer is the same.
    • A rescan answers between slices of its discovery walk (512 entries per
      slice; docs/features/server-scaling-r10). On OpenTitan hw a settings
      rescan takes 703 → 642 ms median, a documentSymbol sent 5 ms into it
      waits 133 → 2.8 ms, and the store is no longer re-opened (70 → 0 ms).
      On 40 000 files the rescan is 12 % faster.
    • Refactorings: a rename inside a string with an escaped non-ASCII character
      no longer panics; macro-argument carrying is deterministic; renaming a
      member of a module declared in two files is refused instead of guessed;
      remove port no longer counts another module's .port(…) in the same file
      as a use; extract module keeps CRLF line endings
      (docs/features/refactor-correctness-r1).
    • Semantics (docs/features/semantic-refactor-r8): a DPI export's name is a
      reference; escaped identifiers are in the word census, so a file that only
      writes \my.sig is found (completion does not offer them); an interface's
      named generate blocks are reachable through its ports; an inline nested
      struct member resolves; a rename through bind handles a bare-instance
      target and no longer mistakes a generate-scoped instance for the module's
      own; and the refactoring verifier checks each edit of a move on its own.

    MCP server

    (docs/features/mcp-hardening-r3.)

    • find with refs: true reuses cached file facts: on OpenTitan hw,
      warm, 2.4× faster for a qualified name (1 115 → 474 ms), 2.6× for one
      declaration (1 099 → 415 ms) and 3.8× for a name with 300+ declarations
      (7 800 → 2 032 ms), with byte-identical answers. A qualified unit.name
      query is scoped to that unit.
    • check accepts a directory or a glob under a root (ip/aes/rtl,
      ip/aes/rtl/*.sv); unused waivers are reported for the whole design only.
    • A file whose modification time is in the future settles instead of being
      re-read on every call; initialize no longer announces an empty
      prompts capability.

    Windows

    • UNC workspaces work (docs/features/windows-uri-editors-r11). The
      server reads and writes file://server/share/… URIs in VS Code's form
      (before, they were mangled in both directions), sees through \\?\ paths,
      and returns \-separated paths. This is compile- and link-checked only,
      never executed on Windows
      : every Windows rule was tested as string code on
      macOS.
    • The Windows index cache key changes once: the workspace root's spelling
      changes (c:/proj → c:\proj), so the index is rebuilt on first start
      after upgrading and the old cache directory is left unused.
    • On every platform, a \ in a file name is now written %5C and a URI's
      ?query#fragment is no longer read as part of the path.

    Editors

    • VS Code: the lucisv.format.* override settings above, a toggle for
      missing-port-direction, lucisv.mcp.path pointing at a directory finds
      lucisv-mcp.exe on Windows, a failing module-view action shows a warning,
      and the README's settings table is corrected (scopeDepth default 2, the
      eight lucisv.format.* rows). Neovim README: references are
      workspace-wide and --stdio is accepted. editors/vscode/CHANGELOG.md has
      the editor's view.

    Performance (docs/performance_take6.md)

    Beyond the numbers above, every other CLI and LSP phase shows no measurable
    change; the language server's idle memory after a cold workspace scan fell
    531 → 479 MiB (not attributed). Three regressions were found and bisected;
    none is fixed in 0.67.0:

    • Formatter peak memory with all workers rose by about 90–100 MiB
      (default 568 → 654 MiB median, lowrisc 574 → 674 MiB; with --threads 1
      it fell 291 → 252 MiB). Cause confirmed, from Round 5: the input's syntax
      tree is kept alive while the output is verified. Left as is.
    • didOpen of a file over index.maxFileSize costs about 14 ms more
      (OpenTitan's 1.3 MB pinmux_reg_top.sv: 60–74 → 76–84 ms), from Round 2's
      symlink identity map; about 8 ms of it is confirmed.
    • workspace/symbol costs about 2 ms more (1.4–3.2 → 3.8–6.7 ms, same
      256 results), from Round 2; the cause is a candidate, not confirmed.

    Project hygiene

    • CI and release gates (docs/features/ci-gates-r4): cargo test runs under
      tools/guard.sh on macOS and Linux, author stamps are a gate step, a
      missing cross toolchain fails gates.sh unless --allow-skip-cross, and a
      release checks tag and versions in a fast preflight job and runs the suite
      on Linux before building.
    • Five more pure-move splits and 23 test modules moved out of their files;
      no production file is over 600 lines, and every #[ignore] says why
      (docs/features/hygiene-splits-r12). Documentation and the site sources
      were re-synced (docs/features/docs-sync-r4).
    • Gates on the release tree: tests passed per crate — vlog_parser 527,
      vlog_semantic 453, vlog_refactor 793, vlog_formatter 383,
      vlog_linter 710, lucisv_core 129, lucisv 162, lucisv_server 2263,
      lucisv_mcp 400; doc-tests 1, extension 37; corpus 814 / 6, unchanged.
      OpenTitan hw: 4 039 of 4 046 files format cleanly in every style, 0
      verification failures.
    Downloads