From 7c4bdbcfeae7aebb8fe4f946de83e3b812cb2981 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Fri, 4 Sep 2026 03:08:47 -0500 Subject: [PATCH] =?UTF-8?q?Release=200.37.0=20=E2=80=94=20error=20recovery?= =?UTF-8?q?=20inside=20headers=20and=20lists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 21 +++++++++++++++++++++ Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 8 ++++++++ editors/vscode/README.md | 8 +++++++- editors/vscode/package.json | 2 +- 6 files changed, 46 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e089c8a..b2f8fa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,27 @@ 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.37.0 — 2026-09-04 + +### Typing a header no longer loses the module + +While you type a port list, a parameter list, a function's argument +list, an instantiation's connections, or the header of a `for`/`if`/ +`while`/`case`, the editor used to lose the whole surrounding module or +function: its body re-parsed at file scope, its symbols vanished from +the outline and from completion, and the orphaned `endmodule` produced a +second error. Recovery now happens inside the list: the element that +failed becomes an error element, the ones you already typed stay, the +header keeps its node, and the body binds in the right scope. One +diagnostic per typo. The strict parse (what the formatter uses) is +untouched, so every corpus file formats byte for byte as before. + +Measured over the corpus with every file cut in half: error nodes fall +by 11 %; diagnostics rise by 7 % because a module whose header was cut +now survives to report its missing `endmodule` instead of vanishing +into one error node. Known gap: a half-typed `#(` override whose value +can read as a call still collapses its instantiation (filed). + ## 0.36.1 — 2026-09-04 The 0.36.0 tag never published: its release commit shipped without a diff --git a/Cargo.lock b/Cargo.lock index 6f90369..69d07ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.36.1" +version = "0.37.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.36.1" +version = "0.37.0" [[package]] name = "lucisv_server" -version = "0.36.1" +version = "0.37.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.36.1" +version = "0.37.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.36.1" +version = "0.37.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.36.1" +version = "0.37.0" [[package]] name = "vlog_refactor" -version = "0.36.1" +version = "0.37.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.36.1" +version = "0.37.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 42698a5..2526597 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.36.1" +version = "0.37.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index c9352cf..2f76c5b 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,14 @@ 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.37.0 — 2026-09-04 + +- **Typing a header no longer loses the module.** A half-typed port + list, parameter list, argument list, connection list or `for`/`if` + header keeps the surrounding module or function intact: outline, + completion and hover keep working, and you get one diagnostic instead + of a cascade. + ## 0.36.1 — 2026-09-04 - 0.36.0 never published (its release shipped without notes); 0.36.1 is diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 563d305..cb7641f 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.36.1**. Its platform packages include both +The current release is **0.37.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -344,6 +344,12 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.37.0 highlights + +Version 0.37.0 keeps a module or function intact while you type inside +its header, so the outline, completion and hover keep answering and one +typo costs one diagnostic. + ## Release 0.36.1 highlights Version 0.36.1 (0.36.0 plus its release notes) gives every lint rule a diff --git a/editors/vscode/package.json b/editors/vscode/package.json index dc168fe..61265f0 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.36.1", + "version": "0.37.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",