如何在Neovim中使用Telescope插件时解决“无效的窗口ID”错误?

huangapple go评论65阅读模式
英文:

How to resolve 'Invalid window id' error when using Telescope plugin in Neovim?

问题

打开telescope并选择命令如find_files或colorscheme时会抛出此错误。我该怎么办。
英文:
Error executing vim.schedule lua callback: ...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:756: Invalid 
window id: 1004
stack traceback:
        [C]: in function 'nvim_win_close'
        ...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:756: in function 'close_windows'
        ...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:1501: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Whenever I open telescope and select a command like find_files or colorscheme it throws this error at me. What should I do.

答案1

得分: 0

看起来这是由最近一次提交引入的 bug,该提交位于 nvim-telescope/telescope.nvim。我建议将你的 telescope.nvim 插件降级到这次提交之前的版本。最新的已标记发布版本是 v0.1.1

我还提交了一个问题,你可以关注那个问题,但一般来说最好不要使用插件的最新提交。

英文:

It appears that this is a bug that was introduced with a recent commit to nvim-telescope/telescope.nvim. I would recommend downgrading your telescope.nvim plugin to a version before this commit. The latest tagged release is v0.1.1

I also submitted an issue, you could monitor that, but in general it's best not to use the latest commit of a plugin.

huangapple
  • 本文由 发表于 2023年5月25日 02:14:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76326378.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定