Hey! I seem to be doing something stupid.
ccls seems to be parsing all my
.h files as C (as opposed to cpp, even if a corresponding .cpp files exists). I tried to add these lines to my
%h -x %h c++-header
with no luck, I'm still getting
unknown type name 'class'. Is there anything else I could try?
.hppbut that doesn't seem optimal to me (just for consistency with all the other libraries that I'm using and for which that doesn't seem to be a problem). For a little context, I'm using the auto-generated
.cclsfile provided by platformio
%h c++-headeris supposed to do
Anyone have issues with CCLS timing out when using pre-compiled headers?
I'm specifically using Cmake's
target_precompile_headers with Coc-nvim (on neovim).
The precompiled headers are correctly building, but any time I start browsing files, ccls times out instead of doing anything.
It stops recommending fixes, showing errors, etc. It's like it's just off.
But then I simply comment out the
target_precompile_headers and re-build with cmake, and all of a sudden it's working as expected.
I'm using the
coc-settings.json recommended in the coc wiki, if it matters.
ldd /usr/bin/ccls linux-vdso.so.1 (0x00007ffc86326000) libclang-cpp.so.10 => /usr/lib64/libclang-cpp.so.10 (0x00007fa9c35c9000) libLLVM.so.10 => /usr/lib64/libLLVM.so.10 (0x00007fa9be779000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fa9be5a3000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa9be589000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa9be567000) libc.so.6 => /lib64/libc.so.6 (0x00007fa9be3a1000) /lib64/ld-linux-x86-64.so.2 (0x00007fa9c67e0000) libedit.so.0 => /usr/lib64/../lib64/libedit.so.0 (0x00007fa9be365000) libz.so.1 => /lib64/libz.so.1 (0x00007fa9be34b000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fa9be346000) libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007fa9be315000) libm.so.6 => /lib64/libm.so.6 (0x00007fa9be1cf000) libxml2.so.2 => /usr/lib64/../lib64/libxml2.so.2 (0x00007fa9be066000) liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00007fa9be028000)
languageserver.ccls [init]. Should that
:CocList servicesshow for
hi, I'm experiencing problems in indexing, I get a lot of errors like:
12:52:54 indexer1 indexer.cc:1340 E failed to index /path/nix/src/libutil/args.cc
but, in the project root folder, I did
make clean && bear make -j5, and I have a
compile_commands.json. Could you point how I should debug this?
cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=gccis enough? Let me try