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

Invalid window id nui neo tree #544

Closed
pratikgajjar opened this issue Sep 24, 2022 · 5 comments
Closed

Invalid window id nui neo tree #544

pratikgajjar opened this issue Sep 24, 2022 · 5 comments
Labels

Comments

@pratikgajjar
Copy link

pratikgajjar commented Sep 24, 2022

Opening folder via nvim causes this error. This might not be related to neo tree but hope someone will help tracing down this window error.

Git repo for nvim config - https://github.com/pratikgajjar/nvim

nvim . 
Error executing vim.schedule lua callback: ...m/site/pack/packer/start/nui.nvim/lua/nui/split/init.lua:147: Invalid window id: 1008
stack traceback:
        [C]: in function 'nvim_set_current_win'
        ...m/site/pack/packer/start/nui.nvim/lua/nui/split/init.lua:147: in function '_open_window'
        ...m/site/pack/packer/start/nui.nvim/lua/nui/split/init.lua:210: in function 'mount'
        .../packer/start/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:825: in function 'create_window'
        .../packer/start/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:947: in function 'draw'
        .../packer/start/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:1084: in function 'show_nodes'
        ...ree.nvim/lua/neo-tree/sources/filesystem/lib/fs_scan.lua:103: in function 'job_complete'
        ...ree.nvim/lua/neo-tree/sources/filesystem/lib/fs_scan.lua:125: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue

After this I am greeted with empty vim window.

nvim filename

This works without any error and after this if I do :NeoTreeShow then tree shows up without any issue.

@justforlxz
Copy link

i have the same problem.

@cseickel
Copy link
Contributor

I don't have the same problem. I would recommend disabling any startup (like alpha) or session related plugins you have. Something may be killing the window as it opens.

@pratikgajjar pratikgajjar changed the title Need help window id errors Invalid window id nui neo tree Sep 25, 2022
@justforlxz
Copy link

I found my own cause because I was using telescope file browser, when I disabled this feature, the error disappeared, hope this can help you.

@JulianManza
Copy link

Thank you @justforlxz, That is exactly the solution that solved the problem.

@nhat-vo nhat-vo added the how-to label Feb 21, 2023
@nhat-vo
Copy link
Collaborator

nhat-vo commented Feb 21, 2023

Closing this as solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants