Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key not present in Dictionary: severity #757

Closed
vsiles opened this issue Mar 17, 2020 · 0 comments · Fixed by #758
Closed

Key not present in Dictionary: severity #757

vsiles opened this issue Mar 17, 2020 · 0 comments · Fixed by #758

Comments

@vsiles
Copy link

vsiles commented Mar 17, 2020

Hi !

Since this morning, I'm getting a lot of these errors that mess up the vim window:

E716: Key not present in Dictionary: severity
E116: Invalid arguments for function get(s:diagnostic_kinds, l:diag['severity'], 'error')
Press ENTER or type command to continue
Error detected while processing function airline#extensions#lsp#get_error[1]..airline#extensions#lsp#get[13]..lsp#get_buffer_diagnostics_counts[1]..lsp#ui#vim#diagnostics#get_buffer_diagnostics_counts:
line   11:
E716: Key not present in Dictionary: severity
Press ENTER or type command to continue
Error detected while processing function airline#extensions#lsp#get_error[1]..airline#extensions#lsp#get[13]..lsp#get_buffer_diagnostics_counts[1]..lsp#ui#vim#diagnostics#get_buffer_diagnostics_counts:
line   11:

Looks like it is trigger by vim-lsp/autoload/lsp/ui/vim/diagnostics.vim

Here are my versions:

  • VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 4 2020 14:20:23)
  • vim-lsp:
$ git log -1
commit a5b027193d94057ddc5939f4091ec310d97c37cb (HEAD -> master, origin/master, origin/HEAD)
Author: Tsuyoshi CHO <Tsuyoshi.CHO+github@Gmail.com>
Date:   Mon Mar 16 13:05:58 2020 +0900

    help: fix blacklist description (#756)

So far my work around is to use let g:lsp_diagnostics_enabled = 0 " disable diagnostics support
vim-lsp.log
asyncomplete.log

mattn added a commit that referenced this issue Mar 17, 2020
mattn added a commit that referenced this issue Mar 17, 2020
* Count errors if severity is 1 or not have severity

Fixes #757

* Add test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant