Comments (15)
Fixed on v1.1.2
from coc-yaml.
happens here too after update.
CocInfo
## versions
vim version: NVIM v0.4.4
node version: v14.15.0
coc.nvim version: 0.0.79-56bbd049d0
coc.nvim directory: /Users/x/.vim/plugged/coc.nvim
term: iTerm.app
platform: darwin
2020-11-09T12:32:30.699 INFO (pid:40119) [model-installer] - Extension download at /var/folders/lq/_m7b8pkd40g7jslfg_pb9bdh00f272/T/nvim9gL6xs/coc-yaml-N3vxSK
2020-11-09T12:32:30.700 INFO (pid:40119) [model-installer] - Installing dependencies by: /usr/local/bin/npm install --ignore-scripts --no-lockfile --production --legacy-peer-deps.
2020-11-09T12:32:37.082 INFO (pid:40119) [model-installer] - [npm] added 28 packages from 19 contributors and audited 501 packages in 5.997s
2020-11-09T12:32:37.228 INFO (pid:40119) [model-installer] - [npm] found 0 vulnerabilities
2020-11-09T12:32:37.228 INFO (pid:40119) [model-installer] - [npm]
2020-11-09T12:32:37.260 INFO (pid:40119) [model-installer] - Update package.json at /Users/x/.config/coc/extensions/package.json
2020-11-09T12:32:37.260 INFO (pid:40119) [model-installer] - Installed extension [email protected] at /Users/x/.config/coc/extensions/node_modules/coc-yaml
2020-11-09T12:32:37.266 INFO (pid:40119) [services] - registered service "yaml"
2020-11-09T12:32:37.266 INFO (pid:40119) [services] - yaml server state change: stopped => starting
2020-11-09T12:32:37.268 INFO (pid:40119) [language-client-index] - yaml started with 40187
2020-11-09T12:32:37.489 INFO (pid:40119) [services] - yaml server state change: starting => stopped
2020-11-09T12:32:37.489 INFO (pid:40119) [services] - yaml server state change: stopped => starting
2020-11-09T12:32:37.491 INFO (pid:40119) [language-client-index] - yaml started with 40191
2020-11-09T12:32:37.699 INFO (pid:40119) [services] - yaml server state change: starting => stopped
2020-11-09T12:32:37.699 INFO (pid:40119) [services] - yaml server state change: stopped => starting
2020-11-09T12:32:37.701 INFO (pid:40119) [language-client-index] - yaml started with 40192
2020-11-09T12:32:37.906 INFO (pid:40119) [services] - yaml server state change: starting => stopped
2020-11-09T12:32:37.906 INFO (pid:40119) [services] - yaml server state change: stopped => starting
2020-11-09T12:32:37.909 INFO (pid:40119) [language-client-index] - yaml started with 40193
2020-11-09T12:32:38.116 INFO (pid:40119) [services] - yaml server state change: starting => stopped
2020-11-09T12:32:38.116 INFO (pid:40119) [services] - yaml server state change: stopped => starting
2020-11-09T12:32:38.118 INFO (pid:40119) [language-client-index] - yaml started with 40195
2020-11-09T12:32:38.322 INFO (pid:40119) [services] - yaml server state change: starting => stopped
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'vscode-json-languageservice/lib/umd/services/jsonDefinition'
Require stack:
- /Users/x/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js
- /Users/x/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js
- /Users/x/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/Users/x/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js:5:26)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/x/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js',
'/Users/x/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js',
'/Users/x/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/server.js'
]
}
[Info - 12:32:20 PM] Connection to server got closed. Server will restart.
Fixed by running CocInstall [email protected]
from coc-yaml.
I'm currently getting this issue consistently now on all yaml files. @chemzqm
from coc-yaml.
from coc-yaml.
Please use latest coc.nvim
from coc-yaml.
Now:
vim version: VIM - Vi IMproved 8.2 8021930
node version: v10.23.0
coc.nvim version: 0.0.79-8230b63641
-
- ✓ coc-yaml Installed extension [email protected]
But error return again :(
from coc-yaml.
I am using the latest version and having the same issue.
## versions
vim version: NVIM v0.4.4
node version: v14.15.0
coc.nvim version: 0.0.79-e1ef9858a7
coc.nvim directory: /Users/x/.vim/plugged/coc.nvim
term: iTerm.app
platform: darwin
- ✓ coc-yaml Current version 1.1.0 is up to date.
from coc-yaml.
Yaml requires old vscode-json-languageservice module to work, but npm not follow semver in package.json.
from coc-yaml.
great, I can confirm it works!
from coc-yaml.
It works for me too. Thanks!
from coc-yaml.
yup works for me too 👍
from coc-yaml.
It's failing again in 1.4.0, same error message
from coc-yaml.
Returning to 1.3.1 fixes the issue
from coc-yaml.
Dependencies management of yaml-language-server
is really bad.
from coc-yaml.
Same issue (issues here?). at first I thought it's a problem with coc.vim but then TypeScript/Rust autocompletion and formatting works just fine. I can't even get the plugin to install correct (I get "Language client is not ready yet") error.
from coc-yaml.
Related Issues (20)
- completion for yaml is partially working HOT 2
- Can a license be added?
- `yaml.selectSchema` command should have "no schema" as an option HOT 5
- Some schemas missing in selectSchema list
- How I can change version kubernetes schema from 1.22.4 to another HOT 9
- No file not starting language server HOT 1
- JSON schemas with a `required` attribute cause `coc-yaml` to break the LSP contract on `textDocument/completion` request HOT 1
- How do I configure a schema that uses a "bundle" format? HOT 4
- coc-yaml cannot resolve $ref for ansiblem.json schema HOT 3
- formatting not respecting yaml spec 1.2 for Collections HOT 4
- about docker-compose.yml HOT 2
- docker-compose HOT 1
- Add a command to go to the schema for the current file HOT 1
- Show type in hover HOT 4
- Load schema from file path
- switch schema for kubernetes HOT 3
- Cannot get yaml-language-server to start HOT 1
- [question] How to update json schema store's schemas? HOT 1
- How to disable "yaml.validate" for a particular folder as opposed to globally? HOT 1
- Allow disabeling the language server for some file patterns
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-yaml.