neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.46k stars 954 forks source link

ENETDOWN while installing extensions #2982

Closed giovannigiordano closed 3 years ago

giovannigiordano commented 3 years ago

Result from CocInfo

undefined## versions

vim version: nvim v0.5.0-a4fea28
node version: v14.15.0
coc.nvim version: 0.0.80-531f5af61f
coc.nvim directory: /users/g.giordano/.vim/plugged/coc.nvim
term: iterm.app
platform: darwin

## log of coc.nvim

2021-03-22t14:50:30.648 info (pid:49777) [services] - registered service "languageserver.elm-language-server"
2021-03-22t14:50:30.650 info (pid:49777) [services] - registered service "languageserver.kotlin"
2021-03-22t14:50:30.650 info (pid:49777) [services] - registered service "languageserver.reason-language-server"
2021-03-22t14:50:30.650 info (pid:49777) [services] - registered service "languageserver.robotframework_ls"
2021-03-22t14:50:30.859 info (pid:49777) [plugin] - coc.nvim 0.0.80-531f5af61f initialized with node: v14.15.0 after 275ms
2021-03-22t14:50:32.833 info (pid:49777) [attach] - receive notification: showinfo []
2021-03-22t14:50:32.880 info (pid:49777) [attach] - receive request: cocautocmd [ 'bufreadcmd', 'output', 'output:///info' ]
2021-03-22t14:50:33.520 info (pid:49777) [attach] - receive notification: highlight []
2021-03-22t14:50:34.887 info (pid:49777) [attach] - receive notification: highlight []
2021-03-22t14:50:36.014 info (pid:49777) [attach] - receive notification: highlight []
2021-03-22t14:50:39.494 info (pid:49777) [attach] - receive notification: installextensions [ 'coc-kotlin' ]
2021-03-22t14:50:39.563 info (pid:49777) [model-installer] - using npm from: /users/g.giordano/.nvm/versions/node/v14.15.0/bin/npm
2021-03-22t14:50:39.566 info (pid:49777) [model-installer] - get info from https://registry.npmjs.org/
2021-03-22t14:50:39.699 info (pid:49777) [model-installer] - fetched info of coc-kotlin {
  'dist.tarball': 'https://registry.npmjs.org/coc-kotlin/-/coc-kotlin-0.0.5.tgz',
  'engines.coc': '^0.0.80',
  version: '0.0.5',
  name: 'coc-kotlin'
}
2021-03-22t14:50:39.700 info (pid:49777) [model-installer] - downloading from https://registry.npmjs.org/coc-kotlin/-/coc-kotlin-0.0.5.tgz
2021-03-22t14:50:39.831 info (pid:49777) [model-installer] - download progress 2.6%
2021-03-22t14:50:39.837 info (pid:49777) [model-installer] - download progress 7.9%
2021-03-22t14:50:39.840 error (pid:49777) [extensions] - error on install coc-kotlin error: read enetdown
    at tlswrap.onstreamread (internal/stream_base_commons.js:209:20) {
  errno: -50,
  code: 'enetdown',
  syscall: 'read'
}

Describe the bug

When trying to install a coc.nvim extension with the command CocInstall coc-name-of-the-extensions it fails installing it. I have tried installing other extensions, but it fails always, and I have tried reinstalling coc.nvim, but without success

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't reproduce it

fannheyward commented 3 years ago

It's your network issue, ENETDOWN means the network is down.

giovannigiordano commented 3 years ago

I don't want to spam, but my network works well, I don't have any problems navigating on the web or downloading other stuff, I only have problems when installing coc extensions, even trying to reinstalling coc works, so, how it can be the network?

fannheyward commented 3 years ago

As you can see in logs, coc begins to download the extension from npmjs.org, with progress, then enetdown error, I can't reproduce this, this error is properly caused by network.

chemzqm commented 3 years ago

Could be some other software that closed the network connection, you can try to use proxy.