Closed wosrediinanatour closed 3 years ago
I found the problem. When I make these changes, it works:
-let g:ale_cpp_ccls_init_options = {
- \ "cache": { "directory": "/tmp/ccls/cache" },
- \ "clang": {"pathMappings": "/repository/>" . getcwd() ."/"},
- \ "compilationDatabaseDirectory": getcwd() . "/build/"
- \ }
+let g:ale_cpp_ccls_init_options = {"clang": {"pathMappings": ["/repository/>/var/home/fxaver/Sources/railx/"]}, "compilationDatabaseDirectory": "/var/home/fxaver/Sources/railx/build/"}
Seems to be a problem with JSON and CCLS.
Information
VIM version:
Operating System: Fedora Silverblue 34 (latest)
.vimrc:
CMAKE builds the project in a container, which produces a
build/compile_commands.json
.LSP client CCLS is installed.
What went wrong
:ALEGoToDefinition
,:ALEGoToTypeDefinition
,:ALEFindReferences -relative
,:ALESymbolSearch -relative <query>
,:ALEHover
do not work (do nothing).Reproducing the bug
/repository/
[container] and/var/home/fxaver/Sources/{ROOT}/
[host]. CMAKE generates abuild/compile_commands.json
.:ALEInfo