nvim-completion-manager:neovim 在打开新文件时在 cm.py 中显示 Python 语法错误,尽管文件中没有实际语法错误

问题描述

~/.config/nvim/plugged/nvim-completion-manager/pythonx/cm.py 中,第 151 行是

        self.nvim.call('cm#complete',name,ctx,startcol,matches,refresh,async=True)

我使用的是 Python 3.8 并且将文件复制到 Python 的在线解释器中不会导致任何语法错误,所以我很困惑 Neovim 是这样解释它的。 我得到Error detected while processing function <SNR>35_on_core_channel_error

Shows when nvim starts

我的 ~/.config/nvim/init.vim

call plug#begin()
Plug 'roxma/nvim-completion-manager'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
call plug#end()

我尝试用制表符替换前导空格,但得到了相同的输出。

所有这些都直接来自https://www.linode.com/docs/guides/how-to-install-neovim-and-plugins-with-vim-plug/

文件:https://onlinegdb.com/ByyfKgK6w(引发错误,但语法没问题)。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)