Giter VIP home page Giter VIP logo

Comments (5)

mattn avatar mattn commented on September 21, 2024 1

Could you please upgrade yaml-language-server to 0.6.0 ?

from vim-lsp-settings.

mattn avatar mattn commented on September 21, 2024

I don't reproduce this but this patch fix your issue?

diff --git a/settings/yaml-language-server.vim b/settings/yaml-language-server.vim
index e16abef..08f766d 100644
--- a/settings/yaml-language-server.vim
+++ b/settings/yaml-language-server.vim
@@ -8,6 +8,9 @@ augroup vimlsp_settings_yaml_language_server
       \ 'whitelist': lsp_settings#get('yaml-language-server', 'whitelist', ['yaml']),
       \ 'blacklist': lsp_settings#get('yaml-language-server', 'blacklist', []),
       \ 'config': lsp_settings#get('yaml-language-server', 'config', {}),
-      \ 'workspace_config': lsp_settings#get('yaml-language-server', 'workspace_config', {name, key->{'json': {'format': {'enable': v:true}, 'schemas': json_decode(join(readfile(expand('<sfile>:h:h') . '/data/catalog.json'), "\n"))['schemas']}}}),
+      \ 'workspace_config': lsp_settings#get('yaml-language-server', 'workspace_config', {name, key->{
+      \   'symbol': {'symbolKind': {'valueSet': range(1, 26)}},
+      \   'json': {'format': {'enable': v:true}, 'schemas': json_decode(join(readfile(expand('<sfile>:h:h') . '/data/catalog.json'), "\n"))['schemas']},
+      \ }}),
       \ }
 augroup END

from vim-lsp-settings.

mattn avatar mattn commented on September 21, 2024

Probably, you can install with:

  1. Open yaml file
  2. :LspInstallServer

from vim-lsp-settings.

husainaloos avatar husainaloos commented on September 21, 2024

That unfortunately didn't solve it :/

Still getting the same error. However, if you are not able to reproduce it, let me look into how to reproduce it if I can so that I know the root cause.

from vim-lsp-settings.

husainaloos avatar husainaloos commented on September 21, 2024

Could you please upgrade yaml-language-server to 0.6.0 ?

Thank you. This helped me find the issue.

It appears that I already have yaml-language-server installed on my machine with outdated version. The solution was to remove that one and have vim-lsp-settings handle the downloading.

Doing so fixed the issue.

from vim-lsp-settings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.