Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sumagna Das
    @sumagnadas
    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
    Zj.zhang
    @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?
    George Xanthakis
    @innerout
    Do you have compile_commands for your project?
    niumeng07
    @niumeng07
    this project compiles with bazel.
    David Manouchehri
    @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?
    wallenwang
    @wallenwang
    image.png
    用ccls索引glibc 2.17的代码,总是报这个错,查了下是clang不支持这种嵌套的函数,怎么破。。
    我用的gcc版本是4.8.5,llvm+clang是9.0.0
    defolos
    @defolos:matrix.org
    [m]
    hey, does anyone know which theme is being used on https://github.com/MaskRay/emacs-ccls?
    Stephen Zhang
    @stark-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?
    Zj.zhang
    @zhijie-zhang
    提个问题, 为啥ccls的.ccls-cache里面会有项目源码?
    Sergey Pashaev
    @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?
    gyl
    @ooknn
    image.png
    image.png
    ubuntu18.04ccls总是崩溃
    gyl
    @ooknn

    看了下堆栈,#111323 0x000055a8d9a4454d in clang::ASTContext::getTypeInfo(clang::Type const*) const ()

    #111324 0x000055a8d9a43975 in clang::ASTContext::getTypeInfoImpl(clang::Type const*) const ()

    有好几十万层,应该是爆了,但是在命令行下执行ccls索引同一个项目不会出现

    gyl
    @ooknn
    #498一样的堆栈, #390 说是堆栈大小
    Zj.zhang
    @zhijie-zhang
    @sergey-pashaev enable highlight Isrange
    highlight lsRanges : true
    wusatosi
    @wusatosi
    Hi, I know I am probably being really dumb. But I cannot resolve the [ccls 2] [E] no member named 'cout' in namespace 'std' problem
    I did not write a .ccls file, but I generated a compile_commands.json file in the project root using cmake
    My CMake works and I am sure my project runs as intended.
    Looking through the documentation here, I tried to step into <stdio.h>, <new> with success, but I cannot step into <stddef.h>
    wusatosi
    @wusatosi
    From the documentation, I noticed all the std source file lives under the clang -print-resource-dir directory. I checked and the <stddef.h> is there
    I see I can also step into the iostream header file, and the cout (std::cout that ccls is complaining that I'm missing) is present.