Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ginger Old
    @laoshaw
    with -Wno-c++17-extensions my g++ and clang++ can build without warnings, but vim/ccls keeps warning, not sure how to silence it
    Ginger Old
    @laoshaw
    ok I figured it out, I need add the flags to clang/extraArgs in ccls
    Ginger Old
    @laoshaw
    I only need ccls for autocompletion, I use ale for linter, is there a way to disable ccls for lintering?
    for example extraArgs has -Wold-style-cast, which is useful for c++, but ccls will also apply it to c code and issue false warnings
    Ginger Old
    @laoshaw
    Set to false to disable diagnostic display, default: true
    "diagnostic.enable"
    lsp-ableton
    @lsp-ableton
    Does anyone know how to disable the progress indicator- i.e. "indexing ... x%" in emacs-ccls?
    Bogdan B
    @foolnotion
    hi, I have a problem where ccls does not find headers from paths specified in cmake with target_include_directories, I am running cmake with -DCMAKE_EXPORT_COMPILE_COMMANDS.
    using nvim/LanguageClient-neovim. /tmp/cc.log does not show anything unusual
    David Manouchehri
    @Manouchehri
    How do I build ccls with a certain version of clang?
    clang --version # works
    dave@ubuntu:~/ccls$ clang --version
    Ubuntu clang version 12.0.0-++20200817091410+a206f850912-1~exp1~20200817072030.1875
    Target: x86_64-pc-linux-gnu
    Thread model: posix
    InstalledDir: /usr/bin
    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$ 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
    @Manouchehri
    Does "delta: 0" mean ccls had to reindex it?
    David Manouchehri
    @Manouchehri
    hm
    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
    Ujjwal
    @ujjwalgoel_gitlab
    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
    @chemzqm
    Don't use coc-ccls, it's broken on npm
    Leonardo Romor
    @lromor
    Hi!
    is anyone available for to answer a question?
    George Xanthakis
    @innerout
    @lromor Ask your question and if somebody can help you, he will reply.
    Sumagna Das
    @sumagnadas
    hello
    i use ide-ccls with atom and i just want to ask how to add extra include paths for ccls
    Sumagna Das
    @sumagnadas
    any way to do that?
    Kevin Brubeck Unhammer
    @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?
    Kshitij09
    @Kshitij09
    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.
    onriv
    @onriv
    how can i set ccls runnable path for a specific project?
    SwollenBerks
    @varunm100
    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
    @chemzqm
    试着 disable 它的 buffer :h b:coc_enabled
    bugnofree
    @ikey4u
    Hi, ccls cannot recognize <cstring> in C++ file, it just cannot find memset function
    any suggesstions?
    Seth Gower
    @SethGower
    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?
    toptodown
    @toptodown
    GoToDefinition cannot work
    just to the definition in another source file
    any suggestions?
    thank you
    zhangzhijie
    @zhijie-zhang
    The occupancy rate of ccls in vim+ccls is too high under Linux, how to modify this config
    ?
    George Xanthakis
    @innerout
    ArtisticZhao
    @ArtisticZhao
    err.gif
    I got a C language completion problem. When I call structure pointer member in macro the -> appear in the header of file.
    niumeng07
    @niumeng07
    ccls找不到局部变量定义,全局变量和函数等正常,应该怎样修改配置吗?
    ccls can not find local variables definition, does anybody know how to make it work?