Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Boris Staletic
@bstaletic
You don't really need clang at all. Cquery, unless something has changed very recently, will download the necessary tools from releases.llvm.org.
William Wagner
@wcwagner
rather than having cquery download it, I just downloaded http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-Fedora27.tar.xz directly, but when I try to use that with cmake, it complains about not being able to find libtinfo.so.6
i only have libtinfo.so.5 and can't figure out how to get libtinfo.6 on rhel :\
Boris Staletic
@bstaletic
Try the ubuntu archive. It's linked against libtinfo.so.5.
William Wagner
@wcwagner
okay ill try that rn
William Wagner
@wcwagner
@bstaletic that seemed to work, building rn, thanks a lot!
Boris Staletic
@bstaletic
You're welcome.
William Wagner
@wcwagner
kind of confused though, if i build cquery with clang6, and I use clang5 for building my project, will I run into problems?
Boris Staletic
@bstaletic
Clang 5 the compiler and libclang 6 the shared object? Why would that matter? Gcc doesn't care which libclang you are using, why would clang?
William Wagner
@wcwagner
You're right, I think i'm tripping myself up. Thanks, going to go try everything out :)
William Wagner
@wcwagner
Hello again, can someone help me figure out why cquery gives cquery: error while loading shared libraries: libclang.so.7: cannot open shared object file: No such file or directory
I built with cmake .. -DSYSTEM_CLANG=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=release -DCMAKE_EXPORT_COMPILE_COMMANDS=YES -DCMAKE_PREFIX_PATH=/path/to/llvm-7.0
where /path/to/llvm-7.0 has lib -> lib64 (which has libclang.so.7) in it
Boris Staletic
@bstaletic
Does it work if you run cquery with LD_LIBRARY_PATH=/path/to/libclang/dir cquery?
William Wagner
@wcwagner
let me try that
dont think so
Boris Staletic
@bstaletic
Well, what's the error?
William Wagner
@wcwagner
sorry I typo'd LD_LIBRARY_PATH, it does seem to work now
thanks so much!
Boris Staletic
@bstaletic
You can fix that globally.
Add the path to your /etc/ld.conf and then run sudo ldconfig.
William Wagner
@wcwagner
aweomse didnt know that
Boris Staletic
@bstaletic
There's also /etc/ld.conf.d/<some file> if you want to organize paths differently.
William Wagner
@wcwagner
is this reccomended over doing something like export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/custom/path/
in bashrc?
Boris Staletic
@bstaletic
I wouldn't do that in bashrc. What if another user needs the fixed library path?
Boris Staletic
@bstaletic
Also, by default $LD_LIBRARY_PATH doesn't exist, so maintaining the correct paths in bashrc would be a pain.
Nathan Ridge
@HighCommander4
Hi there! Could I please get a review / merge on cquery-project/cquery#788 ? I've addressed the comments from the previous review.
Jacob Dufault
@jacobdufault
Oops, done
thanhvg
@thanhvg
Hi there, can someone show me an example of a .cquery config file. I am working in a qt project with others who use qtcreator. I created a .cquery to set include global path for qt, it worked but I can't make cquery able to see local includes of the project no matter how I set them in .cquery. This must be a beginer's problem but I can't figure it out. Thanks
André Kohn
@ankoh
Is anyone else having issues with clang 7? textDocument_definition() works with v20180718 but shows errors for c++17 features such as std::optional. Since
the update to clang 7 with 5b7679d (13 commits later), definition() no longer works for me. Switchting between both commits reliably breaks/repairs the pretty essential feature. That prevents us from migrating away from ycm.
@jacobdufault
André Kohn
@ankoh
@jacobdufault Sry 13 commits is not correct. But 0c5f55c is still working for us. The next commit 5b7679d that introduced clang 7 is not.
André Kohn
@ankoh
I couldn’t find anything wrong in the logs but I’d be happy to debug this if you have any suspicions.
André Kohn
@ankoh
Nevermind. Switched to ccls.
Yun Sheng
@ShengYun
Does anyone had experience setting up cquery in docker but use it with vscode in host system?
ninesigns
@4DA
what should i use instanead of lsp-cquery-enable?
Rasmus Ishøy Michelsen
@R-Michelsen
Hi guys, using cquery with vscode and very satisfied it works great. Just wondering if theres an option to parse .h header files as C++ instead of C. Im getting an unknown type error for keywords like "class" etc. atm when calling my header files .h, works if they are .hpp. Not sure if its a bug or Im missing something so didnt wanna file issue.
Jan Niklas Hasse
@jhasse
@R-Michelsen AFAIK: As header files aren't part of compile_commands.json, cquery will only treat them as C++ if you include them from a cpp file which itself is in compile_commands.json.
Yan Pashkovsky
@Yanpas
What is development status of cquery? Project seems to be abandoned
Jacob Dufault
@jacobdufault
I think clangd is the future and recommend that, if that doesn't have the features you want I recommend combining with cquery/ccls via lsp-filter
cquery continues to work really well for me on chrome and does everything I want
IMO clangd has really impressed me its output quality, so I don't see much of a need for third-party C++ indexers anymore, even if it takes clangd a little while to implement features
Yan Pashkovsky
@Yanpas
I like cquery and ccls because they are feature-rich. Inheritance hierarchy, call hierarchy, semantic highlighting. clangd only provides basic LSP
陈力
@_FirstLoveLife__twitter
I'm with you.
Zachary Michaels
@mikezackles
I'm guessing the answer is no, but does cquery have some sort of support for moving files that will auto-change the includes?
Yan Pashkovsky
@Yanpas
Can you add link to ccls into cquery readme as a fork in active development? I personally participate in development of vscode extension
Jacob Dufault
@jacobdufault
Yea, I'll do that at some point in the future
Yan Pashkovsky
@Yanpas
Thx
Akshay Aurora
@iakshay
Hi, anybody has seen "failed to normalize path" error? I put some more details here - cquery-project/cquery#866
Edgar Andrés Margffoy Tuay
@andfoy
Hi, I've been trying to execute cquery, however, it only sends a $cquery/progress message and it doesn't process the initialize call, is it possible to know what is missing to execute cquery?