-
Notifications
You must be signed in to change notification settings - Fork 46
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
better diagnostics when Clang completer returns no completions? #466
Comments
The Thus, I'm leaning towards thinking that this is in fact a problem with ycmd. Before I report an issue there I have a few more questions: Vim users are instructed to use My impression is that parsing in ycmd is too quick compared with clang on the command line. Are there any timeouts that I might be running into? Is there any way to configure those? Cheers, Rene |
It looks like there's progress being made over on the ycmd issue, so that's good.
We have
There are a few controls you have. One is I hope this helps. I suspect you'll find more answers in the ycmd issue, but let me know if you need more info. |
Thanks for the input! The ycmd issue is resolved now. It was a small but pretty fatal mistake in my As far as emacs-ycmd is concerned, I think there are two potential improvements so other users won't end up in the same pitfalls:
Cheers, Rene |
I'm glad you got up and running!
That's such a good idea that we've had an open issue since 2015! I'd love to find time for it, but unfortunately I'm pulled in too many other directions right now.
I'm not sure I follow. I take it that
This is a very good idea. Would you mind making an issue for it? |
How about if I prepare a PR for it? I'd include the above and some of the stuff mentioned in #233. The only thing I'm unsure about is the logging part so I may require some input from you on that one.
Perhaps my wording wasn't perfect. What I meant to say was that ycmd developers simply expect an equivalent of
Will do. |
Awesome, thanks! This level of follow-through is a rare thing in open source issue reports :)
I'd be delighted to get a PR for this. |
Hi,
I recently installed emacs-ycmd. Overall, I'm quite impressed! With some files, however, I don't get any semantic completions at all.
*ycmd-server*
then contains:Is there any way to diagnose what exactly the clang completer is choking on? Also, why would an error be a problem in the first place? Shouldn't it just ignore errors given that clang was designed to be able to parse code despite (certain) errors (which evidently works in Xcode)?
I should note that running clang manually I've been able to fix some errors clang was originally complaining about. The remaining errors are caused by clang failing to understand some (valid!) code involving certain Eigen templates. I can, however, get clang to output its AST just fine using
clang -Xclang -ast-dump -fsyntax-only -fno-diagnostics-color $(python ~/path/to/.ycm_extra_conf.py) file.cc
(where I've modified my.ycm_extra_conf.py
to output all compiler flags to stdout).I'm using Emacs 25.3 and
HEAD
from themaster
branches of all additional Emacs packages and ycmd. As for clang, I'm currently stuck at 3.8.0. Let me know if you need any additional information! I'm afraid I cannot share the file that's causing the issue as is.Cheers,
Rene
The text was updated successfully, but these errors were encountered: