diff --git a/CHANGELOG.md b/CHANGELOG.md index 9543879..9755444 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,30 @@ 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.40.0 — 2026-09-04 + +### Two parser residues and atomic writes + +- **A bare `begin … end` at module scope, or straight inside + `generate … endgenerate`, is recovered** in error-tolerant mode as an + unnamed generate block (`ItemKind::GenBlock`) with a diagnostic at the + keyword, instead of being refused and taking the rest of the unit with + it. The items inside and after the block are now visible to the + editor and to every lint rule; `module-begin-block`, + `v2001-generate-begin` and `mismatched-labels` read the node. Strict + parsing is unchanged, so the formatter still refuses the file exactly + as before. +- **A half-typed `#(` override or connection whose value would read as + the next instance** (`sub #(.W(8), .DEPTH(` ⏎ `u0 (.a(x));`) now costs + one error element: `.W(8)` survives, `u0` is an instance with its + connections, one diagnostic on the unclosed `(`. The balanced-parens + spelling stays ambiguous and is still parsed greedily, by design. +- **In-place writes are atomic.** `lucisv format`, `lucisv check --fix` + and the cache write a sibling temp file and rename it over the target, + so a crash or a full disk never leaves a source file truncated. The + target's permissions are kept, a symlink's *target* is what gets + replaced, and a read-only file is refused as it always was. + ## 0.39.0 — 2026-09-04 ### The rest of Verible's rules diff --git a/Cargo.lock b/Cargo.lock index 1102988..b701d2d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.39.0" +version = "0.40.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.39.0" +version = "0.40.0" [[package]] name = "lucisv_server" -version = "0.39.0" +version = "0.40.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.39.0" +version = "0.40.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.39.0" +version = "0.40.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.39.0" +version = "0.40.0" [[package]] name = "vlog_refactor" -version = "0.39.0" +version = "0.40.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.39.0" +version = "0.40.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 8866274..ac65475 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.39.0" +version = "0.40.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index df3c4d3..dc7002d 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,15 @@ 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.40.0 — 2026-09-04 + +- **Better recovery while you type.** A stray `begin … end` at module + scope, and a half-typed `#(` override above another instance, no + longer take the rest of the module out of the outline, hover and + diagnostics — you get one squiggle where the problem is. +- **Safer saves.** Format-on-save and `--fix` now replace a file in one + step; an interrupted write can no longer leave it truncated. + ## 0.39.0 — 2026-09-04 - **Nineteen more lint rules** (73 in all): generate-style rules, diff --git a/editors/vscode/README.md b/editors/vscode/README.md index ac90eb0..90e59ee 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.39.0**. Its platform packages include both +The current release is **0.40.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -364,6 +364,12 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.40.0 highlights + +Version 0.40.0 recovers a stray `begin` block and a half-typed `#(` +override without losing the rest of the module, and makes every +in-place write atomic. + ## Release 0.39.0 highlights Version 0.39.0 completes the Verible rule set: 73 lint rules, each with diff --git a/editors/vscode/package.json b/editors/vscode/package.json index cdc9f9b..d1794a6 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.39.0", + "version": "0.40.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",