Comments (15)
Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel
from coc-yaml.
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.
not working
from coc-yaml.
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.
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.
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.
@esn89 - can you provide an example yaml? I use coc-yaml and it reports warnings and errors for me.
from coc-yaml.
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.
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
VS Code
from coc-yaml.
Could you show me your vimrc and :CocConfig please?
from coc-yaml.
Here is my coc-related vimrc.
Here is my coc-settings.json
.
from coc-yaml.
@pbnj Thank you, I will try to tinker around and make it work.
from coc-yaml.
Still no luck, do you mind letting me know your nvim version and yaml-language-server version?
from coc-yaml.
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.
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)
- 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.