bug: LuaLS 3.13.3 breaks @class inheritance optional @fields annotations hack #274
Closed
4 tasks done
Labels
bug
Something isn't working
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.2
Operating system/version
MacOS 14.6.1
Describe the bug
As of LuaLS v3.13.3 the
@class
inheritance hack to mark all@field
s as optional no longer works. As a consequence all config fields appear mandatory now, and a wall of warnings is shown.This typing hack seems to be pervasive across the Lua ecosystem, so not sure what next steps should be. In the meantime it seems the only solution is to explicitly declare all
@field
s as optional (?
).Submitting this bug primarily as a way to track this issue. Will try and submit a PR when I have a chance.
Steps To Reproduce
Expected Behavior
All config fields should be explicitly marked as optional.
Repro
The text was updated successfully, but these errors were encountered: