Rename the tool to lucisv (Language Utility for Coding In SystemVerilog)
This commit is contained in:
1 parent
a284e33110
commit
eeaffafd56
188 files changed
+2825
-2802
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
This is the **umbrella plan** for porting the ideas of
|
||||
[rope](https://github.com/python-rope/rope) — Python's refactoring library —
|
||||
to vfmt. It is the single source of truth for the refactoring roadmap: the
|
||||
to lucisv. It is the single source of truth for the refactoring roadmap: the
|
||||
feature list below is the checklist the lead crosses off as milestones land
|
||||
and pass QA. Each milestone is implemented as its **own feature** with its own
|
||||
`docs/features/<name>/README.md`, per the repo's document-based workflow; this
|
||||
@@ -10,12 +10,12 @@ file links to them.
|
||||
|
||||
## Goal
|
||||
|
||||
Give vfmt the refactoring layer that ruff/Pylance users take for granted and
|
||||
Give lucisv the refactoring layer that ruff/Pylance users take for granted and
|
||||
no Verilog tool ships well: rename that actually updates every reference
|
||||
across files, module signature changes (add/remove ports) that update every
|
||||
instantiation, and "module hinting" — instantiation skeletons generated from
|
||||
the module's real definition, the way type hints drive completion in Python.
|
||||
All of it server-first (VS Code + Vim through the one `vfmt-server` binary),
|
||||
All of it server-first (VS Code + Vim through the one `lucisv-server` binary),
|
||||
scoped by an explicit **filelist** when the user has one and by sensible
|
||||
defaults when they don't, and covered by the same never-corrupt-code contract
|
||||
as the formatter.
|
||||
@@ -142,7 +142,7 @@ Found by auditing the shipped capability set against the LSP end goal
|
||||
built but nothing consumes yet. Ordered by value ÷ cost:
|
||||
|
||||
- [x] **Cross-file find-all-references** — `textDocument/references` is
|
||||
still in-file only (nav.rs:50; vfmt-server README names it "not done"),
|
||||
still in-file only (nav.rs:50; lucisv-server README names it "not done"),
|
||||
yet M2's rename already collects cross-file reference sets in
|
||||
`vlog_refactor`. Rename can change what references can't even list.
|
||||
Reuse M2's collection for the references answer — mostly wiring.
|
||||
@@ -171,8 +171,8 @@ built but nothing consumes yet. Ordered by value ÷ cost:
|
||||
multiply-driven: TODO.md §7 calls this the differentiation Verible
|
||||
cannot do, `vlog_semantic` has existed for rounds, and no semantic rule
|
||||
ships yet.
|
||||
- [x] **CLI `-f` filelist flag** — the vfmt.toml `filelist` key and the
|
||||
server consume M1's parser; `vfmt -f files.f` (format/lint exactly the
|
||||
- [x] **CLI `-f` filelist flag** — the lucisv.toml `filelist` key and the
|
||||
server consume M1's parser; `lucisv -f files.f` (format/lint exactly the
|
||||
project's files) still does not exist.
|
||||
- [x] **Single-step macro expansion on hover** — the define-table README
|
||||
promised it "later"; hover shows the body but expands nothing.
|
||||
@@ -189,7 +189,7 @@ corpus-check CI wiring, `--diff-base`, salsa (TODO.md §4–6).
|
||||
from a resolved reference span. Where resolution is honest about
|
||||
uncertainty (`InheritedCandidate`, ambiguous duplicates), the refactoring
|
||||
refuses rather than guesses — rope's "unsure matches" mode is *not* ported.
|
||||
- vfmt does not preprocess. A rename target whose name also appears inside
|
||||
- lucisv does not preprocess. A rename target whose name also appears inside
|
||||
a `` `define`` body or an `` `ifdef``-excluded region is reported as a
|
||||
warning on the response, and those occurrences are left untouched.
|
||||
- Verification budget: re-parsing every touched file after an edit is
|
||||
@@ -210,28 +210,28 @@ corpus-check CI wiring, `--diff-base`, salsa (TODO.md §4–6).
|
||||
`references_of`), `WorkspaceIndex` and `ExternalResolutions` read-only.
|
||||
Any resolution gap found while refactoring is filed against
|
||||
`vlog-semantic`, not patched around in the refactor crate.
|
||||
- **`vfmt_server`**: owns only the protocol mapping (WorkspaceEdit,
|
||||
- **`lucisv_server`**: owns only the protocol mapping (WorkspaceEdit,
|
||||
completion/snippet encoding, signature help); all edit *computation*
|
||||
lives in the new `vlog_refactor` crate so Vim gets identical behavior.
|
||||
- **`vfmt_core`**: filelist parsing lives here (next to config/walk), so a
|
||||
- **`lucisv_core`**: filelist parsing lives here (next to config/walk), so a
|
||||
future CLI `-f` flag reuses it unchanged.
|
||||
- **`vlog_formatter`**: not a dependency. Refactored output is *edited
|
||||
source*, not reformatted source — the user runs the formatter separately.
|
||||
(Keeps refactor edits minimal and reviewable, and keeps the formatter's
|
||||
safety net out of scope.)
|
||||
- **`editors/vscode`**: new setting `vfmt.filelist` (string path, default
|
||||
empty) forwarded like the existing `vfmt.*` settings.
|
||||
- **`editors/vscode`**: new setting `lucisv.filelist` (string path, default
|
||||
empty) forwarded like the existing `lucisv.*` settings.
|
||||
|
||||
## Milestones
|
||||
|
||||
Each is one feature dir, one dev agent, one QA pass, one lead review, one
|
||||
commit — in order:
|
||||
|
||||
1. **M1 `filelist`** — `.f` parsing in `vfmt_core` (paths, `-f` nesting with
|
||||
1. **M1 `filelist`** — `.f` parsing in `lucisv_core` (paths, `-f` nesting with
|
||||
cycle detection, `+incdir+`/`+define+` recorded, `#`//`//` comments,
|
||||
`$VAR`/`${VAR}` expansion; unknown `+args`/`-flags` skipped with a
|
||||
warning), server scope resolution (filelist ⊃ workspace walk ⊃
|
||||
current-file directory), `vfmt.filelist` VS Code setting + vfmt.toml
|
||||
current-file directory), `lucisv.filelist` VS Code setting + lucisv.toml
|
||||
`filelist` key.
|
||||
2. **M2 `refactor-rename`** — new crate `vlog_refactor` with the edit-plan
|
||||
model (`RefactorEdit { file → Vec<TextEdit> }`, verification by
|
||||
@@ -288,10 +288,10 @@ commit — in order:
|
||||
is. Workspace suite grew 1007 → 1232 tests. Backlog triage is the next
|
||||
session's first task.
|
||||
- **2026-08-24 (lead)**: Umbrella plan created from the rope overview docs
|
||||
and the current state of `vlog_semantic`/`vfmt_server`/`WorkspaceIndex`.
|
||||
and the current state of `vlog_semantic`/`lucisv_server`/`WorkspaceIndex`.
|
||||
Key decisions: server-first (no CLI surface yet), semantic-resolution-only
|
||||
edits (no textual fallback), whole-edit-or-nothing verification by
|
||||
re-parse, filelist in `vfmt_core`, rope's history/restructure explicitly
|
||||
re-parse, filelist in `lucisv_core`, rope's history/restructure explicitly
|
||||
not ported. Milestone READMEs are created by their dev agents.
|
||||
|
||||
## QA log
|
||||
|
||||
Reference in new issue
Block a user