-
Notifications
You must be signed in to change notification settings - Fork 11
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
Completion not working in some cases #11
Comments
Are you sure you are using the company-irony backend? You can look in the modeline that it is irony and not company-clang or something else that is used. Do you have the compile options properly setup? |
Sorry, I had forgotten to say that I had checked all the obvious configurations, including checking whether
Thanks for your assistance. |
Another problem is that |
Another idea would be to start the server in the C Mode hook, therefore Irony should offer an |
Starting the server shouldn't take long. What takes time is usually the first parsing of the file, when the precompiled preamble hasn't been generated yet. But this timing isn't specific to the irony-server start, it will happen in some other situation and irony doesn't really know actually, so it's difficult to provide a message.
In one of my local commit I have changed the function to signal an error. Elisp code calling the function will have the possibility to handle the failure gracefully.
That's one of the "core principle" of company. I don't want to check this kind of things in company-irony because it is error prone. The
I'm not sure to understand. Isn't that a bug in the package dependency management?
Offering a way to start irony-server in a mode hook in addition to the first time it is needed may be a good idea. We will see but as I said earlier, in my local work I already changed the function a little bit and the functions that need irony-server will normally already handle this error gracefully. |
Rather than a bug, it seems that such situations must be handled on a case by case basis (see
Then please let me know as soon as you will have uploaded the new code. Thanks for your assistance. |
Sometimes,
company-irony
does not list any candidates, even when headers are present and the code compiles flawlessly. How could this be troubleshooted? Thank you.The text was updated successfully, but these errors were encountered: