Skip to content
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

nvim-tree integration: winid might be nil when floating view is enabled #3016

Closed
joseffilzmaier opened this issue Dec 5, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@joseffilzmaier
Copy link

Description

I am using nvim-tree and fidget.nvim and received error messages once i enabled view.float.enable = true inside of my nvim-tree plugin.

The error occurs every time i start nvim

Error Message:

[NvimTree] Handler for event TreeOpen errored. "...im/lazy/fidget.nvim/lua/fidget/integration/nvim-tree.lua:39: Invalid 'window': Expected Lua number"

Neovim version

NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1731601260
Run "nvim -V1 -v" for more info

Operating system and version

Linux 6.12.1-arch1-1 #1 SMP PREEMPT_DYNAMIC x86_64 GNU/Linux

Windows variant

No response

nvim-tree version

99db23d

Clean room replication

for lsp:
{
    'neovim/nvim-lspconfig',
    dependencies = {
      'williamboman/mason.nvim',
      'williamboman/mason-lspconfig.nvim',
      'WhoIsSethDaniel/mason-tool-installer.nvim',
      { 'j-hui/fidget.nvim', opts = {} },
    },
  config = function()
... some keymaps
end
}
For

Steps to reproduce

Open any file

Expected behavior

No error message is shown

Actual behavior

Error Message:

[NvimTree] Handler for event TreeOpen errored. "...im/lazy/fidget.nvim/lua/fidget/integration/nvim-tree.lua:39: Invalid 'window': Expected Lua number"
@joseffilzmaier joseffilzmaier added the bug Something isn't working label Dec 5, 2024
@joseffilzmaier
Copy link
Author

oh, wrong repository, sorry for the noise 😕

@alex-courtis
Copy link
Member

oh, wrong repository, sorry for the noise 😕

No worries. Is there an issue in another project that I should watch?

@joseffilzmaier
Copy link
Author

The problem is in the fidget nvim-tree integration, i opened an issue and a pull request there if you're curious: j-hui/fidget.nvim#259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants