neoclide / coc-yaml

Yaml language server extension for coc.nvim
MIT License
248 stars 23 forks source link

can't resolve yaml-language-server #17

Closed dakyskye closed 4 years ago

dakyskye commented 4 years ago

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 commented 4 years ago

How do you install coc-yaml?

dakyskye commented 4 years ago

@fannheyward I added it to coc_global_extensions variable.

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

then coc installed it itself.

fannheyward commented 4 years ago

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

dakyskye commented 4 years ago

No. coc-yaml got no node_modules.

fannheyward commented 4 years ago

Try :CocInstall coc-yaml

dakyskye commented 4 years ago

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

dakyskye commented 4 years ago

Oh yeah, it started installing coc-yaml.

dakyskye commented 4 years ago

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

fannheyward commented 4 years ago

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

dakyskye commented 4 years ago

: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 commented 4 years ago

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 commented 4 years ago

Yes, it has started to work.

dakyskye commented 4 years ago

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