Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    arbernat
    @arbernat
    Then the process exits
    Stephen Robinson
    @sudobash1
    Is there a way to set the size of types in a cross compiling setup? In the arm setup I am using a uint32_t is supposed to be %ul, but ccls is giving me warnings. I think I have -target set properly.
    Rafał Sarnikowski
    @Sarna555
    I'm using ccls with coc.nvim and my .cu files are not being processed, cpp files in the same projects seems to be working, is there any way to force ccls to treat .cu files as .cpp files?
    Fangrui Song
    @MaskRay
    MaskRay/ccls#662 Support $/progress and WorkDoneProgress{Begin,Report,End}
    @arbernat https://github.com/MaskRay/ccls/wiki/Debugging#dump-lsp-requestsresponses To intercept early requests/responses, you can use a shell script wrapper
    #!/bin/sh
    exec strace -s999 -e read,write -o /tmp/strace.log -f path/to/ccls "$@"
    Fangrui Song
    @MaskRay
    @sudobash1 %ul is wrong. Use %u or `"%" PRIu32
    @Sarna555 .cu files are indexed by default.
    Sameer Rahmani
    @lxsameer
    hey folks, i have cmake project which compiles fine, but ccls can't find system headers such as iostream
    I'm on linux and here is my cmake file https://paste.debian.net/1155163/
    Sameer Rahmani
    @lxsameer
    I'm using GCC I've tried : target_include_directories(<target> SYSTEM PRIVATE $ENV{INCLUDE}) as well
    Sameer Rahmani
    @lxsameer
    ignore me please, figured it out
    Rafał Sarnikowski
    @Sarna555
    @MaskRay ok, but somehow it's working on .cpp files and it's not working with .cu files
    pluswu
    @pluswu
    can coc and ale config the same ccls cachedir?
    fperies
    @fperies
    hello,
    I'm getting the following error when trying to get call hierarchy tree of a C++ function:
    ccls-call-hierarchy--request-children: Symbol s function definition is void: lsp:ccls-call-children
    Is it a well-known problem ?
    pluswu
    @pluswu
    ccls ale cache config sames does't work? ALEINFO ouput is: let g:ale_cpp_ccls_init_options = {'cacheDirectory': '/data/home/pluswu/.ccls_ale'}, but the cache is still in default .ccls-cache
    pluswu
    @pluswu
    let g:ale_c_ccls_init_options = { 'cache' : {'directory':'/tmp/ccls-ale'} } this format works fine for ale ccls cache dst
    fperies
    @fperies
    regarding my problem, I've just opened MaskRay/emacs-ccls#94
    fperies
    @fperies
    Ginger Old
    @laoshaw
    how can I get rid of ccls's c++17 extension warning, using vim(not vscode)
    1 reply
    jaza-syed
    @jaza-syed
    I'm using ccls in emacs and would like to get full semantic highlighting as in the he screenshots at https://github.com/MaskRay/emacs-ccls . I have (setq ccls-sem-highlight-method 'overlay) (ccls-use-default-rainbow-sem-highlight) in my config, but I still only get the emacs standard syntax highlighting (no highlights for calls to member functions, for example). Does anyone know how to configure this?
    skywb
    @skywb
    I can jump to the declatation, but ccls prompts me that the function cannot be matched, how can i fix it
    image.png
    image.png
    Sameer Rahmani
    @lxsameer
    hey folks, how can i force ccls to look for my local header files in an specific directory ?
    Krishnakumar Gopalakrishnan, PhD
    @krishnakumarg1984

    how can I get rid of ccls's c++17 extension warning, using vim(not vscode)

    Hi, any thoughts on this?

    Sergey Kuznetsov
    @kuznetsss_gitlab
    Hello, is there any way to limit cpu usage for indexing?
    George Xanthakis
    @innerout
    @kuznetsss_gitlab I think there is an option to limit the number of threads that create the index.
    Zeeech
    @Zeeech
    Hi, Guys, I use /clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04 prebuild version to complier ccls. It compiler succ. but neovim tell me. the ccls server crash five times and will not be restart. can anyone help me?
    image.png
    image.png
    image.png
    Ginger Old
    @laoshaw
    how can I get rid of ccls's c++17 extension warning, using vim(not vscode), is there a place to set some flags that ccls will use to detect syntax warnings and such?
    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 Burlacu
    @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