-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not completing include directories set in .ccls #160
Comments
Are you using clang 7 or 8 (trunk)? If 7, can you check for (auto &E : HeaderOpts.UserEntries) { |
Close due to inactivity and I cannot reproduce. |
Sorry, I didn't have time to test that suggestion yet (I just grab it from AUR). But I'd report it back. |
Does it work for you with coc.nvim and like my testcase explains? Because just by using coc.nvim I can't make it work at all. |
I checked it with releases.llvm.org clang 7 not the AUR package. |
I was referring to ccls from AUR, not clang. I mean, I'm just installing ccls by doing |
Same
I've put the following: std::fstream f("/home/francisco/ccls-includes");
for (auto &E : HeaderOpts.UserEntries) {
std::string path =
NormalizePath(ResolveIfRelative(entry.directory, E.Path));
f << "user entry: " << E.Path << '\n';
f << "normalized: " << path << '\n';
f.flush();
Notice how relative This is the result when using cmake generated
|
I'm using the |
Can you try the The issue was that |
@MaskRay I've checked, it's working now. |
Fixed by #171 |
Hi @MaskRay, I got another issue after this fix, it's working great for the previous flags, but if I remove
|
Isn't it the opposite? Check what
This works for me if I want to use libc++:
|
No no, it's not the opposite, it's in fact what I've stated, with |
I'm using coc.nvim+ccls, it provides most headers for completion, but doesn't provide headers I set in
.ccls
flags, for example, I'm trying this:When I go about including
#include <rang|>
, I only get boost range headers from my system, even after#include <range/|>
, simple no completion forrange/v3
. But code completion and diagnostics works for range-v3 symbols, just inclusion that fails.The text was updated successfully, but these errors were encountered: