Code Monkey home page Code Monkey logo

Comments (15)

chemzqm avatar chemzqm commented on August 11, 2024

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

from coc-yaml.

esn89 avatar esn89 commented on August 11, 2024

Can I clarify this:
Do I need to set up the config in the "languageserver": {} block?

I thought I do not need to if I install it as an extension via :CocInstall coc-yaml

I have added like this:

	"yaml.validate": true,
	"yaml.completion": true,
	"yaml.format.enable": true,
	"yaml.trace.server": "verbose",
	"languageserver": {

:CocOpenLog still shows the same.

from coc-yaml.

maulanakmal avatar maulanakmal commented on August 11, 2024

not working

from coc-yaml.

esn89 avatar esn89 commented on August 11, 2024

Also wondering: is this deprecated/not supported anymore? If so, I would have to move over to ALE to support Yaml linting

from coc-yaml.

pbnj avatar pbnj commented on August 11, 2024

@esn89

Do I need to set up the config in the "languageserver": {} block?

No.

:CocOpenLog still shows the same

I don't see a problem in your logs.

Can you please tell us what you're trying to do or what is not meeting your expectations?

from coc-yaml.

esn89 avatar esn89 commented on August 11, 2024

The problem I am facing is that, if I have a file that is not valid yaml, it does not warn me or raise an error.

from coc-yaml.

pbnj avatar pbnj commented on August 11, 2024

@esn89 - can you provide an example yaml? I use coc-yaml and it reports warnings and errors for me.

from coc-yaml.

esn89 avatar esn89 commented on August 11, 2024

Here you go:

version: 3
automerge: false
projects:
  asdfa
- name: bob
  dir: ../Music
  workspace: default
  apply_requirements: ["done", "finished"

I expect it to highlight "asdfa" since it isn't really valid. And to highlight the missing bracket after "finished".

And the :CocOpenLog

2020-08-24T13:07:17.796 WARN (pid:52192) [attach] - Plugin not ready when received "highlight" []
2020-08-24T13:07:18.047 INFO (pid:52192) [services] - registered service "yaml"
2020-08-24T13:07:18.049 INFO (pid:52192) [services] - yaml server state change: stopped => starting
2020-08-24T13:07:18.051 INFO (pid:52192) [plugin] - coc.nvim 0.0.78 initialized with node: v10.22.0 after 225ms
2020-08-24T13:07:18.056 INFO (pid:52192) [language-client-index] - yaml started with 52268
2020-08-24T13:07:18.380 INFO (pid:52192) [services] - yaml server state change: starting => running
2020-08-24T13:07:18.387 INFO (pid:52192) [services] - service yaml started
2020-08-24T13:07:29.941 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:33.278 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:33.838 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:35.247 INFO (pid:52192) [completion-complete] - Results from: file
2020-08-24T13:07:37.067 INFO (pid:52192) [willSaveHandler] - Will save cost: 63
2020-08-24T13:07:43.441 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:44.109 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:44.254 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:44.388 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:45.374 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:45.543 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:45.677 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:45.820 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:45.978 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:47.043 INFO (pid:52192) [willSaveHandler] - Will save cost: 63
2020-08-24T13:07:51.169 INFO (pid:52192) [willSaveHandler] - Will save cost: 61
2020-08-24T13:07:53.170 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:53.347 INFO (pid:52192) [completion-complete] - Results from: around
2020-08-24T13:07:54.233 INFO (pid:52192) [willSaveHandler] - Will save cost: 64

from coc-yaml.

pbnj avatar pbnj commented on August 11, 2024

Seems to be working for me.

:CocOpenLog

2020-08-24T21:47:44.270 INFO (pid:42096) [services] - registered service "languageserver.bash"
2020-08-24T21:47:44.272 INFO (pid:42096) [services] - registered service "languageserver.dockerfile"
2020-08-24T21:47:44.272 INFO (pid:42096) [services] - registered service "languageserver.golang"
2020-08-24T21:47:44.272 INFO (pid:42096) [services] - registered service "languageserver.terraform"
2020-08-24T21:47:44.287 INFO (pid:42096) [services] - registered service "eslint"
2020-08-24T21:47:44.451 INFO (pid:42096) [services] - registered service "highlight"
2020-08-24T21:47:44.594 INFO (pid:42096) [services] - registered service "yaml"
2020-08-24T21:47:44.594 INFO (pid:42096) [services] - yaml server state change: stopped => starting
2020-08-24T21:47:44.610 INFO (pid:42096) [language-client-index] - highlight started with 42103
2020-08-24T21:47:44.618 INFO (pid:42096) [language-client-index] - yaml started with 42104
2020-08-24T21:47:44.622 INFO (pid:42096) [plugin] - coc.nvim 0.0.78-bdd9a9e140 initialized with node: v12.16.3 after 417ms
2020-08-24T21:47:44.750 INFO (pid:42096) [services] - yaml server state change: starting => running
2020-08-24T21:47:44.751 INFO (pid:42096) [services] - service yaml started

Screenshots

Vim

Screen Shot 2020-08-24 at 9 45 02 PM

VS Code

Screen Shot 2020-08-24 at 9 43 50 PM

from coc-yaml.

esn89 avatar esn89 commented on August 11, 2024

@pbnj

Could you show me your vimrc and :CocConfig please?

from coc-yaml.

pbnj avatar pbnj commented on August 11, 2024

Here is my coc-related vimrc.
Here is my coc-settings.json.

from coc-yaml.

esn89 avatar esn89 commented on August 11, 2024

@pbnj Thank you, I will try to tinker around and make it work.

from coc-yaml.

esn89 avatar esn89 commented on August 11, 2024

Still no luck, do you mind letting me know your nvim version and yaml-language-server version?

from coc-yaml.

pbnj avatar pbnj commented on August 11, 2024

I'm on vim

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 20 2020 22:55:15)
macOS version
Included patches: 1-1500
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               -farsi             +mouse_sgr         +tag_binary
+arabic            +file_in_path      -mouse_sysmouse    -tag_old_static
+autocmd           +find_in_path      +mouse_urxvt       -tag_any_white
+autochdir         +float             +mouse_xterm       -tcl
-autoservername    +folding           +multi_byte        +termguicolors
-balloon_eval      -footer            +multi_lang        +terminal
+balloon_eval_term +fork()            -mzscheme          +terminfo
-browse            +gettext           +netbeans_intg     +termresponse
++builtin_terms    -hangul_input      +num64             +textobjects
+byte_offset       +iconv             +packages          +textprop
+channel           +insert_expand     +path_extra        +timers
+cindent           +ipv6              +perl              +title
-clientserver      +job               +persistent_undo   -toolbar
+clipboard         +jumplist          +popupwin          +user_commands
+cmdline_compl     +keymap            +postscript        +vartabs
+cmdline_hist      +lambda            +printer           +vertsplit
+cmdline_info      +langmap           +profile           +virtualedit
+comments          +libcall           -python            +visual
+conceal           +linebreak         +python3           +visualextra
+cryptv            +lispindent        +quickfix          +viminfo
+cscope            +listcmds          +reltime           +vreplace
+cursorbind        +localmap          +rightleft         +wildignore
+cursorshape       +lua               +ruby              +wildmenu
+dialog_con        +menu              +scrollbind        +windows
+diff              +mksession         +signs             +writebackup
+digraphs          +modify_fname      +smartindent       -X11
-dnd               +mouse             -sound             -xfontset
-ebcdic            -mouseshape        +spell             -xim
+emacs_tags        +mouse_dec         +startuptime       -xpm
+eval              -mouse_gpm         +statusline        -xsmp
+ex_extra          -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+extra_search      +mouse_netterm     +syntax            -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: clang   -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o vim        -lncurses -liconv -lintl -framework AppKit  -L/usr/local/opt/lua/lib -llua5.3 -mmacosx-version-min=10.15 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.32.0/lib/perl5/5.32.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc  -L/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/config-3.8-darwin -lpython3.8 -framework CoreFoundation  -lruby.2.7     

And on coc-yaml: - ✓ coc-yaml Current version 1.0.5 is up to date. which ships with yaml-language-server version 0.10.0

from coc-yaml.

esn89 avatar esn89 commented on August 11, 2024

Nevermind, I found the error, it was my fault.

I was experimenting with ale and had this in my coc-settings.json:
"diagnostic.displayByAle": true,

I deleted it and it works.

from coc-yaml.

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.