Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    David Manouchehri
    dave@ubuntu:~/ccls$ rm -rf Release && cmake -DCMAKE_CXX_COMPILER=clang++ -GNinja -H. -BRelease && ninja -C Release && sudo /home/dave/bin/depot_tools/ninja -C Release install
    -- The CXX compiler identification is Clang 12.0.0
    -- Check for working CXX compiler: /usr/bin/clang++
    -- Check for working CXX compiler: /usr/bin/clang++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Setting build type to 'Release' as none was specified.
    -- Looking for C++ include pthread.h
    -- Looking for C++ include pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Check if compiler accepts -pthread
    -- Check if compiler accepts -pthread - yes
    -- Found Threads: TRUE  
    -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
    -- Using local RapidJSON
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/dave/ccls/Release
    ninja: Entering directory `Release'
    [43/43] Linking CXX executable ccls
    ninja: Entering directory `Release'
    [0/1] Install the project...
    -- Install configuration: "Release"
    -- Installing: /usr/local/bin/ccls
    -- Set runtime path of "/usr/local/bin/ccls" to ""
    dave@ubuntu:~/ccls$ ccls --version
    Ubuntu ccls version 0.20190823.6-23-g4cf16a7e
    clang version 10.0.1-++20200809072545+ef32c611aa2-1~exp1~20200809173142.193
    dave@ubuntu:~/ccls$ /usr/local/bin/ccls --version
    Ubuntu ccls version 0.20190823.6-23-g4cf16a7e
    clang version 10.0.1-++20200809072545+ef32c611aa2-1~exp1~20200809173142.193
    This is driving me slightly insane :/
    ah finally got it
    rm -rf Release && cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_PREFIX_PATH=/usr/lib/llvm-12 -DLLVM_INCLUDE_DIR=/usr/lib/llvm-12/include -DLLVM_BUILD_INCLUDE_DIR=/usr/include/llvm-12/ -GNinja -H. -BRelease && ninja -C Release && sudo /home/dave/bin/depot_tools/ninja -C Release install
    David Manouchehri
    Does "delta: 0" mean ccls had to reindex it?
    David Manouchehri
    it seems like when I run ccls from the terminal, it's still missing a lot of files that end up getting indexed when I open VS Code
    I installed ccls package on Ubuntu and coc-ccls on Coc but I get this error:
    [coc.nvim] Unable to load global extension at /home/ujjwal/.config/coc/extensions/node_modules/coc-ccls: main file ./lib/extension.js not found, you may need to build the project.
    How do I work around this?
    Qiming zhao
    Don't use coc-ccls, it's broken on npm
    Leonardo Romor
    is anyone available for to answer a question?
    George Xanthakis
    @lromor Ask your question and if somebody can help you, he will reply.
    Sumagna Das
    i use ide-ccls with atom and i just want to ask how to add extra include paths for ccls
    Sumagna Das
    any way to do that?
    Kevin Brubeck Unhammer
    Hi, after installing libgcc-10-dev on Ubuntu (for one project that needed it), all my regular gcc-9 projects get problems like https://github.com/MaskRay/ccls/wiki/FAQ#some-cc-headers-are-not-recognized – how do I tell ccls that I'm on gcc-9? I tried putting the include path into a .ccls but it still fails http://sprunge.us/E4vOOG
    (it starts working again when I apt remove libgcc-10-dev, but that's unfortunately a dep of libgccjit which is a runtime dep of something else :-/)
    Tried both -I/usr/lib/gcc/x86_64-linux-gnu/9/include and -I/usr/lib/gcc/x86_64-linux-gnu/9, doesn't seem to make any difference
    on a minimal c++ file like http://sprunge.us/9lD6bB
    $ clang -E -v -xc++ says Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10 so I suppose that's related – can I override that in .ccls?
    I've defined the include_directories(src) in CMakeLists.txt file and thus changed all quotes "" includes to <> angled ones. The project builds successfully but ccls is unnecessarily showing "file not found" Error.
    how can i set ccls runnable path for a specific project?
    Hi, ccls doesn't build on my windows machine. I've successfully built llvm+clang and generated the ninja build files for ccls just fine, but when I go to build it I get errors. https://pastebin.com/9AyRhZS1
    Qiming zhao
    试着 disable 它的 buffer :h b:coc_enabled
    Hi, ccls cannot recognize <cstring> in C++ file, it just cannot find memset function
    any suggesstions?
    Seth Gower
    hello, I am trying to use ccls with ALE in neovim for dynamic syntax highlighting. I am not sure if it is a ccls problem or ALE problem, but the custom types aren't being highlighted. Anyone have suggestions?
    GoToDefinition cannot work
    just to the definition in another source file
    any suggestions?
    thank you
    The occupancy rate of ccls in vim+ccls is too high under Linux, how to modify this config
    George Xanthakis
    I got a C language completion problem. When I call structure pointer member in macro the -> appear in the header of file.
    ccls can not find local variables definition, does anybody know how to make it work?
    George Xanthakis
    Do you have compile_commands for your project?
    this project compiles with bazel.
    David Manouchehri
    Any tips on how to reduce memory usage? Indexing has finished on my project (it's huge), and ccls takes about 10GB of memory when idling.
    Is there any feature downside to setting retainInMemory to 0?
    用ccls索引glibc 2.17的代码,总是报这个错,查了下是clang不支持这种嵌套的函数,怎么破。。
    hey, does anyone know which theme is being used on https://github.com/MaskRay/emacs-ccls?
    Stephen Zhang
    hey, I am using ccls and coc.nvim to read/write cpp code. ccls always takes me to the position of function decleartion when I want to view the definition, how to go to definition directly?
    提个问题, 为啥ccls的.ccls-cache里面会有项目源码?
    Sergey Pashaev
    Hey guys! I have a question related to ccls/lsp protocol. Is there any query that would provide information about the symbol under the cursor? In a way that I could easily parse and pipe it to another tool. For example: when I put cursor on a field declaration lsp-server returns some info from which I could extract that it's some field named Foo in class Bar with type T. Maybe ccls already doing something similar?