From dd4aa498bb80777bf12c3d1817a93dfe48b031a4 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Wed, 2 Sep 2026 02:19:17 -0700 Subject: [PATCH] =?UTF-8?q?Release=200.26.0=20=E2=80=94=20member=20complet?= =?UTF-8?q?ion=20and=20escaped=20identifiers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 42 +++++++++++++++++++++++++++++++++++++ Cargo.lock | 16 +++++++------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 13 ++++++++++++ editors/vscode/README.md | 9 +++++++- editors/vscode/package.json | 2 +- 6 files changed, 73 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eff7138..d29ef5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,48 @@ 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.26.0 — 2026-09-02 + +Two lanes, run in parallel: member completion, and escaped identifiers. + +### Member completion — a dot means members + +Typing `item.` used to get the whole-index dump — every keyword and +every project word, capped at 512 — because the empty word after a dot +fell through to the ordinary tiers. Now the answer after `.` or `::` is +exclusively the members of what precedes it: a class's properties and +methods (inherited ones included, through the same base chain hover +follows), a struct's fields (`reg2hw.ctrl.` via the synthesized nested +keys), an interface's signals, modports and clocking blocks (`vif.`, +`vif.cb.`), a package's members (`tlul_pkg::`), `this.`/`super.`. The +walk is published from `vlog_semantic` (`Semantics::member_site`, +`WorkspaceIndex::members_of_chain`) and the resolver's own member +resolution is rewritten to call it, so the popup cannot list a name +hover would not resolve. A dot inside an instantiation's `(…)` or +`#(…)` lists the module's ports or parameters, already-connected ones +dropped. `.` and `:` are trigger characters. An unreadable head answers +nothing — never the dump. Cheaper than what it replaces: 6–62 µs +against 212 µs. + +QA's finding, fixed at the root: `#(.` offered header `localparam`s +because the binder had discarded the `parameter`/`localparam` keyword. +`SymbolKind::LocalParam` is now bound from the keyword (sticky across +continuation entries, as the ghost skeleton already read it), shows as +"localparam" on the hover card, is excluded from override lists only, +and still resolves for hierarchical reads. `FACTS_FORMAT` 9 → 10. + +### Escaped identifiers format + +`wire \my-signal ;` was refused outright: the lexer ends an escaped +identifier before its terminating whitespace and the formatter emitted +every name bare, so `\my-signal;` re-lexed as one token and the safety +net — correctly — rejected the file. Fifty name-emission sites now go +through one choke point that writes the IEEE 1800 §5.6.1 space; +`verify.rs` untouched, eight masked-corruption attack pairs; the corpus +is byte-identical by construction. Netlists and generated RTL format. +One shape is refused rather than corrupted and filed (`\my-pkg ::x`, +whose segments the parser joins). + ## 0.25.0 — 2026-09-01 Struct members — `s.field`, `reg2hw.ctrl.q` and the anonymous diff --git a/Cargo.lock b/Cargo.lock index 012fcd5..e8997c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.25.0" +version = "0.26.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.25.0" +version = "0.26.0" [[package]] name = "lucisv_server" -version = "0.25.0" +version = "0.26.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.25.0" +version = "0.26.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.25.0" +version = "0.26.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.25.0" +version = "0.26.0" [[package]] name = "vlog_refactor" -version = "0.25.0" +version = "0.26.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.25.0" +version = "0.26.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 2fc5335..ed557d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.25.0" +version = "0.26.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 5551877..4548a99 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.26.0 — 2026-09-02 + +- **Member completion**: type `item.`, `reg2hw.ctrl.`, `vif.cb.`, + `pkg::`, `this.` — the popup lists exactly the members that belong + there, inherited ones included, and nothing else (the old everything + list after a dot is gone). Inside a port map, `sub u (.` lists the + module's ports you have not connected yet; `#(.` its parameters. +- Header and body `localparam`s are labelled "localparam" and never + offered as overridable. +- **Escaped identifiers format**: files with `\my-signal `-style names + (netlists, generated RTL) no longer fail to format. +- The index store format changed; it rebuilds once after updating. + ## 0.25.0 — 2026-09-01 - **Struct fields resolve**: hover, go-to-definition, references and diff --git a/editors/vscode/README.md b/editors/vscode/README.md index e23ede3..d3a708b 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.25.0**. Its platform packages include both +The current release is **0.26.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.26.0 highlights + +Version 0.26.0 makes a dot mean members: `item.`, `reg2hw.ctrl.`, +`vif.cb.`, `pkg::` and the port map after `sub u (.` list exactly what +belongs there — inherited members included, nothing else — and files +with escaped identifiers (`\my-signal `) finally format. + ## Release 0.25.0 highlights Version 0.25.0 resolves struct fields: `s.field`, nested diff --git a/editors/vscode/package.json b/editors/vscode/package.json index dd3015a..8488ec6 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.25.0", + "version": "0.26.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",