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

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

Closed
CrackTC opened this issue Dec 2, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@CrackTC
Copy link

CrackTC commented Dec 2, 2020

大佬你好! 我在安装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
Copy link

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

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

@issue-label-bot issue-label-bot bot added the bug Something isn't working label Dec 2, 2020
@voldikss
Copy link
Owner

voldikss commented Dec 3, 2020

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

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

@CrackTC
Copy link
Author

CrackTC commented Dec 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants