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

can't resolve yaml-language-server #17

Closed
dakyskye opened this issue Apr 13, 2020 · 13 comments
Closed

can't resolve yaml-language-server #17

dakyskye opened this issue Apr 13, 2020 · 13 comments

Comments

@dakyskye
Copy link

I installed both: coc-yaml extension and yaml-language-server (with yarn global add), but it says:

[coc.nvim]Can't resolve yaml-language-server

@fannheyward
Copy link
Member

How do you install coc-yaml?

@dakyskye
Copy link
Author

dakyskye commented Apr 13, 2020

@fannheyward I added it to coc_global_extensions variable.

let g:coc_global_extensions = [
	\ 'coc-yaml'
\ ]

then coc installed it itself.

@fannheyward
Copy link
Member

Does ~/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/server.js exists?

@dakyskye
Copy link
Author

No. coc-yaml got no node_modules.

@fannheyward
Copy link
Member

Try :CocInstall coc-yaml

@dakyskye
Copy link
Author

There is yarn-error.log file though. Let me upload it quickly.

@dakyskye
Copy link
Author

Oh yeah, it started installing coc-yaml.

@dakyskye
Copy link
Author

It installed coc-yaml, but the result is even worse.
image

@fannheyward
Copy link
Member

Can't reproduce this. What's your :CocInfo and :CocOpenLog?

@dakyskye
Copy link
Author

:CocInfo

## versions

vim version: NVIM v0.4.3
node version: v13.12.0
coc.nvim version: 0.0.77-817efd5108
term: xterm-termite
platform: linux

## Output channel: git

Looking for git in: git
> git rev-parse --show-toplevel
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Error 128 on: 'git rev-parse --show-toplevel' in /home/dakyskye/.config/bspwm
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

## Output channel: snippets

[Info 2:04:15 PM] Using ultisnips directories: UltiSnips /home/dakyskye/.config/coc/ultisnips
[Info 2:04:15 PM] Using ultisnips python command: pyx

## Output channel: highlight

[Info  - 2:04:15 PM] Highlight server running in node v13.12.0

@dakyskye
Copy link
Author

Apparently, I think it started to work.

2020-04-14T14:04:15.126 INFO (pid:13756) [services] - registered service "highlight server"
2020-04-14T14:04:15.164 INFO (pid:13756) [services] - registered service "yaml server"
2020-04-14T14:04:15.165 INFO (pid:13756) [services] - yaml server state change: stopped => starting
2020-04-14T14:04:15.169 INFO (pid:13756) [language-client-index] - highlight started with 13772
2020-04-14T14:04:15.175 INFO (pid:13756) [language-client-index] - yaml started with 13773
2020-04-14T14:04:15.179 INFO (pid:13756) [plugin] - coc 0.0.77-817efd5108 initialized with node: v13.12.0
2020-04-14T14:04:15.327 INFO (pid:13756) [services] - yaml server state change: starting => running
2020-04-14T14:04:15.331 INFO (pid:13756) [services] - service yaml server started
2020-04-14T14:04:22.787 INFO (pid:13756) [completion-complete] - Results from: around
2020-04-14T14:04:23.075 INFO (pid:13756) [completion-complete] - Results from: around
2020-04-14T14:04:23.283 INFO (pid:13756) [completion-complete] - Results from: around

@fannheyward
Copy link
Member

Yes, it has started to work.

@dakyskye
Copy link
Author

OK, I'll close this issue as it has been solved.

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

2 participants