From 72ff5df1cc85846bbc96dc29ccaa18a654940cce Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Wed, 23 Sep 2026 12:18:45 -0700 Subject: [PATCH] =?UTF-8?q?Release=200.56.0=20=E2=80=94=20rename=20keeps?= =?UTF-8?q?=20implicit=20connections=20bound;=20lucisv-mcp=20preview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Version bump (workspace Cargo.toml, Cargo.lock, editors/vscode/package.json) and the 0.56.0 notes in CHANGELOG.md, editors/vscode/CHANGELOG.md and the extension README. Ships M3.5 (rename writes out `.name`/`.*` bindings, verified by a binding print; the LSP hands the engine one more hop) and the MCP block's M1–M3 as a `cargo build --release -p lucisv_mcp` preview — not yet in the .vsix (TODO-MCP M5). Gates through tools/guard.sh: fmt, clippy -D warnings, workspace 4 762 passed, corpus 814/820 (baseline 814). Co-Authored-By: Claude Fable 5.1 --- CHANGELOG.md | 53 +++++++++++++++++++++++++++++++++++++ Cargo.lock | 18 ++++++------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 13 +++++++++ editors/vscode/README.md | 8 +++++- editors/vscode/package.json | 2 +- 6 files changed, 84 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d57e9e0..b11c395 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,59 @@ 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.56.0 — 2026-09-23 + +### Rename keeps implicit connections bound; the MCP server, as a preview + +- **Rename no longer cuts a `.name` or `.*` connection.** Renaming a + port `d` → `din` of `leaf` used to leave `leaf u (.*)` binding nothing + and turn `.d` into `.din` against a parent with no net `din`; 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: `.d` becomes `.din(d)`, a `.*` that bound the + port gains `.din(d)` beside it, and a renamed net `n` → `m` gives + `.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 by `ifdef`s, a hierarchical `bind` target, + 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. A `bind` onto a bare instance name resolves + through the instance table, so `clk_i`/`rst_ni`/`err_o` renames beside + opentitan's fifo binds succeed. On opentitan copies: `prim_count`'s + `err_o`, `aes_core`'s `clk_i` and `entropy_src`'s `clk_i` rename cleanly + with their `.*` cov binds written out; `prim_fifo_sync`'s `clr_i` is + 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 or `always` block — not the file), `search_symbols`, + `defines`, `definition`, `references`, `hierarchy`, `diagnostics` + (what `lucisv check` says, with the CLI's JSON field names), and the + edit tools `format`, `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, with `dry_run` + returning 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 `.vsix` and not yet reading the editor's index + cache — those are the next lanes (`docs/mcp/PLAN.md`, `TODO-MCP.md`; + feature READMEs `docs/features/mcp-*`). +- **CLI:** `--diff` output is unchanged; its printer now lives in + `lucisv_core::diff`, shared with the MCP server's `dry_run`. + ## 0.55.0 — 2026-09-17 ### Loop 3, round 2 — find-references reaches a module's internals diff --git a/Cargo.lock b/Cargo.lock index 7caa8c1..9109781 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.55.0" +version = "0.56.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.55.0" +version = "0.56.0" [[package]] name = "lucisv_mcp" -version = "0.55.0" +version = "0.56.0" dependencies = [ "lucisv_core", "serde", @@ -126,7 +126,7 @@ dependencies = [ [[package]] name = "lucisv_server" -version = "0.55.0" +version = "0.56.0" dependencies = [ "lsp-server", "lsp-types", @@ -262,14 +262,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.55.0" +version = "0.56.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.55.0" +version = "0.56.0" dependencies = [ "lucisv_core", "vlog_formatter", @@ -279,11 +279,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.55.0" +version = "0.56.0" [[package]] name = "vlog_refactor" -version = "0.55.0" +version = "0.56.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.55.0" +version = "0.56.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 2b3c1a1..70bf835 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ ] [workspace.package] -version = "0.55.0" +version = "0.56.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 8dd7572..f1e9e8a 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,19 @@ 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.56.0 — 2026-09-23 + +- Rename no longer breaks `.name` shorthand or `.*` wildcard connections: + the binding is written out explicitly (`.din(d)`, `.n(m)`) and each + rewrite is listed in the rename's warnings; a case lucisv cannot read is + refused with the reason instead of silently cut. Renames beside `bind` + directives onto instance names (opentitan's FPV binds) now succeed. +- Preview, outside the extension for now: `lucisv-mcp`, a Model Context + Protocol server that gives coding agents the same project understanding + and verified edits, built from the repository (`cargo build --release + -p lucisv_mcp`). It will ship inside this extension's platform packages + in a coming release. + ## 0.55.0 — 2026-09-17 - Find All References on a module's internal signal now lists every use diff --git a/editors/vscode/README.md b/editors/vscode/README.md index c318e0b..ac901b7 100644 --- a/editors/vscode/README.md +++ b/editors/vscode/README.md @@ -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.55.0**. Its platform packages include both +The current release is **0.56.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -374,6 +374,12 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.56.0 highlights + +Version 0.56.0 makes rename write out the `.name` and `.*` connections it +used to cut silently, and previews `lucisv-mcp`, a Model Context Protocol +server for coding agents built from the repository (not yet bundled). + ## Release 0.55.0 highlights Version 0.55.0 makes Find All References see every cross-file use of a diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 266246c..7ad6c9b 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -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.55.0", + "version": "0.56.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",