Release 0.30.0 — semantic lints on, vendor and formal collateral
Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
5051bbdf15
commit
51869c8bf4
6 files changed
+101
-11
No files matched your search
@@ -4,6 +4,57 @@ 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.30.0 — 2026-09-02
|
||||
|
||||
Two lanes, run in parallel: semantic lints on by default, and the
|
||||
vendor/formal collateral grammar.
|
||||
|
||||
### Semantic lints on by default
|
||||
|
||||
`unused-signal`, `undriven-net` and `multiply-driven` shipped off
|
||||
because a per-file analysis cannot see a signal read or driven from
|
||||
another file's hierarchy. The index now carries a per-file identifier
|
||||
census (`FileFacts::words`, `FACTS_FORMAT` 12 → 13 — one harvest,
|
||||
which also builds the completion word table so the server no longer
|
||||
re-lexes every file at startup: scan time −28 %), and the linter gains
|
||||
a mention oracle: `unused-signal` and `undriven-net` say nothing when
|
||||
the name is mentioned in any other indexed file. The three rules are
|
||||
on whenever an oracle exists — always in the editor, and in the CLI
|
||||
when it walks a project — and stay off for a single file or stdin.
|
||||
With them came the missing off switch: `[lint] select = […]` /
|
||||
`ignore = […]` in `lucisv.toml` (CLI flags win key by key) and
|
||||
`lucisv.lint.select` / `lucisv.lint.ignore` in the editor.
|
||||
|
||||
Measured: corpus `unused-signal` 52 → 44 and `undriven-net` 3 → 0 with
|
||||
every silencing hand-checked as a genuine cross-file use, nothing
|
||||
added; across opentitan — lint-clean under its own tools — 14
|
||||
findings, spot-checked true. Store +14 %.
|
||||
|
||||
### Vendor and formal collateral grammar
|
||||
|
||||
The gap analysis ranked `specify`/UDP/`checker`/`interface class` as
|
||||
Medium on the strength of "13 corpus checker files"; the round's
|
||||
census found those were UVM protocol-checker *filenames*, and that
|
||||
every construct here has zero declarations in the corpus and in
|
||||
opentitan. So this is a completeness round for vendored cell, IO and
|
||||
memory models and formal collateral — and it is proven
|
||||
output-neutral: formatted output is byte-identical for all 860 corpus
|
||||
files and all 3 975 opentitan files against the previous release.
|
||||
|
||||
Five keywords reserved on a measured zero-collision census
|
||||
(`checker`, `endchecker`, `config`, `endconfig`, `library`); five
|
||||
deliberately not (`expect` has 41 real task-call sites — the statement
|
||||
form is recognised only when its parentheses hold a sequence operator).
|
||||
`specify … endspecify`, `primitive … endprimitive` with `table`,
|
||||
`checker … endchecker` and `config … endconfig` parse as opaque blocks
|
||||
that format byte-for-byte and fold in the editor; `library …;` lines
|
||||
parse; `specparam` is a real declaration that hovers and resolves;
|
||||
`alias a = b = c;` parses with every term a reference; `union tagged`
|
||||
formats; `interface class … endclass` parses as a class and
|
||||
`implements` now contributes supertypes to the type hierarchy. Filed:
|
||||
the `tagged` pattern grammar, checker/UDP names as instantiable
|
||||
symbols, the reverse `implements` edge.
|
||||
|
||||
## 0.29.0 — 2026-09-02
|
||||
|
||||
Fragment mode, and `` `define`` continuation.
|
||||
|
||||
Generated
+8
-8
@@ -97,7 +97,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lucisv"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
dependencies = [
|
||||
"lucisv_core",
|
||||
"rayon",
|
||||
@@ -108,11 +108,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lucisv_core"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
|
||||
[[package]]
|
||||
name = "lucisv_server"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
dependencies = [
|
||||
"lsp-server",
|
||||
"lsp-types",
|
||||
@@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
||||
|
||||
[[package]]
|
||||
name = "vlog_formatter"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
dependencies = [
|
||||
"vlog_parser",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "vlog_linter"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
dependencies = [
|
||||
"vlog_formatter",
|
||||
"vlog_parser",
|
||||
@@ -264,11 +264,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "vlog_parser"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
|
||||
[[package]]
|
||||
name = "vlog_refactor"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
dependencies = [
|
||||
"vlog_parser",
|
||||
"vlog_semantic",
|
||||
@@ -276,7 +276,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "vlog_semantic"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
dependencies = [
|
||||
"vlog_parser",
|
||||
]
|
||||
+1
-1
@@ -12,7 +12,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
authors = ["Guoliang Chen"]
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
||||
@@ -5,6 +5,21 @@ 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.30.0 — 2026-09-02
|
||||
|
||||
- **The semantic lints are on**: `unused-signal`, `undriven-net` and
|
||||
`multiply-driven` now run by default in the editor and in project-wide
|
||||
`lucisv check`, and they know when a signal is used from another file,
|
||||
so the old cross-file false positives are gone. Tune them with the new
|
||||
`lucisv.lint.select` / `lucisv.lint.ignore` settings or a `[lint]`
|
||||
table in `lucisv.toml`.
|
||||
- Faster startup: the completion word table is read from the index
|
||||
store instead of re-lexing every file (scan −28 %).
|
||||
- `specify`, UDP `primitive`/`table`, `checker`, `config` and `library`
|
||||
parse (and fold); `interface class` parses and `implements` shows in
|
||||
the type hierarchy; `alias` and `union tagged` parse.
|
||||
- The index store format changed; it rebuilds once after updating.
|
||||
|
||||
## 0.29.0 — 2026-09-02
|
||||
|
||||
- **Include fragments parse**: a `.svh` holding a bare statement list,
|
||||
|
||||
@@ -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.29.0**. Its platform packages include both
|
||||
The current release is **0.30.0**. Its platform packages include both
|
||||
`lucisv-server` and the `lucisv` command-line tool:
|
||||
|
||||
| Package target | Machines |
|
||||
@@ -326,6 +326,14 @@ Every nesting color is a proper VS Code theme color:
|
||||
}
|
||||
```
|
||||
|
||||
## Release 0.30.0 highlights
|
||||
|
||||
Version 0.30.0 turns the semantic lints on by default — `unused-signal`,
|
||||
`undriven-net` and `multiply-driven` now see the whole project, with
|
||||
`lucisv.lint.select`/`ignore` to tune them — and parses the vendor and
|
||||
formal collateral (`specify`, UDPs, `checker`, `config`, `interface
|
||||
class` with `implements` in the type hierarchy).
|
||||
|
||||
## Release 0.29.0 highlights
|
||||
|
||||
Version 0.29.0 parses include fragments — a bare statement list, an
|
||||
|
||||
@@ -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.29.0",
|
||||
"version": "0.30.0",
|
||||
"publisher": "guoliangchen",
|
||||
"author": "Guoliang Chen",
|
||||
"license": "MIT",
|
||||
@@ -332,6 +332,22 @@
|
||||
"default": 4194304,
|
||||
"minimum": 0,
|
||||
"markdownDescription": "Size in bytes above which an **opened file** is put on the fast path: it is line-counted and nothing else — never parsed, never analyzed, never indexed — so a 100 MB netlist opens instantly instead of hanging the editor. What you still get is **syntax colouring of what is on screen**, painted a screenful at a time, plus go-to-definition and find-references within that file by text search. Everything else — diagnostics, formatting, symbols, folding, rename, hover, completion — answers nothing at all for such a file, and formatting says so rather than doing nothing quietly. A file on the fast path is left out of the workspace index entirely, so its symbols do not exist for the rest of the project. Set to `0` to analyze every file you open however big it is. Takes effect the next time the file is opened or edited. Not to be confused with `#lucisv.index.maxFileSize#`, which is about files nobody opened."
|
||||
},
|
||||
"lucisv.lint.select": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": [],
|
||||
"markdownDescription": "Run exactly these lint rules, replacing the default set — the editor's spelling of `lucisv check --select` and of `select` under `[lint]` in `lucisv.toml`. Leave it empty (the default) to run the default set. Names are the rule ids shown in each diagnostic, such as `no-tabs` or `unused-signal`; a name lucisv does not know is ignored rather than failing the whole selection. A `lucisv.toml` in the tree governs `lucisv check` on the command line; this setting governs what the editor shows."
|
||||
},
|
||||
"lucisv.lint.ignore": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": [],
|
||||
"markdownDescription": "Lint rules to drop from whatever `#lucisv.lint.select#` left — the editor's spelling of `lucisv check --ignore`. This is the off switch for the three rules that read the whole project rather than one file (`unused-signal`, `undriven-net`, `multiply-driven`): they are on by default wherever lucisv can see the other files of your workspace, because it can then tell that another file reads a signal through a hierarchical path. A name lucisv does not know is ignored. Takes effect immediately — every open file is re-checked."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user