-
Notifications
You must be signed in to change notification settings - Fork 113
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
YCM reporting errors not present when code is actually built #178
Comments
Hey David! You're very welcome. Sorry I'm just getting to this--and thanks for giving the tool a go. I'm not sure offhand, without more info. Is clangd finding the headers? It might also be worth checking its log to make sure it's finding the command? I know there are people using it with YCM--but we're using from VSCode. The reason for those questions is that I'd have two hypotheses about what might be going wrong. (1) Either YCM isn't finding the compile_commands.json or (2) the compile_commands.json might be wrong and need some target configuration (as in that section of the README) |
No problem. Thank you for getting back to me. I am not sure if clangd is finding the headers. How do I find the clangd logs? I will also put together a repo with a minimal repro case and share that with you to help with debugging. |
Logs: I'm not sure--we're using from VSCode, but I'll bet it says in their docs somewhere! @stonebrakert6, are you still using this with YCM? And if so, have you seen anything like this? |
@davidzchen You can use
My system is Need to convert relative paths in
|
I created a minimal repro case here: https://github.com/davidzchen/bazel-ycm-test When Here is my
Many of the errors seem to be around Abseil, though the code compiles without any issue. |
FYI I did use @stonebrakert6's script to generate the |
Is there anything I can provide to help debug this further? |
hey @davidzchen DisclaimerI am a newbie at bazel. So can't really explain why toolchain based solution is not working. What I did
I have verified all this on MBP(macbook pro) by installing llvm via All this has been inspired from how Envoy is built(for your reference). Do let me know if it works for you(I am assuming you are on MBP). |
Thanks you very much, @stonebrakert6! I will give this a try and report back. Yes, I am on MBP (M1 Max running macOS Sonoma 14.4.1). |
Sorry for the delay. @stonebrakert6 - I tried using the fix in another small repository that I created: https://github.com/davidzchen/primrose However, when I try to run
This seems to be from this line in the
I am now on macOS Sequoia 15.0.1. Do you know if anything has changed with the toolchain that makes this flag invalid? |
hi @davidzchen |
@stonebrakert6 Here is the output:
Thank you for taking a look. |
First of all, thank you for building this wonderful tool and enabling integration with YouCompleteMe for Bazel.
However, I am running into a few issues. YouCompleteMe, using the
compile_commands.json
generated by bazel-compile-commands-extractor, is reporting error messages that I do not get when I runbazel build
on the code. In particular, I am getting errors like these in the source files:...as well as "no matching constructor" errors. Curiously, this seems to be happening for all my constructors, all static methods, and some private methods.
Has anyone run into this type of issue or know what the fix is? What information should I provide to help with debugging?
Thank you in advance.
The text was updated successfully, but these errors were encountered: