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

attempt to index local 'selection' when creating new worktree with Telescope #110

Open
lgoudin opened this issue Sep 19, 2023 · 0 comments

Comments

@lgoudin
Copy link

lgoudin commented Sep 19, 2023

Steps to reproduce :

  • Run :lua require("telescope").extensions.git_worktree.git_worktrees()
  • Press enter
  • Type a remote branch name or anything so that there is no suggestion left in the list
  • Press enter

The full error :

E5108: Error executing lua: ...worktree.nvim/lua/telescope/_extensions/git_worktree.lua:17: attempt to index local 'selection' (a nil value)
stack traceback:
        ...worktree.nvim/lua/telescope/_extensions/git_worktree.lua:17: in function 'get_worktree_path'
        ...worktree.nvim/lua/telescope/_extensions/git_worktree.lua:21: in function 'run_replace_or_original'
        ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
        ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
        ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:253: in function <...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:252>
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