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 when opening a worktree with an empty current buffer #120

Open
fira42073 opened this issue Mar 25, 2024 · 0 comments
Open

Error when opening a worktree with an empty current buffer #120

fira42073 opened this issue Mar 25, 2024 · 0 comments

Comments

@fira42073
Copy link

fira42073 commented Mar 25, 2024

Nvim Version:

NVIM v0.10.0-dev-2331+g170c890dc
Build type: RelWithDebInfo
LuaJIT 2.1.1707061634

Steps to reproduce:

  • clone a bare repo
  • add 2 worktrees from git cli
  • open nvim in root folder of bare repo
  • select a worktree using plugin

As a result I'm getting this error message, but it does change the worktree correctly.

2 / 2: Running post switch callbacks
Error executing vim.schedule lua callback: vim/_editor.lua:0: nvim_exec2(): Vim(edit):E32: No file name
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        ...packer/start/git-worktree.nvim/lua/git-worktree/init.lua:133: in function 'on_tree_change_handler'
        ...packer/start/git-worktree.nvim/lua/git-worktree/init.lua:142: in function 'emit_on_change'
        ...packer/start/git-worktree.nvim/lua/git-worktree/init.lua:421: in function <...packer/start/git-worktree.nvim/lua/git-worktree/init.lua:419>
Press ENTER or type command to continue

P.S.
I'm willing to contribute, but I have no idea where to actually start.

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

No branches or pull requests

1 participant