Skip to content

Invalid window ID on colorscheme change #1712

@Davincible

Description

@Davincible

Description

I call colorscheme every x minutes, which now for some reason results in the error below. Used to work fine below.

I manually call colorscheme xx I also get it.

Error detected while processing ColorScheme Autocommands for "*":
Error executing lua callback: ...e/pack/packer/start/nvim-tree.lua/lua/nvim-tree/view.lua:442: Invalid window id: 1002
stack traceback:
        [C]: in function '__newindex'
        ...e/pack/packer/start/nvim-tree.lua/lua/nvim-tree/view.lua:442: in function 'reset_winhl'
        ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:195: in function <...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:193>

Neovim version

NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Operating system and version

6.0.2-2-MANJARO

nvim-tree version

master

Minimal config

not sure

Steps to reproduce

  1. Open nvim
  2. Toggle tree to open
  3. Toggle tree to close
  4. :colorscheme xyz

Expected behavior

No response

Actual behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreproducedIssue confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions