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

[coc.nvim] Initialize failed, try :UpdateRemotePlugins and restart #5

Closed
bbtdev opened this issue Jul 7, 2018 · 5 comments
Closed

Comments

@bbtdev
Copy link

bbtdev commented Jul 7, 2018

Tried everything, does want to work:

Minimal init.vim

if &compatible
 set nocompatible
endif
" Add the dein installation directory into runtimepath
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim

if dein#load_state('~/.cache/dein')
 call dein#begin('~/.cache/dein')

 call dein#add('~/.cache/dein')
 call dein#add('Shougo/deoplete.nvim')
 if !has('nvim')
   call dein#add('roxma/nvim-yarp')
   call dein#add('roxma/vim-hug-neovim-rpc')
 endif

 call dein#add('neoclide/coc.nvim', {
   \ 'build': 'npm install'
   \})

 call dein#end()
 call dein#save_state()
endif

filetype plugin indent on
syntax enable

UpdateRemote

remote/host: node host registered plugins ['coc.nvim']
remote/host: python3 host registered plugins ['deoplete']
remote/host: generated rplugin manifest: /Users/bogdan/.local/share/nvim/rplugin.vim
@chemzqm
Copy link
Member

chemzqm commented Jul 7, 2018

Check out /Users/bogdan/.local/share/nvim/rplugin.vim

And run npm install at the folder of coc.nvim

@bbtdev
Copy link
Author

bbtdev commented Jul 7, 2018

rplugin.vim

" node plugins
call remote#host#RegisterPlugin('node', '/Users/bogdan/.cache/dein/repos/github.com/neoclide/coc.nvim', [
\ ])

" python3 plugins
call remote#host#RegisterPlugin('python3', '/Users/bogdan/.cache/dein/.cache/init.vim/.dein/rplugin/python3/deoplete', [
\ {'sync': v:false, 'name': '_deoplete_init', 'type': 'function', 'opts': {}},
\ ])

" ruby plugins

" python plugins

➜ coc.nvim git:(master) ✗ npm install

npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained
npm WARN deprecated socks@1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated buildmail@4.0.1: This project is unmaintained
npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
WARN notice [SECURITY] timespan has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=timespan&version=2.3.0 - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info.

fsevents@1.2.4 install /Users/bogdan/.vim/plugged/coc.nvim/node_modules/fsevents
node install

[fsevents] Success: "/Users/bogdan/.vim/plugged/coc.nvim/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
npm WARN prepublish-on-install As of npm@5, prepublish scripts are deprecated.
npm WARN prepublish-on-install Use prepare for build steps and prepublishOnly for upload-only.
npm WARN prepublish-on-install See the deprecation note in npm help scripts for more information.

coc.nvim@0.0.1 prepublish /Users/bogdan/.vim/plugged/coc.nvim
npm run build

coc.nvim@0.0.1 build /Users/bogdan/.vim/plugged/coc.nvim
tsc -p tsconfig.json

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN tslint@5.10.0 requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev but none is installed. You must install peer dependencies yourself.
npm WARN ts-jest@23.0.0 requires a peer of typescript@2.x but none is installed. You must install peer dependencies yourself.
npm WARN tslint-react@3.6.0 requires a peer of typescript@>=2.1.0 || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev but none is installed. You must install peer dependencies yourself.

added 875 packages from 597 contributors in 29.748s

@chemzqm
Copy link
Member

chemzqm commented Jul 7, 2018

Looks like npm is checking the dependencies strictly, I'm using typescript 3.0 for new features, so looks like I should use typescript 2.9.2 .

@iamcco
Copy link
Contributor

iamcco commented Jul 10, 2018

I update the neovim nodejs module and UpdateRemotePlugins fix the error

@chemzqm
Copy link
Member

chemzqm commented Jul 10, 2018

The reason could be npm build error, it's recommended to use yarn.
Or neovim module is outdated.
I've add a detailed installation documentation at https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants