Release 0.32.0 — bind semantics, macro and directive residues, lucisv.instantiate
release / build-and-publish (push) Successful in 6m14s

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-09-02 13:21:09 -07:00
1 parent 81df63d942
commit baf0bf16f0
6 files changed
+74 -11

No files matched your search

+41
View File
@@ -4,6 +4,47 @@ All notable changes to lucisv are recorded here. Versions follow
[semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes
(see `README.md`) are the only frozen contract.
## 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
`.port` half 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
finds `top_sig` in the target.
- The index store format changed (`FACTS_FORMAT` 15); 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 two `padring` instantiations in `chip_earlgrey_{asic,cw340}.sv`
lay out canonically and gain their edges; the `` `ifdef `` that
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 through
`workspace/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
Generated
+8 -8
View File
@@ -97,7 +97,7 @@ dependencies = [
[[package]]
name = "lucisv"
version = "0.31.0"
version = "0.32.0"
dependencies = [
"lucisv_core",
"rayon",
@@ -108,11 +108,11 @@ dependencies = [
[[package]]
name = "lucisv_core"
version = "0.31.0"
version = "0.32.0"
[[package]]
name = "lucisv_server"
version = "0.31.0"
version = "0.32.0"
dependencies = [
"lsp-server",
"lsp-types",
@@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "vlog_formatter"
version = "0.31.0"
version = "0.32.0"
dependencies = [
"vlog_parser",
]
[[package]]
name = "vlog_linter"
version = "0.31.0"
version = "0.32.0"
dependencies = [
"vlog_formatter",
"vlog_parser",
@@ -264,11 +264,11 @@ dependencies = [
[[package]]
name = "vlog_parser"
version = "0.31.0"
version = "0.32.0"
[[package]]
name = "vlog_refactor"
version = "0.31.0"
version = "0.32.0"
dependencies = [
"vlog_parser",
"vlog_semantic",
@@ -276,7 +276,7 @@ dependencies = [
[[package]]
name = "vlog_semantic"
version = "0.31.0"
version = "0.32.0"
dependencies = [
"vlog_parser",
]
+1 -1
View File
@@ -12,7 +12,7 @@ members = [
]
[workspace.package]
version = "0.31.0"
version = "0.32.0"
authors = ["Guoliang Chen"]
edition = "2021"
license = "MIT"
+14
View File
@@ -5,6 +5,20 @@ for you. The extension and its bundled language server share one version
number; the full engineering notes live in the
[project changelog](https://git.luci.ooo/lucio/lucisv/src/branch/master/CHANGELOG.md).
## 0.32.0 — 2026-09-02
- **`bind` directives resolve.** Indexed targets (`bind top.gen[0].u_core …`)
parse and format; a lone target is a jump to the module; hover on a
bind's connections finds the port in the bound-in module and the
signal in the *target* module.
- A spaced macro call in an expression (`` `WIDTH (a + b) ``) and a
`` `ifdef `` inside a connection value no longer leave a file
unformattable; the instantiation keeps its code lens and references.
- **`lucisv.instantiate`** command for editors without inline
completion (Neovim): inserts the same instantiation skeleton the ghost
text offers. See the Neovim README for a keymap.
- The index store format changed; it rebuilds once after updating.
## 0.31.0 — 2026-09-02
- **Comments survive everywhere.** A comment written between two tokens
+9 -1
View File
@@ -30,7 +30,7 @@ Install **lucisv — Verilog/SystemVerilog** from the VS Code Extensions view,
then open a Verilog or SystemVerilog file. There is no separate server or CLI
setup.
The current release is **0.31.0**. Its platform packages include both
The current release is **0.32.0**. Its platform packages include both
`lucisv-server` and the `lucisv` command-line tool:
| Package target | Machines |
@@ -326,6 +326,14 @@ Every nesting color is a proper VS Code theme color:
}
```
## Release 0.32.0 highlights
Version 0.32.0 gives `bind` directives real semantics — indexed targets,
connections resolved in the target module — keeps a spaced macro call
and a `` `ifdef `` inside a connection from making a file unformattable,
and adds the `lucisv.instantiate` command so Neovim users get the
instantiation skeleton too.
## Release 0.31.0 highlights
Version 0.31.0 makes "comments are never dropped" true at every gap of
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "lucisv",
"displayName": "lucisv — Verilog/SystemVerilog",
"description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.",
"version": "0.31.0",
"version": "0.32.0",
"publisher": "guoliangchen",
"author": "Guoliang Chen",
"license": "MIT",