• v0.47.0
    ci / checks (push) Successful in 59s
    ci / corpus (push) Successful in 32s
    release / build-and-publish (push) Successful in 6m9s
    Stable

    lucio released this 2026-09-05 21:04:14 -07:00 | 139 commits to master since this release

    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, and lucisv.organizeImports. "Used"
      is the binder's own lookup, read as a superset — over-keeping is the
      safe direction — and an export 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
      new unused-import rule (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, a typedef of the
      source module, …). refactor.extract code 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.
    Downloads