8000 bug: type annotation for `LazyPluginSpec` result in missing-fields after updating to lua_ls v3.13.3 · Issue #1842 · folke/lazy.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bug: type annotation for LazyPluginSpec result in missing-fields after updating to lua_ls v3.13.3 #1842
@daephx

Description

@daephx

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.11.0-dev

Operating system/version

Ubuntu 20.04 WSL

Describe the bug

After updating lua_ls to v3.13.3 I noticed my plugin scripts using @type LazyPluginSpec now have missing-fields warnings.
It seems they have changed how missing-fields diagnostics work with inherited types: LuaLS/lua-language-server@7b2d585.

E27VTxGsSG

Steps To Reproduce

  1. Ensure Neovim is configured to use LSP servers like lua_ls
  2. Update to the latest stable version of lua_ls (currently v3.13.3)
  3. Create a plugin spec table and annotate it with ---@type LazyPluginSpec
  4. Notice missing-fields warning within the spec table for name, dir

Expected Behavior

Type fields should not result in missing-fields diagnostic warnings for plugin spec.

Repro

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0