Coc.nvim: No signatures for overloaded functions for c++

Created on 2 Jan 2020  路  20Comments  路  Source: neoclide/coc.nvim

Result from CocInfo

versions

vim version: NVIM v0.5.0-285-g8645d480b
node version: v10.17.0
coc.nvim version: 0.0.74-15f685206a
term: xterm-256color
platform: linux

Messages

Error detected while processing function gitgutter#utility#supports_overscore_sign:
line 4:
E113: Unknown option: termencoding
E15: Invalid expression: &termencoding ==? &encoding || &termencoding == ''

"libgc/CGValue.hpp" 316L, 8901C written

"libgc/CGValue.hpp" 315L, 8888C written

Output channel: snippets

Output channel: git

Looking for git in: git

git rev-parse --show-toplevel
resolved root: /home/pavlo/Projects/ChemGenie
resolved root: /home/pavlo/Projects/ChemGenie
git symbolic-ref --short HEAD
git diff --name-status
git diff --staged --name-status
git ls-files --others --exclude-standard
resolved root: /home/pavlo/Projects/ChemGenie
git ls-files -- libgc/CGValue.hpp
resolved root: /home/pavlo/Projects/ChemGenie
git symbolic-ref --short HEAD
git diff --name-status
git diff --staged --name-status
git ls-files --others --exclude-standard
resolved root: /home/pavlo/Projects/ChemGenie
resolved root: /home/pavlo/Projects/ChemGenie
git symbolic-ref --short HEAD
git ls-files -- libgc/CGValue.hpp
git diff --name-status
git diff --staged --name-status
git ls-files --others --exclude-standard
resolved root: /home/pavlo/Projects/ChemGenie
resolved root: /home/pavlo/Projects/ChemGenie
git symbolic-ref --short HEAD
git ls-files -- libgc/CGValue.hpp
git diff --name-status
git diff --staged --name-status
git ls-files --others --exclude-standard
resolved root: /home/pavlo/Projects/ChemGenie
resolved root: /home/pavlo/Projects/ChemGenie
git symbolic-ref --short HEAD
git ls-files -- libgc/CGValue.hpp
git diff --name-status
git diff --staged --name-status
git ls-files --others --exclude-standard
resolved root: /home/pavlo/Projects/ChemGenie
git ls-files -- libgc/CGValue.hpp
resolved root: /home/pavlo/Projects/ChemGenie
git ls-files -- libgc/CGValue.hpp
resolved root: /home/pavlo/Projects/ChemGenie
git ls-files -- libgc/CGValue.hpp
resolved root: /home/pavlo/Projects/ChemGenie
git ls-files -- libgc/CGValue.hpp
resolved root: /home/pavlo/Projects/ChemGenie
git ls-files -- libgc/CGValue.hpp
resolved root: /home/pavlo/Projects/ChemGenie
git ls-files -- libgc/CGValue.hpp
resolved root: /home/pavlo/Projects/ChemGenie
resolved root: /home/pavlo/Projects/ChemGenie
git symbolic-ref --short HEAD
git ls-files -- libgc/CGValue.hpp
git diff --name-status
git diff --staged --name-status
git ls-files --others --exclude-standard

Output channel: languageserver.clangd

I[11:01:45.725] clangd version 9.0.1-2
I[11:01:45.725] Working directory: /home/pavlo/Projects/ChemGenie
I[11:01:45.725] argv[0]: clangd-9
I[11:01:45.725] argv[1]: --background-index
I[11:01:45.725] Starting LSP over stdin/stdout
I[11:01:45.725] <-- initialize(0)
I[11:01:45.726] --> reply:initialize(0) 0 ms
I[11:01:45.729] <-- initialized
I[11:01:45.729] unhandled notification initialized
I[11:01:45.732] <-- textDocument/didOpen
I[11:01:45.733] Enqueueing 10 commands for indexing
I[11:01:45.734] Updating file /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp with command inferred from ../libgc/tests/CGValue-test.cpp
[/home/pavlo/Projects/ChemGenie/build]
c++ --driver-mode=g++ -Ilibgc/tests/ddce249@@cgvalue-test@exe -Ilibgc/tests -I../libgc/tests -Ilibgc -I../libgc -I/home/pavlo/Projects/GNOME/install/include/glibmm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/glibmm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/glib-2.0 -I/home/pavlo/Projects/GNOME/install/lib/glib-2.0/include -I/home/pavlo/Projects/GNOME/install/include/sigc++-2.0 -I/home/pavlo/Projects/GNOME/install/lib/sigc++-2.0/include -I/home/pavlo/Projects/GNOME/install/include/gtkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gtkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/atkmm-1.6 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0/unix-print -I/home/pavlo/Projects/GNOME/install/include/gdkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gdkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/giomm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/giomm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/pangomm-1.4 -I/home/pavlo/Projects/GNOME/install/lib/pangomm-1.4/include -I/home/pavlo/Projects/GNOME/install/include/at-spi2-atk/2.0 -I/home/pavlo/Projects/GNOME/install/include/at-spi-2.0 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0 -I/home/pavlo/Projects/GNOME/install/include/gio-unix-2.0 -I/home/pavlo/Projects/GNOME/install/include/pango-1.0 -I/home/pavlo/Projects/GNOME/install/include/fribidi -I/home/pavlo/Projects/GNOME/install/include/harfbuzz -I/home/pavlo/Projects/GNOME/install/include/atk-1.0 -I/home/pavlo/Projects/GNOME/install/include/cairomm-1.0 -I/home/pavlo/Projects/GNOME/install/lib/cairomm-1.0/include -I/home/pavlo/Projects/GNOME/install/include/cairo -I/home/pavlo/Projects/GNOME/install/include/pixman-1 -I/home/pavlo/Projects/GNOME/install/include/gdk-pixbuf-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0/libgda -I/usr/include/libxml2 --coverage -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -Wall -Wextra -Werror -Wall -g -O2 -pthread -DBOOST_LOG_DYN_LINK -c -std=c++17 /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp -fsyntax-only -resource-dir=/usr/lib/llvm-9/lib/clang/9.0.1
I[11:01:46.018] <-- textDocument/documentSymbol(1)
I[11:01:47.536] <-- textDocument/didChange
I[11:01:47.607] --> textDocument/publishDiagnostics
I[11:01:47.608] --> reply:textDocument/documentSymbol(1) 1590 ms
I[11:01:47.949] <-- textDocument/documentSymbol(2)
I[11:01:47.951] Updating file /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp with command inferred from ../libgc/tests/CGValue-test.cpp
[/home/pavlo/Projects/ChemGenie/build]
c++ --driver-mode=g++ -Ilibgc/tests/ddce249@@cgvalue-test@exe -Ilibgc/tests -I../libgc/tests -Ilibgc -I../libgc -I/home/pavlo/Projects/GNOME/install/include/glibmm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/glibmm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/glib-2.0 -I/home/pavlo/Projects/GNOME/install/lib/glib-2.0/include -I/home/pavlo/Projects/GNOME/install/include/sigc++-2.0 -I/home/pavlo/Projects/GNOME/install/lib/sigc++-2.0/include -I/home/pavlo/Projects/GNOME/install/include/gtkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gtkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/atkmm-1.6 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0/unix-print -I/home/pavlo/Projects/GNOME/install/include/gdkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gdkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/giomm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/giomm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/pangomm-1.4 -I/home/pavlo/Projects/GNOME/install/lib/pangomm-1.4/include -I/home/pavlo/Projects/GNOME/install/include/at-spi2-atk/2.0 -I/home/pavlo/Projects/GNOME/install/include/at-spi-2.0 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0 -I/home/pavlo/Projects/GNOME/install/include/gio-unix-2.0 -I/home/pavlo/Projects/GNOME/install/include/pango-1.0 -I/home/pavlo/Projects/GNOME/install/include/fribidi -I/home/pavlo/Projects/GNOME/install/include/harfbuzz -I/home/pavlo/Projects/GNOME/install/include/atk-1.0 -I/home/pavlo/Projects/GNOME/install/include/cairomm-1.0 -I/home/pavlo/Projects/GNOME/install/lib/cairomm-1.0/include -I/home/pavlo/Projects/GNOME/install/include/cairo -I/home/pavlo/Projects/GNOME/install/include/pixman-1 -I/home/pavlo/Projects/GNOME/install/include/gdk-pixbuf-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0/libgda -I/usr/include/libxml2 --coverage -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -Wall -Wextra -Werror -Wall -g -O2 -pthread -DBOOST_LOG_DYN_LINK -c -std=c++17 /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp -fsyntax-only -resource-dir=/usr/lib/llvm-9/lib/clang/9.0.1
I[11:01:47.986] --> textDocument/publishDiagnostics
I[11:01:47.988] --> reply:textDocument/documentSymbol(2) 39 ms
I[11:01:48.208] <-- textDocument/didChange
I[11:01:48.284] <-- textDocument/completion(3)
I[11:01:48.305] Failed to generate include insertion edits for adding header (FileURI='file:///home/pavlo/Projects/ChemGenie/src/CGDBRecord.hpp', IncludeHeader='file:///home/pavlo/Projects/ChemGenie/src/CGDBRecord.hpp') into /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp: Header not on include path
I[11:01:48.305] Failed to generate include insertion edits for adding header (FileURI='file:///home/pavlo/Projects/ChemGenie/src/CGDBRecord.hpp', IncludeHeader='file:///home/pavlo/Projects/ChemGenie/src/CGDBRecord.hpp') into /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp: Header not on include path
I[11:01:48.307] Code complete: sema context Statement, query scopes [CG::,] (AnyScope=true), expected type
I[11:01:48.308] Code complete: 7 results from Sema, 180 from Index, 0 matched, 0 from identifiers, 100 returned (incomplete).
I[11:01:48.311] --> reply:textDocument/completion(3) 26 ms
I[11:01:48.334] <-- textDocument/didChange
I[11:01:48.365] <-- textDocument/completion(4)
I[11:01:48.376] Code complete: sema context Statement, query scopes [CG::,] (AnyScope=true), expected type
I[11:01:48.376] Code complete: 1 results from Sema, 59 from Index, 0 matched, 0 from identifiers, 60 returned (incomplete).
I[11:01:48.377] --> reply:textDocument/completion(4) 11 ms
I[11:01:48.812] <-- textDocument/documentSymbol(5)
I[11:01:48.815] Updating file /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp with command inferred from ../libgc/tests/CGValue-test.cpp
[/home/pavlo/Projects/ChemGenie/build]
c++ --driver-mode=g++ -Ilibgc/tests/ddce249@@cgvalue-test@exe -Ilibgc/tests -I../libgc/tests -Ilibgc -I../libgc -I/home/pavlo/Projects/GNOME/install/include/glibmm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/glibmm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/glib-2.0 -I/home/pavlo/Projects/GNOME/install/lib/glib-2.0/include -I/home/pavlo/Projects/GNOME/install/include/sigc++-2.0 -I/home/pavlo/Projects/GNOME/install/lib/sigc++-2.0/include -I/home/pavlo/Projects/GNOME/install/include/gtkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gtkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/atkmm-1.6 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0/unix-print -I/home/pavlo/Projects/GNOME/install/include/gdkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gdkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/giomm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/giomm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/pangomm-1.4 -I/home/pavlo/Projects/GNOME/install/lib/pangomm-1.4/include -I/home/pavlo/Projects/GNOME/install/include/at-spi2-atk/2.0 -I/home/pavlo/Projects/GNOME/install/include/at-spi-2.0 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0 -I/home/pavlo/Projects/GNOME/install/include/gio-unix-2.0 -I/home/pavlo/Projects/GNOME/install/include/pango-1.0 -I/home/pavlo/Projects/GNOME/install/include/fribidi -I/home/pavlo/Projects/GNOME/install/include/harfbuzz -I/home/pavlo/Projects/GNOME/install/include/atk-1.0 -I/home/pavlo/Projects/GNOME/install/include/cairomm-1.0 -I/home/pavlo/Projects/GNOME/install/lib/cairomm-1.0/include -I/home/pavlo/Projects/GNOME/install/include/cairo -I/home/pavlo/Projects/GNOME/install/include/pixman-1 -I/home/pavlo/Projects/GNOME/install/include/gdk-pixbuf-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0/libgda -I/usr/include/libxml2 --coverage -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -Wall -Wextra -Werror -Wall -g -O2 -pthread -DBOOST_LOG_DYN_LINK -c -std=c++17 /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp -fsyntax-only -resource-dir=/usr/lib/llvm-9/lib/clang/9.0.1
I[11:01:48.849] --> textDocument/publishDiagnostics
I[11:01:48.851] --> reply:textDocument/documentSymbol(5) 38 ms
I[11:01:49.370] <-- textDocument/didChange
I[11:01:49.435] <-- textDocument/completion(6)
I[11:01:49.463] Code complete: sema context DotMemberAccess, query scopes [CG::] (AnyScope=true), expected type
I[11:01:49.464] Code complete: 49 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 49 returned.
I[11:01:49.465] --> reply:textDocument/completion(6) 30 ms
I[11:01:49.873] Updating file /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp with command inferred from ../libgc/tests/CGValue-test.cpp
[/home/pavlo/Projects/ChemGenie/build]
c++ --driver-mode=g++ -Ilibgc/tests/ddce249@@cgvalue-test@exe -Ilibgc/tests -I../libgc/tests -Ilibgc -I../libgc -I/home/pavlo/Projects/GNOME/install/include/glibmm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/glibmm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/glib-2.0 -I/home/pavlo/Projects/GNOME/install/lib/glib-2.0/include -I/home/pavlo/Projects/GNOME/install/include/sigc++-2.0 -I/home/pavlo/Projects/GNOME/install/lib/sigc++-2.0/include -I/home/pavlo/Projects/GNOME/install/include/gtkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gtkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/atkmm-1.6 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0/unix-print -I/home/pavlo/Projects/GNOME/install/include/gdkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gdkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/giomm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/giomm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/pangomm-1.4 -I/home/pavlo/Projects/GNOME/install/lib/pangomm-1.4/include -I/home/pavlo/Projects/GNOME/install/include/at-spi2-atk/2.0 -I/home/pavlo/Projects/GNOME/install/include/at-spi-2.0 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0 -I/home/pavlo/Projects/GNOME/install/include/gio-unix-2.0 -I/home/pavlo/Projects/GNOME/install/include/pango-1.0 -I/home/pavlo/Projects/GNOME/install/include/fribidi -I/home/pavlo/Projects/GNOME/install/include/harfbuzz -I/home/pavlo/Projects/GNOME/install/include/atk-1.0 -I/home/pavlo/Projects/GNOME/install/include/cairomm-1.0 -I/home/pavlo/Projects/GNOME/install/lib/cairomm-1.0/include -I/home/pavlo/Projects/GNOME/install/include/cairo -I/home/pavlo/Projects/GNOME/install/include/pixman-1 -I/home/pavlo/Projects/GNOME/install/include/gdk-pixbuf-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0/libgda -I/usr/include/libxml2 --coverage -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -Wall -Wextra -Werror -Wall -g -O2 -pthread -DBOOST_LOG_DYN_LINK -c -std=c++17 /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp -fsyntax-only -resource-dir=/usr/lib/llvm-9/lib/clang/9.0.1
I[11:01:49.892] <-- textDocument/documentSymbol(7)
I[11:01:49.914] --> textDocument/publishDiagnostics
I[11:01:49.916] --> reply:textDocument/documentSymbol(7) 23 ms
I[11:01:53.703] <-- textDocument/didChange
I[11:01:54.207] Updating file /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp with command inferred from ../libgc/tests/CGValue-test.cpp
[/home/pavlo/Projects/ChemGenie/build]
c++ --driver-mode=g++ -Ilibgc/tests/ddce249@@cgvalue-test@exe -Ilibgc/tests -I../libgc/tests -Ilibgc -I../libgc -I/home/pavlo/Projects/GNOME/install/include/glibmm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/glibmm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/glib-2.0 -I/home/pavlo/Projects/GNOME/install/lib/glib-2.0/include -I/home/pavlo/Projects/GNOME/install/include/sigc++-2.0 -I/home/pavlo/Projects/GNOME/install/lib/sigc++-2.0/include -I/home/pavlo/Projects/GNOME/install/include/gtkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gtkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/atkmm-1.6 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0/unix-print -I/home/pavlo/Projects/GNOME/install/include/gdkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gdkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/giomm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/giomm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/pangomm-1.4 -I/home/pavlo/Projects/GNOME/install/lib/pangomm-1.4/include -I/home/pavlo/Projects/GNOME/install/include/at-spi2-atk/2.0 -I/home/pavlo/Projects/GNOME/install/include/at-spi-2.0 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0 -I/home/pavlo/Projects/GNOME/install/include/gio-unix-2.0 -I/home/pavlo/Projects/GNOME/install/include/pango-1.0 -I/home/pavlo/Projects/GNOME/install/include/fribidi -I/home/pavlo/Projects/GNOME/install/include/harfbuzz -I/home/pavlo/Projects/GNOME/install/include/atk-1.0 -I/home/pavlo/Projects/GNOME/install/include/cairomm-1.0 -I/home/pavlo/Projects/GNOME/install/lib/cairomm-1.0/include -I/home/pavlo/Projects/GNOME/install/include/cairo -I/home/pavlo/Projects/GNOME/install/include/pixman-1 -I/home/pavlo/Projects/GNOME/install/include/gdk-pixbuf-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0/libgda -I/usr/include/libxml2 --coverage -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -Wall -Wextra -Werror -Wall -g -O2 -pthread -DBOOST_LOG_DYN_LINK -c -std=c++17 /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp -fsyntax-only -resource-dir=/usr/lib/llvm-9/lib/clang/9.0.1
I[11:01:54.249] <-- textDocument/documentSymbol(8)
I[11:01:54.281] --> textDocument/publishDiagnostics
I[11:01:54.284] --> reply:textDocument/documentSymbol(8) 34 ms
I[11:03:20.199] <-- textDocument/didChange
I[11:03:20.526] <-- textDocument/documentSymbol(9)
I[11:03:20.532] Updating file /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp with command inferred from ../libgc/tests/CGValue-test.cpp
[/home/pavlo/Projects/ChemGenie/build]
c++ --driver-mode=g++ -Ilibgc/tests/ddce249@@cgvalue-test@exe -Ilibgc/tests -I../libgc/tests -Ilibgc -I../libgc -I/home/pavlo/Projects/GNOME/install/include/glibmm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/glibmm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/glib-2.0 -I/home/pavlo/Projects/GNOME/install/lib/glib-2.0/include -I/home/pavlo/Projects/GNOME/install/include/sigc++-2.0 -I/home/pavlo/Projects/GNOME/install/lib/sigc++-2.0/include -I/home/pavlo/Projects/GNOME/install/include/gtkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gtkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/atkmm-1.6 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0/unix-print -I/home/pavlo/Projects/GNOME/install/include/gdkmm-3.0 -I/home/pavlo/Projects/GNOME/install/lib/gdkmm-3.0/include -I/home/pavlo/Projects/GNOME/install/include/giomm-2.4 -I/home/pavlo/Projects/GNOME/install/lib/giomm-2.4/include -I/home/pavlo/Projects/GNOME/install/include/pangomm-1.4 -I/home/pavlo/Projects/GNOME/install/lib/pangomm-1.4/include -I/home/pavlo/Projects/GNOME/install/include/at-spi2-atk/2.0 -I/home/pavlo/Projects/GNOME/install/include/at-spi-2.0 -I/home/pavlo/Projects/GNOME/install/include/gtk-3.0 -I/home/pavlo/Projects/GNOME/install/include/gio-unix-2.0 -I/home/pavlo/Projects/GNOME/install/include/pango-1.0 -I/home/pavlo/Projects/GNOME/install/include/fribidi -I/home/pavlo/Projects/GNOME/install/include/harfbuzz -I/home/pavlo/Projects/GNOME/install/include/atk-1.0 -I/home/pavlo/Projects/GNOME/install/include/cairomm-1.0 -I/home/pavlo/Projects/GNOME/install/lib/cairomm-1.0/include -I/home/pavlo/Projects/GNOME/install/include/cairo -I/home/pavlo/Projects/GNOME/install/include/pixman-1 -I/home/pavlo/Projects/GNOME/install/include/gdk-pixbuf-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0 -I/home/pavlo/Projects/GNOME/install/include/libgda-6.0/libgda -I/usr/include/libxml2 --coverage -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -Wall -Wextra -Werror -Wall -g -O2 -pthread -DBOOST_LOG_DYN_LINK -c -std=c++17 /home/pavlo/Projects/ChemGenie/libgc/CGValue.hpp -fsyntax-only -resource-dir=/usr/lib/llvm-9/lib/clang/9.0.1
I[11:03:20.572] --> textDocument/publishDiagnostics
I[11:03:20.573] --> reply:textDocument/documentSymbol(9) 47 ms
I[11:03:20.850] <-- textDocument/didSave
I[11:03:20.851] unhandled notification textDocument/didSave
I[11:03:20.920] <-- textDocument/documentSymbol(10)
I[11:03:20.921] --> reply:textDocument/documentSymbol(10) 0 ms

Describe the bug

Screenshot from 2020-01-02 11-05-22
As can be seen from the picture, there are 7 overloaded functions available but no signatures. If I have only one function and press C-y for the selected candidate, I jump to the first parameter and see the type, can start typing and jump to the next. Works great. For the overloaded function, if I press C-y I compete for the item and cursor stays right after open parenthesis but no function signature available. If I delete parenthesis and type '(' I get get a list of candidates but only 4.
Screenshot from 2020-01-02 11-11-02

Used plugins:

call plug#begin()

" xml file
Plug 'sukima/xmledit'
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/nerdcommenter'
Plug 'liuchengxu/vista.vim'
Plug 'farmergreg/vim-lastplace'
Plug 'vim-airline/vim-airline'
Plug 'jlanzarotta/bufexplorer'
Plug 'igankevich/mesonic'
Plug 'jiangmiao/auto-pairs'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'dracula/vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'jackguo380/vim-lsp-cxx-highlight'
Plug 'ludovicchabant/vim-gutentags'
Plug 'skywind3000/gutentags_plus'
Plug 'ryanoasis/vim-devicons'
Plug 'aklt/plantuml-syntax'
Plug 'sakhnik/nvim-gdb'
Plug 'vim-scripts/valgrind.vim'
call plug#end()

coc setup

set hidden
set nobackup
set nowritebackup
set cmdheight=3
set updatetime=300
set shortmess+=c
set signcolumn=yes
inoremap
\ pumvisible() ? "\" :
\ check_back_space() ? "\" :
\ coc#refresh()
inoremap pumvisible() ? "\" : "\"

function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction

inoremap coc#refresh()
inoremap pumvisible() ? "\" : "\u\"
nmap [g (coc-diagnostic-prev)
nmap ]g (coc-diagnostic-next)

nmap gd (coc-definition)
nmap gy (coc-type-definition)
nmap gi (coc-implementation)
nmap gr (coc-references)

nnoremap K :call show_documentation()

function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('')
else
call CocActionAsync('doHover')
endif
endfunction

autocmd CursorHold * silent call CocActionAsync('highlight')

nmap rn (coc-rename)
xmap f (coc-format-selected)
nmap f (coc-format-selected)

augroup mygroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocActionAsync('formatSelected')
" Update signature help on jump placeholder
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end

xmap a (coc-codeaction-selected)
nmap a (coc-codeaction-selected)

nmap ac (coc-codeaction)
nmap qf (coc-fix-current)

xmap if (coc-funcobj-i)
xmap af (coc-funcobj-a)
omap if (coc-funcobj-i)
omap af (coc-funcobj-a)

nmap (coc-range-select)
xmap (coc-range-select)

command! -nargs=0 Format :call CocActionAsync('format')
command! -nargs=? Fold :call CocActionAsync('fold', )
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')

let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'cocstatus', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'cocstatus': 'coc#status'
\ },
\ }

nnoremap a :CocList diagnostics
nnoremap e :CocList extensions
nnoremap c :CocList commands
nnoremap o :CocList outline
nnoremap s :CocList -I symbols
nnoremap j :CocNext
nnoremap k :CocPrev
nnoremap p :CocListResume

hi default CocHighlightText guibg=223 ctermbg=244
imap (coc-snippets-expand)
vmap (coc-snippets-select)
let g:coc_snippet_next = ''
let g:coc_snippet_prev = ''
imap (coc-snippets-expand-jump)

LSP Server

I use clangd version 9.0.1-2

Not sure what else I should provide.

Languageserver Bug

Most helpful comment

I found that this can be controlled by an argument for clangd.

    "clangd.arguments": [
        "--compile-commands-dir=./build",
        "--background-index",
        "--completion-style=detailed"
    ],

Specifically --completion-style=detailed. Play with other arguments too. man clangd

All 20 comments

It looks like this issue related to clangd-9 compatibility. If I switch to clangd-8 I see each overloaded function individually. See relevant discussion at clangd-dev-list. Is there any way to expend the grouped functions? Thanks.

Use autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') in your vimrc.

It just looks like the floating window is too short and you need to scroll to see the other overloads?

Also check #305 for coc.nvim resolve limitation when compared to vscode.

Use autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') in your vimrc.

I already have this defined.

augroup mygroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocActionAsync('formatSelected')
" Update signature help on jump placeholder
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end

If I have nonoverloading function it works as expected. After C-y I jump to the first parameter and can see the signature. However, it is not a case for the overloading function.

It just looks like the floating window is too short and you need to scroll to see the other overloads?

Also check #305 for coc.nvim resolve limitation when compared to vscode.

I believe cmdheight is responsible for that. I played with numbers from 1 to 15. The problem here I don't jump to the first parameter after C-y and I don't see any signature(s) for any overloaded version.
Typing '(' after function name triggers some but not all signatures.

Typing '(' after function name triggers some but not all signatures.

This is the point where I suggested it could be due to short window. Can you confirm whether you can scroll other overloads or not when typing (?

Regarding it not showing overloads after expansion (<c-y>), it may be due to the server. It works for some, but doesn't for others. See https://github.com/rust-analyzer/rust-analyzer/issues/2036 for example.

How can I scroll? Kaymap?

@pavlosun with mouse (set mouse=a).

Ok, it helps. I see more then 4 functions. Now a question, how to make that floating window automatically expand. Any idea?

@pavlosun No. It's just a bug on the server, or on the client. As I explained, this is happening with some servers, and for others it does not. It may be simply the case that the server does not support it. For C++, check ccls instead of clangd for example, ccls does not have this issue, but it shows all the overloads on member access, before (, it doesn't use "[7 overloads]", etc, at all. So it shows the overloads twice.

If you want to scroll with keyboard, check this discussion on #1405.

Actually, I believe this is a bug with coc.nvim, so I think this issue should be reopened (cc @chemzqm).

I just checked https://github.com/rust-analyzer/rust-analyzer/issues/2036 again, where this also fails for a long time, and noticed that executing :call CocAction("showSignatureHelp") manually with cursor placed inside an empty pair of function parentheses cause the signatureHelp to show up.

So I think this is an issue with coc.nvim, some race issue (some delay, etc) when the cursor jumps and the timing of the server response, which cause it not to show automatically on CocJumpPlaceholder, but cause it to show when called manually.

Well, I noticed that happens with coc-rust-analyzer. @pavlosun, can you confirm this also happens with clangd? Just execute :call CocAction("showSignatureHelp") manually to see whether signatureHelp is displayed.

I can confirm, it works for clangd-9. I do see signatures but not all, since pop-up window doesn't have appropriate height.

Hi, this is also happening for me with clangd-10 and C++. Can this be reopened?
I tried manually :call CocAction("showSignatureHelp") and I can see 2 out of 7 signatures.

I found that this can be controlled by an argument for clangd.

    "clangd.arguments": [
        "--compile-commands-dir=./build",
        "--background-index",
        "--completion-style=detailed"
    ],

Specifically --completion-style=detailed. Play with other arguments too. man clangd

@sbenedetto it's problem of your language server, there's nothing we can do.
Checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

I don't think this is a problem with LS. I would consider this as a feature that doesn't go well with nvim itself. But using --completion-style=detailed switches grouping of the overloaded functions to better work with nvim.

fwiw, all overloads are displayed on signatureHelp anyway (once reaching (), so this is more relevant if one relies a lot on snippet expansion for call arguments.

Specifically --completion-style=detailed. Play with other arguments too. man clangd

This fixed my issue! Thanks a lot.

Was this page helpful?
0 / 5 - 0 ratings