Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ryan Bray
    @rbray89:matrix.org
    [m]
    I take it there isn't.
    Is there a way to have CCLS limit reference results to specific directories or trees
    Tim Sanders
    @Gollum999
    CCLS is indexing everything except files listed in my compile_commands.json? Anyone know how that could happen?
    I confirmed in the log that it finds the correct compile_commands.json and it looks like it is using the right -resource-dir.
    Also c-index-test -index-file local /path/to/source_file.cpp and c-index-test -compilation-db lookup /path/to/source_file.cpp /path/to/compile_commands.json both return sane-looking results
    Mohammad Arfan
    @marfanr
    image.png
    hello, I use ccls in atom for coding c, how do I get rid of this problem notification because when it is compiled it works fine.
    incompatible pointer types passing 'int [14]' to parameter of type 'CHAR16 *' (aka 'unsigned short *')
    klasdjflashd
    @klasdjflashd:matrix.org
    [m]
    Are thre any problems with ccls and libc++?
    i6o6i
    @i6o6i
    根据https://github.com/MaskRay/ccls/wiki/Build#build-clangllvm-by-yourself编译ccls出现错误
    llvm-mt: error: no libxml2 llvm-mt: ignoring unsupported 'notify_update' option
    cmake搭建ccls出现的
    Mridul Pentapalli
    @craniumrat
    Hello. I am trying to make a JUCE Plugin (https://github.com/juce-framework/JUCE). ccls works wonderfully in my emacs with lsp-mode. The issue is that it cannot find a header in my PluginProcessor.h file but it can find it in the PluginProcessor.cpp file. (#include <JuceHeader.h> file not found.) The paths are correct and I can build the project correctly.
    zhangzhijie
    @zhijie-zhang
    Received notification '$/progress
    请问在languageserver.ccls的日志, 打印Received response 0 without active response promise 这个信息, 是怎么回事???
    haritz
    @haritz:matrix.org
    [m]
    Hi, running eglot to query for a function definition always triggers a timeout in a cross-compiled project
    with an aarch64 tool chain
    I tried what the FAQ suggests, about adding the -include directives for the aarcch64 target in .ccls, but this just seems to cause ccls to process a humongous amount of files
    and the timeout persists
    it does not happen when I build the same project for x86_64
    Aqil Contractor
    @AqilCont
    Where can I find prebuilt binaries?
    Seb Laveze
    @sl8vz
    Hi, is there a way to know which compile arguments lead to failed indexed source ? I switched to a new toolchain and I'm not sure which argument makes ccls to fail
    Jonathan Barrios
    @jeb2239
    has anyone used ccls for the chromium source code?
    Israel Jacquez
    @ijacquez
    I'm running ccls, and in the logs, I see pipeline.cc calling for deletion of the only C file I'm trying to index
    I don't see any reason (in the logs) why it's being deleted
    In my .ccls, I just have one line: c
    Israel Jacquez
    @ijacquez
    Okay, it looks like it's due to -working-directory= being passed to gcc
    Kevin Morris
    @kevr
    6/part
    Ioannis Vardas
    @variemai
    switched to ccls from clangd. Using emacs + lsp and it seems it cannot find "NULL". Any solution? The problems persists even after i compile
    1 reply
    mjlbach
    @atrius:matrix.org
    [m]
    Does CCLS expect utf-32 ranges for the position params https://microsoft.github.io/language-server-protocol/specification.html#position?
    Kevin Morris
    @kevr
    hmm
    Tareq A. Siraj
    @tareqsiraj
    Hello everyone, has anyone been successful in running ccls inside a docker container (the build container for the project) and use neovim on the host? I created an alias for ccls that launches docker exec -i <id> ccls --log-file=ccls.log -v=2 and using neovim/neovim-lspconfig. It seems to launch ccls in the container, but neovim shows include headers from the project not being found. The ccls.log shows paths on the host, not the path in the docker container.
    Sami Liedes
    @sliedes:hacklab.fi
    [m]
    Hey! This may well be a silly idea, or maybe there's a better way to do what I want, but I wonder if there could be some kind of support to override the "go to definition" provided definition location in the source code. Specifically, I have some generated code (from protobuf declarations, i.e. not a language understood by ccls), and I control the generator. It generates classes that correspond 1:1 to definitions in the .proto file. So, I envision I could modify the generator to add some kind of a comment/something in the generated source code indicating that this is generated code and the original definition is xyz.proto line 52.
    moggel
    @moggel:matrix.org
    [m]
    Hi! Has anyone had trouble with setting up ccls with a .ccls file in a project that has header files in an "inc" directory and source files in a "src" directory? For some reason my ccls cannot find the header files I put in my "inc" folder
    I have the .ccls file in the project root (one folder up), this does also specify "-Iinc"
    As well as using clang++ as the compiler driver
    Zheng Yagang
    @adamzyg
    Hello everyone, there are many apps in my source code directory, I just want to let ccls analyze some apps, how should .ccls be configured?
    my current .ccls configurations:
    clang++
    %h %h.in %c -std=gnu99
    %hpp %cpp -std=c++11
    -Isysrepo/src
    -Isysrepo/src/utils
    -Isysrepo/src/executables
    -Ilibyang/src
    -Ilibyang/swig/cpp/src
    -Isysrepo/bindings/cpp/src
    -Irousette/src
    in current root dir, there are a lot of source directories, i found ccls analyze all the sources in current dir, /tmp/ccls takes up a lot of space.
    Zheng Yagang
    @adamzyg
    OK, I know, add the "index":{"initialBlacklist":["exclude-app"]} to CocConfig.ccls.initializationOptions
    wallenwang
    @xinghun
    Can ccls start up with a full cache loaded for query and then determine whether the cache needs to be updated?
    Zachary Michaels
    @mikezackles
    I'm using spacemacs' integration, and after a recent upgrade I started seeing the stuff like 87 refs|31 derived|19 refs|3 derived|13 refs trailing most lines. (And I see this in the screenshots on the project page as well.) I find it distracting, and I'd really like to disable it. Is this a ccls setting, or is it lsp, or something else? Thanks
    Zachary Michaels
    @mikezackles
    Seems fixed by disabling code lens
    the10thwiz
    @the10thwiz:mozilla.org
    [m]
    I'm running into issues with CCLS on a GCC based cross complicaiton project. It took me a while, but I have it set to use the gcc toolchain, and it has the required headers. The main issue I have left is that ccls seems to think that std::string is an alias of int, rather than std::basic_string<char>. Jumping to the definition of string takes me to the correct typedef, and jumping to the definition of basic_string referenced by the typedef takes me to the correct class. Interestingly, using std::basic_string<char> directly works correctly.
    the10thwiz
    @the10thwiz:mozilla.org
    [m]
    Minor update: It appears that the issue is that any typedef is treated as typedef int <name>, as long as it's not in the current file. I don't know why this happens, but it doesn't make sense.
    Aiden Loyd
    @OrdoFlammae
    Hey y'all, I'm having trouble with ccls looking for a nonexistent gnu/stubs-32.h file, not sure why it's doing this, or how to stop it. My guess is that the issue lies further up the foodchain, and is not a ccls-specific problem, but I don't know where to look for the actual issue.
    I've temporarily fixed it by touching a gnu/stubs-32.h file in my codebase.
    It doesn't seem to actually need it for anything, but a bunch of things break if it doesn't exist.
    Another fix I can think of would be to install the 32-bit version of libc, but that seems a bit extreme.
    aluva
    @aluva

    Hello:
    I am NEW to ALL these:

    Following: https://github.com/MaskRay/ccls

    (1) Using MacOS Catalina: Setting up NVIM-LUA-nvim-lspconfig-ccls, for lua and C++

    (2) $ clang++ -xc++ -fsyntax-only -v /dev/null
    ...
    /usr/local/opt/llvm/bin/../include/c++/v1 /usr/local/Cellar/llvm/14.0.6_1/lib/clang/14.0.6/include /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks (framework directory)

    (3) $ which ccls
    /usr/local/bin/ccls

    (4) compile_commands.json: [{ "directory": "/Users/putheth/Documents/Code/C++/sample", "command": "/Library/Developer/CommandLineTools/usr/bin/c++ -std=c++17 -g -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.15 -o CMakeFiles/sample.dir/main.cpp.o -c /Users/putheth/Documents/Code/C++/sample/main.cpp", "file": "/Users/putheth/Documents/Code/C++/sample/main.cpp" }]

    (5) IF I add the following to .zshrc, the terminal gets LOCKED:
    #!/bin/sh exec /usr/local/bin/ccls --init='{"clang":{"extraArgs":[ "-isystem/usr/local/opt/llvm/bin/../include/c++/v1", "-isystem/usr/local/Cellar/llvm/14.0.6_1/lib/clang/14.0.6/include", "-isystem/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include", "-isystem/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks (framework directory)" ]}}' "$@"

    (6) My language_servers.lua setup:

    require('lspconfig')['ccls'].setup{ on_attach = on_attach, flags = lsp_flags, init_options = { cache = { directory = ".ccls-cache"; }; client = { snippetSupport = true; }; clang = { extraArgs = ({ "-isystem/usr/local/opt/llvm/bin/../include/c++/v1", "-isystem/usr/local/Cellar/llvm/14.0.6_1/lib/clang/14.0.6/include", "-isystem/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include", "-isystem/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks (framework directory)" }); }; }, }

    ISSUES:

    For lua everything is perfect.
    But, for C++, Simple Completions + Flags are there. BUT, there is #NO Intellisense, Code Snippets, OR Description popup.
    I would deeply appreciate, if someone could kindly guide me what I need to do, in simple ways.
    Thanks

    aluva
    @aluva
    @MaskRay
    I would deeply appreciate, if you or some one else could kindly help me with the above issue: (Posted today at 01:38), in simple steps..
    Thanks,
    Tinglong Yang
    @ytlm
    how hazel