voldikss / coc-extensions

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

Error: ENOENT: no such file or directory, stat '/home/chen/.config/coc/extensions/coc-translator-data #105

Closed CrackTC closed 3 years ago

CrackTC commented 3 years ago

大佬你好! 我在安装coc-translator后尝试使用它, 但是发现插件并没有成功启用, 执行:CocInfo后得到以下输出:

## versions

vim version: NVIM v0.4.4
node version: v15.3.0
coc.nvim version: 0.0.79-4f517cc785
coc.nvim directory: /home/chen/repos/nvim/plugged/coc.nvim
term: st-256color
platform: linux

## Log of coc.nvim

2020-12-02T17:18:00.522 ERROR (pid:76557) [extensions] - Error on active extension coc-translator: Error: ENOENT: no such file or directory, stat '/home/chen/.config/coc/extensions/coc-translator-data' [Error: ENOENT: no such file or directory, stat '/home/chen/.config/coc/extensions/coc-translator-data'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/home/chen/.config/coc/extensions/coc-translator-data'
}
2020-12-02T17:18:00.539 INFO (pid:76557) [plugin] - coc.nvim 0.0.79-4f517cc785 initialized with node: v15.3.0 after 262ms

于是我尝试建立了coc-tranlator-data文件夹, 插件恢复了工作, 但是每次翻译得到了以下错误:

[coc.nvim]: Error on notification "doKeymap": ENOENT: no such file or directory, stat '/home/chen/.config/coc/extensions/coc-translator-data/tra
nslation.json'

我不确定我是不是在安装过程中进行了意外的操作, 于是我尝试了重新安装插件, 但问题并未得到解决

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.82. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

voldikss commented 3 years ago

最近电脑坏掉了,没法测试。可以安装旧一点的版本试一试,比如 CocInstall coc-translator@1.5.0

如果还不行的话,那就没办法了。

CrackTC commented 3 years ago

安装旧版本问题得到解决,非常感谢!