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

Error during entering nvim from current folder #1883

Closed
farukara opened this issue Jan 4, 2023 · 5 comments
Closed

Error during entering nvim from current folder #1883

farukara opened this issue Jan 4, 2023 · 5 comments
Labels
awaiting feedback bug Something isn't working

Comments

@farukara
Copy link

farukara commented Jan 4, 2023

Description

when I start nvim with current folder I started to get the following error. I was not getting this one before. Updating something should cause it but I could not find out.
cmd:
$nvim .

output when nvim is opened:

Error executing vim.schedule lua callback: ...cker/start/nvim-tree.lua/lua/nvim-tree/renderer/init.lua:60: Invalid window id: 10 08 stack traceback: [C]: in function 'nvim_win_get_cursor' ...cker/start/nvim-tree.lua/lua/nvim-tree/renderer/init.lua:60: in function 'draw' ...te/pack/packer/start/nvim-tree.lua/lua/nvim-tree/lib.lua:117: in function 'open_view_and_draw' ...te/pack/packer/start/nvim-tree.lua/lua/nvim-tree/lib.lua:163: in function 'open' ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:278: in function 'on_enter' ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:862: in function <...m/site/pack/packer/start/nvim-tree.lua/ lua/nvim-tree.lua:861>

Neovim version

NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

macOS 12.6.2

nvim-tree version

bac962c

Minimal config

defaults

Steps to reproduce

nvim .

Expected behavior

nvim should open with nvim-tree tab on the left

Actual behavior

nvim-tree does not open and I got error that I wrote above

@farukara farukara added the bug Something isn't working label Jan 4, 2023
@gleydson404
Copy link

I had the same issue this week.

I had to uninstall luvarVim, uninstall neoVim, install neovim, install lunarVim to get it working again.

@alex-courtis
Copy link
Member

This is very concerning. It sounds like there may be a race condition around startup automation.

I understand that you are using nvim-tree defaults. Are you using any plugins / automation at nvim startup?

Please attempt to reproduce and provide a minimal config nvt-min.lua : https://github.com/nvim-tree/nvim-tree.lua/issues/new?assignees=&labels=bug&template=bug_report.yml

@nbili
Copy link

nbili commented Jan 18, 2023

@farukara I encountered a similar problem and was able to resolve it by disabling the hijack_directories.auto_open option. This eliminated a race condition that was occurring during startup automation. In my scenario, the problem is caused by a race condition with another plugin telescope-file-browser.nvim.

@alex-courtis
Copy link
Member

In my scenario, the problem is caused by a race condition with another plugin telescope-file-browser.nvim.

This is not uncommon. #1669

@alex-courtis
Copy link
Member

Closing, to follow up in #1669

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

No branches or pull requests

4 participants