diff --git a/CHANGELOG.md b/CHANGELOG.md index 312aa38..88e301e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.16.0 — 2026-08-29 + +The testbench-syntax release: the coverage gap named by +`syntax_coverage.md` (a full sweep of a 3,943-file opentitan checkout), +closed bucket by bucket. Sweep failures 151 → 100 across three +lead-reviewed rounds. + +### Out-of-class constraints parse + +`constraint ClassName::name { ... }` at file or package scope — the +single biggest bucket, 45 files — was a one-line grammar fix reusing +the out-of-body method-name path. The real win is tolerant-mode: the +cascade of bogus diagnostics these files produced in the editor +(300+ per file, 1,349 across the bucket) collapses to at most one +honest report. + +### Directives may open inside a statement + +An `` `ifdef `` splitting the right-hand side of an assign, an +expression, or an instantiation head — the mirror image of every +previous directive feature, which all recovered at a *closing* +directive — is captured verbatim, with a head classifier that refuses +what it cannot prove rather than guessing. Fixes chip_if.sv in both +opentitan tops, both flagship tb.sv testbenches, and friends. Crafted +corrupted-capture pairs are asserted rejected by the safety net. + +### Three formatter comment bugs, fixed where they lived + +A line comment trailing `end` no longer swallows a cuddled `else`; a +comment inside an `if`/`while`/`repeat`/`wait`/`case` header's parens +stays inside them; `default;` no longer grows an invented `:`. Eleven +of the twelve files the safety net had (correctly) refused now format +and round-trip; the twelfth needed a parser-side pending-comment fix +(`take_gap`) delivered by the directive round — all twelve close on +the merged tree. `verify.rs`'s forgiveness was not widened; the +attack-test template was applied anyway. + +**Formatter output changed for the comment shapes above, so this +release bumps the version and warm format caches re-verify** (the +format-cache rule). + ## 0.15.0 — 2026-08-29 The interactive-latency release, benchmarked twice against a real diff --git a/Cargo.lock b/Cargo.lock index 1729aa2..ef905ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.15.0" +version = "0.16.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.15.0" +version = "0.16.0" [[package]] name = "lucisv_server" -version = "0.15.0" +version = "0.16.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.15.0" +version = "0.16.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.15.0" +version = "0.16.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.15.0" +version = "0.16.0" [[package]] name = "vlog_refactor" -version = "0.15.0" +version = "0.16.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.15.0" +version = "0.16.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index a9d587a..d1c3ef8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.15.0" +version = "0.16.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index e39807f..d6fb27a 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -25,6 +25,21 @@ number; the full engineering notes live in the quarter of a second. The index cache rebuilds once because its facts format changed. +## 0.16.0 — 2026-08-29 + +The testbench-syntax release. + +- **DV and testbench code parses much better**: out-of-class + constraints (`constraint C::name {...}`), `` `ifdef `` blocks that + split an assign or an instantiation, and more — 51 additional files + of a 3,943-file opentitan checkout now parse and format, and the + bogus-diagnostic cascades those files produced in the editor are + gone. +- **Comment-handling formatter fixes**: comments trailing `end`, inside + condition parentheses, and `default;` case items all format + faithfully now. +- No settings or index changes; caches re-verify once after updating. + ## 0.15.0 — 2026-08-29 The interactive-latency release. diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 2a19352..773f0f1 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.15.0**. Its platform packages include both +The current release is **0.16.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -325,6 +325,14 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.16.0 highlights + +Version 0.16.0 is the testbench-syntax release: out-of-class +constraints, `` `ifdef `` splitting statements, and comment-shape +formatter fixes — 51 more files of a real 4,000-file SoC parse, format +and diagnose cleanly, and testbench editing stops drowning in cascade +diagnostics. + ## Release 0.15.0 highlights Version 0.15.0 is the interactive-latency release: diff --git a/editors/vscode/package.json b/editors/vscode/package.json index b6c2b94..dcafd4c 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.15.0", + "version": "0.16.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",