fix(ci): resolve lua-language-server warnings #32
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/preview.nvim!32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/command-surface"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
`reload_spec.lua` called `io.open()` without nil checks, surfacing `need-check-nil` warnings. Adding `${3rd}/busted` and `${3rd}/luassert` to `workspace.library` caused lua-language-server 3.7.4 to run diagnostics on its own bundled meta files, surfacing pre-existing `cast-local-type` bugs in luassert's annotations.
Solution
Use `assert(io.open(...))` in `reload_spec.lua`. Remove busted/luassert library paths from `.luarc.json` — they only help spec files which CI doesn't type-check. Narrow `scripts/ci.sh` to check `lua/` only, matching what GitHub CI already does.