neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
10.33k stars 2.05k forks source link

[Bug] Error when trying to display function calls and callers with ccls LSP #959

Closed pidgeon777 closed 3 years ago

pidgeon777 commented 3 years ago
NVIM v0.5.0-dev+1384-gf2906a466
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe /DWIN32 /D_WINDOWS /W3 /MD /Zi /O2 /Ob1 /DNDEBUG /W3 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DWIN32 -D_WIN32_WINNT=0x0600 -DINCLUDE_GENERATED_DECLARATIONS -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -ID:/a/neovim/neovim/build/config -ID:/a/neovim/neovim/src -ID:/a/neovim/neovim/nvim-deps/usr/include -ID:/a/neovim/neovim/build/src/nvim/auto -ID:/a/neovim/neovim/build/include
Compilato da runneradmin@fv-az152-886

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

   file vimrc di sistema: "$VIM\sysinit.vim"
         $VIM di riserva: "C:/Program Files/nvim/share/nvim"

Run :checkhealth for more info

How to reproduce the problem from neovim startup

Actual behaviour

In my Neovim 0.5.0 setup configured with ccls as LSP for C, the following seem to work:

e.g.:

vim.cmd("nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>")
vim.cmd("nnoremap <silent> gD <cmd>lua vim.lsp.buf.declaration()<CR>")
vim.cmd("nnoremap <silent> gr <cmd>lua vim.lsp.buf.references()<CR>")
vim.cmd("nnoremap <silent> gi <cmd>lua vim.lsp.buf.implementation()<CR>")
....

and most of the remaining ccls capabilities.

But those mappings/commands:

vim.cmd("nnoremap <silent> g1 <cmd>lua vim.lsp.buf.incoming_calls()<CR>")
vim.cmd("nnoremap <silent> g2 <cmd>lua vim.lsp.buf.outgoing_calls()<CR>")

doesn't seem to work. Neovim reports:

method textDocument/prepareCallHierarchy is not supported by any of the servers registered for the current buffer

Anyway, I'm also using vim-ccls plugin and it reports for all of its commands:

vim-ccls: nvim-lspconfig error: no result from ccls

when executing them (with or without a word under the cursor).

I opened a issue report here:

https://github.com/m-pilia/vim-ccls/issues/45

Expected behaviour

I would expect Neovim LSP to be able to show function calls and callers with ccls.

Minimal init.vim or init.lua and code sample

LSP Config .lua setting:

require'lspconfig'.ccls.setup {
    cmd = {"ccls", "--log-file=ccls.log", "-v=1"},
    root_dir = require('lspconfig/util').root_pattern("compile_commands.json", "compile_flags.txt", ".ccls"),
    on_attach = require'lsp'.common_on_attach,
}

compile_commands.json:

[
{
  "directory": "C:/Work/Projects/Git/ACounter/testlut/Build_Unix",
  "command": "C:/msys64/mingw64/bin/c++.exe   -std=gnu++17 -Weverything -o CMakeFiles/testlut.dir/main.cpp.obj -c C:/Work/Projects/Git/ACounter/testlut/main.cpp",
  "file": "C:/Work/Projects/Git/ACounter/testlut/main.cpp"
}
]

Health check

health#rnvimr#check
========================================================================
## OS
  - ERROR: Ranger is not supported for you OS

## Ranger
  - ERROR: Ranger not Found

## Pynvim
  - ERROR: Pynvim is not found in Python Lib

## Ueberzug (optional)
  - INFO: Ueberzug is not support for Windows

## RPC
  - ERROR: RPC: timeout 3s

health#nvim_treesitter#check
========================================================================
## Installation
  - WARNING: `tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
  - OK: `node` found v14.15.4 (only needed for :TSInstallFromGrammar)
  - OK: `git` executable found.
  - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl" }
  - OK: Neovim was compiled with tree-sitter runtime ABI version 13 (required >=13). Parsers must be compatible with runtime ABI.

## Parser/Features H L F I
  - go             ✓ ✓ ✓ ✓ ✓ 
  - fortran        ✓ . ✓ ✓ . 
  - zig            ✓ ✓ ✓ ✓ ✓ 
  - clojure        ✓ ✓ ✓ . ✓ 
  - bash           ✓ ✓ ✓ . ✓ 
  - beancount      ✓ . ✓ . . 
  - commonlisp     ✓ ✓ ✓ . . 
  - bibtex         ✓ . ✓ ✓ . 
  - supercollider  ✓ ✓ ✓ ✓ ✓ 
  - comment        ✓ . . . . 
  - cpp            ✓ ✓ ✓ ✓ ✓ 
  - r              ✓ ✓ . . . 
  - toml           ✓ ✓ ✓ ✓ ✓ 
  - scala          . . . . . 
  - dockerfile     ✓ . . . ✓ 
  - tsx            ✓ ✓ ✓ ✓ ✓ 
  - python         ✓ ✓ ✓ ✓ ✓ 
  - rust           ✓ ✓ ✓ ✓ ✓ 
  - c              ✓ ✓ ✓ ✓ ✓ 
  - ledger         ✓ . ✓ ✓ ✓ 
  - jsonc          ✓ ✓ ✓ ✓ ✓ 
  - svelte         ✓ . ✓ ✓ ✓ 
  - vue            ✓ . ✓ . ✓ 
  - fish           ✓ ✓ ✓ ✓ ✓ 
  - glimmer        ✓ . . . . 
  - rst            ✓ ✓ . . ✓ 
  - gomod          ✓ . . . . 
  - php            ✓ ✓ ✓ ✓ ✓ 
  - graphql        ✓ . . ✓ ✓ 
  - yaml           ✓ ✓ ✓ ✓ ✓ 
  - java           ✓ ✓ . ✓ ✓ 
  - dart           ✓ ✓ . ✓ ✓ 
  - teal           ✓ ✓ ✓ ✓ ✓ 
  - kotlin         ✓ . . . ✓ 
  - latex          ✓ . ✓ . . 
  - json           ✓ ✓ ✓ ✓ . 
  - regex          ✓ . . . . 
  - julia          ✓ ✓ ✓ . ✓ 
  - html           ✓ ✓ ✓ ✓ ✓ 
  - css            ✓ . ✓ ✓ ✓ 
  - scss           ✓ . . ✓ . 
  - javascript     ✓ ✓ ✓ ✓ ✓ 
  - verilog        ✓ ✓ ✓ . ✓ 
  - typescript     ✓ ✓ ✓ ✓ ✓ 
  - erlang         . . . . . 
  - ql             ✓ ✓ . ✓ ✓ 
  - ruby           ✓ ✓ ✓ ✓ ✓ 
  - jsdoc          ✓ . . . . 
  - lua            ✓ ✓ ✓ ✓ ✓ 
  - fennel         ✓ ✓ . . ✓ 
  - ocaml          ✓ ✓ ✓ . ✓ 
  - sparql         ✓ ✓ ✓ ✓ ✓ 
  - nix            ✓ ✓ ✓ . ✓ 
  - query          ✓ ✓ ✓ ✓ ✓ 
  - ocaml_interface✓ ✓ ✓ . ✓ 
  - elm            . . . . . 
  - turtle         ✓ ✓ ✓ ✓ ✓ 
  - c_sharp        ✓ . ✓ . ✓ 

 Legend: H[ighlight], L[ocals], F[olds], I[ndents]
         +) multiple parsers found, only one will be used
         x) errors found in the query, try to run :TSUpdate {lang}

health#mkdp#check
========================================================================
  - INFO: Platform: win
  - INFO: Nvim Version: NVIM v0.5.0-dev+1384-gf2906a466
  - INFO: Node version: v14.15.4

  - INFO: Script: C:\Users\Username\AppData\Local\nvim-data\site\pack\packer\opt\markdown-preview.nvim/app/server.js
  - INFO: Script exists: 1
  - OK: Using node

health#which_key#check
========================================================================
## WhichKey: checking conflicting keymaps
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"gc"**
  - INFO: rhs: `:set operatorfunc=CommentOperator<CR>g@`
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **" z"**
  - INFO: rhs: `:Telescope grep_string<CR>`
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **" c"**
  - INFO: rhs: `:BufferClose<CR>`
  - WARNING: buffer-local keymap overriding global for mode **"n"**, buf: 0, lhs: **" "**
  - INFO: old rhs: `<NOP>`
  - INFO: new rhs: `<cmd>lua require("which-key").show(" ", {mode = "n", auto = true})<cr>`

health#lspconfig#check
========================================================================
## Checking language server protocol configuration
  - ERROR: terraformls: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/terraform/terraform-ls" is not executable.
  - ERROR: tsserver: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/typescript/node_modules/.bin/typescript-language-server" is not executable.
  - ERROR: solargraph: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/ruby/solargraph/solargraph" is not executable.
  - ERROR: kotlin_language_server: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/kotlin/language-server/server/build/install/server/bin/kotlin-language-server.bat" is not executable.
  - ERROR: bashls: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/bash/node_modules/.bin/bash-language-server" is not executable.
  - INFO: html: configuration checked.
  - INFO: ahk_lsp: configuration checked.
  - ERROR: texlab: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/latex/texlab" is not executable.
  - ERROR: pyright: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/python/node_modules/.bin/pyright-langserver" is not executable.
  - INFO: jsonls: configuration checked.
  - ERROR: svelte: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/svelte/node_modules/.bin/svelteserver" is not executable.
  - ERROR: elmls: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/elm/node_modules/.bin/elm-language-server" is not executable.
  - ERROR: yamlls: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/yaml/node_modules/.bin/yaml-language-server" is not executable.
  - ERROR: vuels: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/vue/node_modules/.bin/vls" is not executable.
  - ERROR: vimls: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/vim/node_modules/.bin/vim-language-server" is not executable.
  - INFO: vhdl_tool: configuration checked.
  - ERROR: rust_analyzer: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/rust/rust-analyzer" is not executable.
  - ERROR: dockerls: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/dockerfile/node_modules/.bin/docker-langserver" is not executable.
  - INFO: ccls: configuration checked.
  - ERROR: gopls: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/go/gopls" is not executable.
  - ERROR: efm: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/efm/efm-langserver" is not executable.
  - ERROR: angularls: The given command "ngserver" is not executable.
  - INFO: cssls: configuration checked.
  - ERROR: intelephense: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/php/node_modules/.bin/intelephense" is not executable.
  - ERROR: sumneko_lua: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/lua/sumneko-lua-language-server" is not executable.
  - ERROR: emmet_ls: The given command "emmet-ls" is not executable.
  - INFO: vhdl_ls: configuration checked.
  - ERROR: graphql: The given command "graphql-lsp" is not executable.
  - ERROR: elixirls: The given command "C:\\Users\\Username\\AppData\\Local\\nvim-data/lspinstall/elixir/elixir-ls/language_server.sh" is not executable.
  - ERROR: dartls: The given command "dart" is not executable.

health#nvim#check
========================================================================
## Configuration
  - OK: no issues found

## Performance
  - OK: Build type: RelWithDebInfo

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=^H
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: win32yank

## Python 2 provider (optional)
  - INFO: Using: g:python_host_prog = "C:\Python27\python.exe"
  - INFO: Executable: C:\Python27\python.exe
  - INFO: Python version: 2.7.15
  - INFO: pynvim version: 0.4.2
 (outdated; from ~\AppData\Roaming\Python\Python27\site-packages\neovim)
  - WARNING: Latest pynvim is NOT installed: 0.4.3

## Python 3 provider (optional)
  - INFO: Using: g:python3_host_prog = "C:\Python39\python.exe"
  - INFO: Executable: C:\Python39\python.exe
  - INFO: Python version: 3.9.1
  - INFO: pynvim version: 0.4.2
 (outdated; from C:\Python39\lib\site-packages\neovim)
  - WARNING: Latest pynvim is NOT installed: 0.4.3

## Python virtualenv
  - OK: no $VIRTUAL_ENV

## Ruby provider (optional)
  - WARNING: `ruby` and `gem` must be in $PATH.
    - ADVICE:
      - Install Ruby and verify that `ruby` and `gem` commands work.

## Node.js provider (optional)
  - INFO: Node.js: v14.15.4
  - INFO: Nvim node.js host: C:\Users\Username\AppData\Roaming\npm\node_modules/neovim/bin/cli.js
  - WARNING: Package "neovim" is out-of-date. Installed: 4.9.0, latest: 4.10.0
    - ADVICE:
      - Run in shell: npm install -g neovim
      - Run in shell (if you use yarn): yarn global add neovim

## Perl provider (optional)
  - ERROR: perl provider error:
    - ADVICE:
      - "Neovim::Ext" cpan module is not installed

health#treesitter#check
========================================================================
## Checking treesitter configuration
  - INFO: Runtime ABI version : 13
  - OK: Loaded parser for bash: ABI version 13
  - OK: Loaded parser for beancount: ABI version 13
  - OK: Loaded parser for bibtex: ABI version 13
  - OK: Loaded parser for c: ABI version 13
  - OK: Loaded parser for clojure: ABI version 13
  - OK: Loaded parser for comment: ABI version 13
  - OK: Loaded parser for commonlisp: ABI version 13
  - OK: Loaded parser for cpp: ABI version 13
  - OK: Loaded parser for css: ABI version 13
  - OK: Loaded parser for c_sharp: ABI version 13
  - OK: Loaded parser for dart: ABI version 13
  - OK: Loaded parser for dockerfile: ABI version 13
  - OK: Loaded parser for elm: ABI version 13
  - OK: Loaded parser for erlang: ABI version 13
  - OK: Loaded parser for fennel: ABI version 13
  - OK: Loaded parser for fish: ABI version 13
  - OK: Loaded parser for fortran: ABI version 13
  - OK: Loaded parser for glimmer: ABI version 13
  - OK: Loaded parser for go: ABI version 13
  - OK: Loaded parser for gomod: ABI version 13
  - OK: Loaded parser for graphql: ABI version 13
  - OK: Loaded parser for html: ABI version 13
  - OK: Loaded parser for java: ABI version 13
  - OK: Loaded parser for javascript: ABI version 13
  - OK: Loaded parser for jsdoc: ABI version 13
  - OK: Loaded parser for json: ABI version 13
  - OK: Loaded parser for jsonc: ABI version 13
  - OK: Loaded parser for julia: ABI version 13
  - OK: Loaded parser for kotlin: ABI version 13
  - OK: Loaded parser for latex: ABI version 13
  - OK: Loaded parser for ledger: ABI version 13
  - OK: Loaded parser for lua: ABI version 13
  - OK: Loaded parser for nix: ABI version 13
  - OK: Loaded parser for ocaml: ABI version 13
  - OK: Loaded parser for ocaml_interface: ABI version 13
  - OK: Loaded parser for php: ABI version 13
  - OK: Loaded parser for python: ABI version 13
  - OK: Loaded parser for ql: ABI version 13
  - OK: Loaded parser for query: ABI version 13
  - OK: Loaded parser for r: ABI version 13
  - OK: Loaded parser for regex: ABI version 13
  - OK: Loaded parser for rst: ABI version 13
  - OK: Loaded parser for ruby: ABI version 13
  - OK: Loaded parser for rust: ABI version 13
  - OK: Loaded parser for scala: ABI version 13
  - OK: Loaded parser for scss: ABI version 13
  - OK: Loaded parser for sparql: ABI version 13
  - OK: Loaded parser for supercollider: ABI version 13
  - OK: Loaded parser for svelte: ABI version 13
  - OK: Loaded parser for teal: ABI version 13
  - OK: Loaded parser for toml: ABI version 13
  - OK: Loaded parser for tsx: ABI version 13
  - OK: Loaded parser for turtle: ABI version 13
  - OK: Loaded parser for typescript: ABI version 13
  - OK: Loaded parser for verilog: ABI version 13
  - OK: Loaded parser for vue: ABI version 13
  - OK: Loaded parser for yaml: ABI version 13
  - OK: Loaded parser for zig: ABI version 13
  - OK: Loaded parser for c: ABI version 13
  - OK: Loaded parser for bash: ABI version 13
  - OK: Loaded parser for beancount: ABI version 13
  - OK: Loaded parser for bibtex: ABI version 13
  - OK: Loaded parser for c: ABI version 13
  - OK: Loaded parser for clojure: ABI version 13
  - OK: Loaded parser for comment: ABI version 13
  - OK: Loaded parser for commonlisp: ABI version 13
  - OK: Loaded parser for cpp: ABI version 13
  - OK: Loaded parser for css: ABI version 13
  - OK: Loaded parser for c_sharp: ABI version 13
  - OK: Loaded parser for dart: ABI version 13
  - OK: Loaded parser for dockerfile: ABI version 13
  - OK: Loaded parser for elm: ABI version 13
  - OK: Loaded parser for erlang: ABI version 13
  - OK: Loaded parser for fennel: ABI version 13
  - OK: Loaded parser for fish: ABI version 13
  - OK: Loaded parser for fortran: ABI version 13
  - OK: Loaded parser for glimmer: ABI version 13
  - OK: Loaded parser for go: ABI version 13
  - OK: Loaded parser for gomod: ABI version 13
  - OK: Loaded parser for graphql: ABI version 13
  - OK: Loaded parser for html: ABI version 13
  - OK: Loaded parser for java: ABI version 13
  - OK: Loaded parser for javascript: ABI version 13
  - OK: Loaded parser for jsdoc: ABI version 13
  - OK: Loaded parser for json: ABI version 13
  - OK: Loaded parser for jsonc: ABI version 13
  - OK: Loaded parser for julia: ABI version 13
  - OK: Loaded parser for kotlin: ABI version 13
  - OK: Loaded parser for latex: ABI version 13
  - OK: Loaded parser for ledger: ABI version 13
  - OK: Loaded parser for lua: ABI version 13
  - OK: Loaded parser for nix: ABI version 13
  - OK: Loaded parser for ocaml: ABI version 13
  - OK: Loaded parser for ocaml_interface: ABI version 13
  - OK: Loaded parser for php: ABI version 13
  - OK: Loaded parser for python: ABI version 13
  - OK: Loaded parser for ql: ABI version 13
  - OK: Loaded parser for query: ABI version 13
  - OK: Loaded parser for r: ABI version 13
  - OK: Loaded parser for regex: ABI version 13
  - OK: Loaded parser for rst: ABI version 13
  - OK: Loaded parser for ruby: ABI version 13
  - OK: Loaded parser for rust: ABI version 13
  - OK: Loaded parser for scala: ABI version 13
  - OK: Loaded parser for scss: ABI version 13
  - OK: Loaded parser for sparql: ABI version 13
  - OK: Loaded parser for supercollider: ABI version 13
  - OK: Loaded parser for svelte: ABI version 13
  - OK: Loaded parser for teal: ABI version 13
  - OK: Loaded parser for toml: ABI version 13
  - OK: Loaded parser for tsx: ABI version 13
  - OK: Loaded parser for turtle: ABI version 13
  - OK: Loaded parser for typescript: ABI version 13
  - OK: Loaded parser for verilog: ABI version 13
  - OK: Loaded parser for vue: ABI version 13
  - OK: Loaded parser for yaml: ABI version 13
  - OK: Loaded parser for zig: ABI version 13

LSP log

LspInfo output:

Configured servers: graphql, html, rust_analyzer, yamlls, svelte, vhdl_tool, ccls, efm, ahk_lsp, terraformls, angularls, texlab, pyright, cssls, vimls, vhdl_ls, solargraph, elixirls, intelephense, dockerls, elmls, dartls, vuels, gopls, bashls, kotlin_language_server, jsonls, tsserver, sumneko_lua, emmet_ls
Neovim logs at: C:\Users\Username\AppData\Local\Temp\nvim/lsp.log

1 client(s) attached to this buffer: ccls

  Client: ccls (id 1)
    root:      C:\Work\Projects\Git\ACounter\testlut
    filetypes: c, cpp, objc, objcpp
    cmd:       ccls --log-file=ccls.log -v=1

1 active client(s): 

  Client: ccls (id 1)
    root:      C:\Work\Projects\Git\ACounter\testlut
    filetypes: c, cpp, objc, objcpp
    cmd:       ccls --log-file=ccls.log -v=1

Clients that match the filetype cpp:

  Config: ccls
    cmd:               ccls --log-file=ccls.log -v=1
    cmd is executable: True
    identified root:   C:\Work\Projects\Git\ACounter\testlut
    custom handlers:   

Neovim LSP log file:

https://gist.github.com/pidgeon777/2105f8e536a99e7f1660d743e137ac93

ccls log:

09:14:47              D:\CodeBlocks\ccls\src\messages\initialize.cc:274 I initialize in directory C:/Work/Projects/Git/ACounter/testlut with uri file:///C:/Work/Projects/Git/ACounter/testlut
09:14:47              D:\CodeBlocks\ccls\src\messages\initialize.cc:297 I initializationOptions: {"compilationDatabaseCommand":"","compilationDatabaseDirectory":"","cache":{"directory":".ccls-cache","format":"binary","hierarchicalPath":false,"retainInMemory":2},"capabilities":{"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"}","moreTriggerCharacter":[]},"foldingRangeProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}},"clang":{"excludeArgs":[],"extraArgs":[],"pathMappings":[],"resourceDir":""},"client":{"diagnosticsRelatedInformation":true,"hierarchicalDocumentSymbolSupport":true,"linkSupport":true,"snippetSupport":true},"codeLens":{"localVariables":true},"completion":{"caseSensitivity":2,"detailedLabel":true,"dropOldRequests":true,"duplicateOptional":true,"filterAndSort":true,"include":{"blacklist":[],"maxPathSize":30,"suffixWhitelist":[".h",".hpp",".hh",".inc"],"whitelist":[]},"maxNum":100,"placeholder":true},"diagnostics":{"blacklist":[],"onChange":1000,"onOpen":0,"onSave":0,"spellChecking":true,"whitelist":[]},"highlight":{"largeFileSize":2097152,"lsRanges":false,"blacklist":[],"whitelist":[]},"index":{"blacklist":[],"comments":2,"initialNoLinkage":false,"initialBlacklist":[],"initialWhitelist":[],"maxInitializerLines":5,"multiVersion":0,"multiVersionBlacklist":[],"multiVersionWhitelist":[],"name":{"suppressUnwrittenScope":false},"onChange":false,"parametersInDeclarations":true,"threads":0,"trackDependency":2,"whitelist":[]},"request":{"timeout":5000},"session":{"maxNum":10},"workspaceSymbol":{"caseSensitivity":1,"maxNum":1000,"sort":true},"xref":{"maxNum":2000}}
09:14:47              D:\CodeBlocks\ccls\src\messages\initialize.cc:329 I use -resource-dir=D:\CodeBlocks\llvm-11.0.1-install\lib\clang\11.0.1
09:14:47              D:\CodeBlocks\ccls\src\messages\initialize.cc:361 I workspace folder: C:/Work/Projects/Git/ACounter/testlut/
09:14:47              D:\CodeBlocks\ccls\src\project.cc:426 I loaded C:/Work/Projects/Git/ACounter/testlut/compile_commands.json
09:14:47              D:\CodeBlocks\ccls\src\messages\initialize.cc:386 I start 8 indexers
09:14:47              D:\CodeBlocks\ccls\src\messages\initialize.cc:394 I dispatch initial index requests
09:14:47              D:\CodeBlocks\ccls\src\pipeline.cc:493 I loaded project. Refresh semantic highlight for all working file.
09:14:47              D:\CodeBlocks\ccls\src\sema_manager.cc:763 I create session for C:/Work/Projects/Git/ACounter/testlut/main.cpp
  C:/msys64/mingw64/bin/c++.exe --driver-mode=g++ -std=gnu++17 -Weverything -o CMakeFiles/testlut.dir/main.cpp.obj -c C:/Work/Projects/Git/ACounter/testlut/main.cpp -working-directory=C:/Work/Projects/Git/ACounter/testlut/Build_Unix
09:14:48              D:\CodeBlocks\ccls\src\pipeline.cc:298 I load cache for C:/Work/Projects/Git/ACounter/testlut/main.cpp
mjlbach commented 3 years ago

Issue was answered in vim-ccls, it uses custom extensions for call hierarchy, so nothing we can do. You should use vim-ccls which is complementary to lspconfig. Closing.