From bbf87976a19eb60c7866088ccb565a2c46aa3664 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Tue, 1 Sep 2026 23:56:22 -0700 Subject: [PATCH] =?UTF-8?q?Release=200.25.0=20=E2=80=94=20struct=20members?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 11 +++++++++++ editors/vscode/README.md | 9 ++++++++- editors/vscode/package.json | 2 +- 6 files changed, 62 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f588557..eff7138 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,39 @@ 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.25.0 — 2026-09-01 + +Struct members — `s.field`, `reg2hw.ctrl.q` and the anonymous +aggregates resolve. + +`typedef struct packed {…} bus_t; bus_t s; s.field` recorded nothing. +The in-file gap was a single resolver gate: a struct typedef's member +scope already existed, hung off the typedef, and lookup simply never +entered it. Now any symbol whose child scope is a struct scope — a +typedef, an anonymous `struct {…} s;` declarator, or an inline nested +field — answers member access with one rule, and fields carry their +own type so `s.hdr.addr` hops through a member. Unions are the same +node. Anonymous `enum {A, B} x;` variants land in the enclosing scope +exactly like typedef'd ones (the open handshake since types-decls). + +Across files, struct members are exported under the typedef's name, +and inline nested fields — the shape opentitan's generated register +packages use everywhere — under a synthesized `owner.field` key +carried as the field's type, so `hw2reg.status.txfull.d` lands on +`txfull`'s `d` and never `rxfull`'s two lines up (bare-name keys would +collide on `q`/`d`/`qe` in every register package). Same-named struct +typedefs in two packages answer ambiguity, never a guess. `FACTS_FORMAT` +8 → 9 (older stores rebuild once); `typeDefinition` works inside a +`typedef struct` body. + +Unresolved names on the corpus fell 1 203 → 1 162; its store shrank +1.1 % (a resolved local fact encodes smaller than the external +candidate it replaced) while opentitan's register packages grow theirs +4.3 %. QA: 28 live opentitan probes across six IPs with three planted +sibling-field pairs, zero wrong answers, hover under 0.5 ms. Known +remaining shape: an indexed link mid-chain (`reg2hw.key_share0[i].q`), +pre-existing and filed. + ## 0.24.0 — 2026-09-01 Interface semantics — interfaces, modports and clocking blocks become diff --git a/Cargo.lock b/Cargo.lock index c95741b..012fcd5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.24.0" +version = "0.25.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.24.0" +version = "0.25.0" [[package]] name = "lucisv_server" -version = "0.24.0" +version = "0.25.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.24.0" +version = "0.25.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.24.0" +version = "0.25.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.24.0" +version = "0.25.0" [[package]] name = "vlog_refactor" -version = "0.24.0" +version = "0.25.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.24.0" +version = "0.25.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 999fb13..2fc5335 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.24.0" +version = "0.25.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 899ed3a..5551877 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,17 @@ 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.25.0 — 2026-09-01 + +- **Struct fields resolve**: hover, go-to-definition, references and + rename on `s.field`, nested `reg2hw.ctrl.q` / `hw2reg.status.d` + through generated register packages, unions, and anonymous + `struct {…} s;` / `enum {A,B} x;` forms — in the same file and across + files, always the right sibling field. +- `typeDefinition` now works on a member's type inside a `typedef + struct` body. +- The index store format changed; it rebuilds once after updating. + ## 0.24.0 — 2026-09-01 - **Virtual interfaces work across files**: hover, go-to-definition, diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 2eb0f66..e23ede3 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.24.0**. Its platform packages include both +The current release is **0.25.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.25.0 highlights + +Version 0.25.0 resolves struct fields: `s.field`, nested +`reg2hw.ctrl.q` through generated register packages, unions, and the +anonymous `struct {…} s;` / `enum {A,B} x;` forms — hover, definition, +references and rename, in-file and across files. + ## Release 0.24.0 highlights Version 0.24.0 gives interfaces their own identity in the language diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 6c796a2..dd3015a 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.24.0", + "version": "0.25.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",