-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lua]: Add annotations to the core codebase. #1265
Conversation
It seems to me like the CI is using some older version of LuaLS which does not use LuaCATS. @pysan3 do we pin the luals-typecheck language server to a specific version? |
It seems that there are general issues with the typechecking CI, but lua-ls itself is not having any issues when parsing the codebase for me locally. I'll merge the PR as-is and I hope the other issues will fix themselves later on. |
The type checking is using this repo, which I have no control over. https://github.com/mrcjkb/lua-typecheck-action I'm not very sure, but as far as I understand, it uses nix script? to setup the environment, and as nix has to be run against a lock file ( It seems that the repo auto generates a new release when a new version of luals is released, so we would need to always keep the GitHub is not clever enough to resolve Ref; https://github.com/orgs/community/discussions/39519 |
Oh, you seem to have pinned it to the latest version: fb23d2e |
Yeah I tried to fix it by pinning to the latest version but it's still failing for some reason 🤔 It's unable to find the neodev files, despite them being there (I've been debugging the CI for the best part of half an hour now :/) |
I think upstream v0.2 fails to load IDK how to fix it tho... |
I don't know when it changed, but I think this is the reason. EDIT: Hmm, it seems that the doc is wrong, and |
@vhyrro Found the reason! Abs path to the work dir has changed from So we had to change this in |
This PR adds LuaCATS annotations (i.e. the annotation standard used by the lua language server) to the core of Neorg (not to all modules, but just to the core).
LuaCATS is a more modern spinoff of EmmyLua.
This gives proper type checking, better autocompletion and verifying the contents of tables provided to the
setup()
function. It's even useful to users as they can have autocompletion for their config :D