Open manlme opened 1 year ago
Seems this issue is coming from the YAML language server see someone else trying to fix it there: https://github.com/redhat-developer/yaml-language-server/pull/841
See also https://github.com/redhat-developer/yaml-language-server/issues/312 etc.
One workaround would be to edit .config/coc/extensions/node_modules/coc-yaml/dist/languageserver.js
and find KUBERNETES_SCHEMA_URL and change the URL. It's hardcoded to https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.20.5-standalone-strict/all.json
Why is it hard-coded? It would be fare more flexible to set this e.g. by configuration or environment variables. 1.20.5 is mildly spoken: old.
Need upgrade for the language server.
I tried to switch the version of kubernetes schema with both url and local file as below in yaml.schemas. it's always report the error and the completion is not working well. when using keyword kubernete. but the schema version for kubernete from dist/languageserver.js is too old. where did this file generated and how?
the error
CocInfo