diff --git a/CHANGELOG.md b/CHANGELOG.md index bcb1251..01b7c5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,37 @@ 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.23.0 — 2026-09-01 + +Member chains and instance heads — DV class-semantics round 2. + +`cfg.vif.clk`, `item.hdr.addr`, `u_sub.port`, `tb.dut.u_core.done_o`: +the tail of a chain now resolves link by link through each link's +declared type. In one file the resolver hops declared type → declared +type; across files a chain becomes one composed path (`item_t::hdr::addr`) +the workspace's member table walks, so hover, find-references and rename +agree by construction. `Def::type_name` rides every indexed declaration +(`FACTS_FORMAT` 6 → 7; older stores rebuild once), and `this.x`/`super.x` +uses now post to the index, so references from a base class's +declaration list its subclasses' uses in other files. + +Instance heads: an instance's type is its module, and modules export +their ports and parameters — so `u_sub.port` resolves cross-file; +internal nets and vars resolve in the declaring file only, by ruling: +exporting them cost +24 % store and made `.port(w)` connections resolve +to internals. Typedef'd class aliases (`typedef c1 my_t; my_t h; h.x`) +are chased, visited-guarded. A chain link whose type is declared twice +in the workspace with different kinds is refused — round 1's lesson, +one hop out. No link ever guesses. + +Rename's truth moved with it: renaming `sub`'s `wire sig` now rewrites +`u_sub.sig` too, which a compiler needs; an unresolvable tail is left +alone (and, a known gap filed as topo §2.9-20, no longer warned about). + +Corpus: unresolved unchanged at 1 256; store +15.4 % (opentitan +30.8 → 35.4 MB), most of it the inherited-member postings. Zero wrong +answers in QA's 15 live opentitan probes. Formatter output unchanged. + ## 0.22.0 — 2026-09-01 Class member access — the first DV class-semantics round. diff --git a/Cargo.lock b/Cargo.lock index 0f6ff22..43376bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.22.0" +version = "0.23.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.22.0" +version = "0.23.0" [[package]] name = "lucisv_server" -version = "0.22.0" +version = "0.23.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.22.0" +version = "0.23.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.22.0" +version = "0.23.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.22.0" +version = "0.23.0" [[package]] name = "vlog_refactor" -version = "0.22.0" +version = "0.23.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.22.0" +version = "0.23.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 8411f6c..ea73aa5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.22.0" +version = "0.23.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index bf0b65e..77a48d2 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.23.0 — 2026-09-01 + +- **Member chains resolve**: hover, definition, references and rename on + `cfg.vif.clk`, `item.hdr.addr` and similar chains follow each link's + declared class across files. Instance ports (`u_sub.done_o`, + `tb.dut.u_core.ready`) resolve too; a module's internal signals resolve + only inside the file that declares the module. +- Typedef'd class aliases are followed; `this.x` uses show up in + find-references from the base class. +- Renaming a signal now also rewrites hierarchical uses of it + (`u_sub.sig`) — a compiler needs both. +- The index store format changed; it rebuilds once after updating. + ## 0.22.0 — 2026-09-01 - **Class member access**: hover, go-to-definition, find-references and diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 9804ace..13c44a1 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.22.0**. Its platform packages include both +The current release is **0.23.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -326,6 +326,13 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.23.0 highlights + +Version 0.23.0 follows member chains: `cfg.vif.clk`, `item.hdr.addr` +and instance ports `u_sub.done_o` resolve through the index across +files, typedef'd class aliases are chased, and renaming a signal now +rewrites its hierarchical uses too. + ## Release 0.22.0 highlights Version 0.22.0 brings class member access to the language server: hover, diff --git a/editors/vscode/package.json b/editors/vscode/package.json index c10fdd4..34c0699 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.22.0", + "version": "0.23.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",