voldikss / coc-extensions

🌸 Collections of coc.nvim extensions maintained by @voldikss
122 stars 6 forks source link

Get error with coc-translator-p #32

Closed cycoe closed 5 years ago

cycoe commented 5 years ago

老哥,感谢你做的插件,我遇到一个 bug 但我使用 popup 模式的时候 "nmap k (coc-translator-p)", 就会出现 "[coc.nvim] error: error on notification 'doKeymap': TypeError: Cannot read property 'uri' of undefined" echo 模式没有问题

我的 coc 设置为 "translator.toLang": "zh", "translator.engines": ["bing", "google"]

voldikss commented 5 years ago

欸我这里正常的,要不把你翻译的那个文本告诉我下

voldikss commented 5 years ago

还是不管翻译什么都报错?

cycoe commented 5 years ago

不管翻译什么都报错,刚刚尝试 'voldikss/vim-translate-me' 也无法使用 popup,是不是我的 neovim 不支持 floating window

voldikss commented 5 years ago

nvim 的版本是 0.4.0 吗,貌似目前只有 0.4.0 支持。

cycoe commented 5 years ago

是 0.3.8 NVIM v0.3.8 Build type: Release LuaJIT 2.0.5 Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wconversion -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.3.8/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include Compiled by builduser

Features: +acl +iconv +jemalloc +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

voldikss commented 5 years ago

哦那就是因为没有 floating 支持了。

voldikss commented 5 years ago

建议用 0.4.0,很稳健,我没遇到过 bug

cycoe commented 5 years ago

好的多谢老哥:)

voldikss commented 5 years ago

不客气:)