Skip to content

signcolumn includes symbols where no diagnostic exists (signcolumn/gutter is stale) #952

@everett1992

Description

@everett1992
  • Did you upgrade to latest plugin version? Yes
  • Did you upgrade to/compile latest binary? Run shell command
    bin/languageclient --version to get its version number. Yes, 0.1.156
  • (Neovim users only) Did you check output of :checkhealth LanguageClient?
                                                                                                                                                                        
  health#LanguageClient#check                                                                                                                                           
  ========================================================================                                                                                              
    - OK: binary found: <...>/.vim/plugged/LanguageClient-neovim/bin/languageclient                                       
    - OK: languageclient 0.1.156 fb02afed15363c8879277b413b89e6ca51589e6a                                                                                               
    - OK: Floating window is supported and will be used for hover

Describe the bug

Some symbols in the gutter / signcolumn remain after the diagnostic is cleared.

  • The quickfix window does not display a diagnostic on the line with the symbol.
  • The status line does not display any diagnostics when the cursor is on the line with the symbol.
  • Toggling the signcolumn does not fix the issue.
  • Redrawing the screen with ctrl-l does not fix the issue.
  • Stopping and Starting the language client does not fix the issue.
  • Restarting neovim does fix the issue.
  • I've seen it with every language server I've used (typescript-language-server, javascript-typescript-langserver, eclipse jdtl)

Environment

  • neovim/vim version (nvim --version or vim --version):
nvim --version
NVIM v0.4.3
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: <removed>

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info
  • This plugin version (git rev-parse --short HEAD):
fb02afe
  • This plugin's binary version (bin/languageclient --version):
languageclient 0.1.156 fb02afed15363c8879277b413b89e6ca51589e6a

To Reproduce

call plug#begin('~/.local/share/nvim/plugged')

Plug 'autozimu/LanguageClient-neovim', {
    \ 'branch': 'next',
    \ 'do': 'bash install.sh',
    \ }

call plug#end()

set signcolumn=yes

let g:LanguageClient_serverCommands = {
    \ 'rust': ['npx', 'typescript-language-server', '--stdio'],
    \ }
let g:LanguageClient_loggingLevel = 'INFO'
let g:LanguageClient_virtualTextPrefix = ''
let g:LanguageClient_loggingFile =  expand('~/.local/share/nvim/LanguageClient.log')
let g:LanguageClient_serverStderr = expand('~/.local/share/nvim/LanguageServer.log')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions