-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Incomplete types detected by YCM #1763
Comments
There are missing commas in your |
Following the comment on issue ycm-core/YouCompleteMe#1763
Yes, you're right, but I must have introduced that when I was playing around. I've just fixed and the incomplete types are still there. I've compared the flags from From YCM
From cmake/make
|
Did you try to add the |
Trying out the comment by micbou at ycm-core/YouCompleteMe#1763
Thanks for the suggestion. It has changed things but it isn't working for me, unfortunately. I still get incomplete types for Should I be using |
No, you need to remove them. With those flags, I am getting the same errors that you are experiencing. |
"It is alive!" Thanks ever so much. That will help me a lot. |
Did you finally resolve this problem? I got the same problem when I opened OpenFOAM. |
Hello,
I am working again with YCM developing an application for library called OpenFOAM. The project ycm file as well as the project are here. The YCM file works by using environmental variables to include the correct directories. Completion and detecting errors mostly works, but I have a few that I cannot quite nail down and I was wondering if I can ask for your input.
I get two errors:
I think they are related as it's all about templated types or types that I pass as template arguments. None of this errors appears in the compilation. I tried using
-include
switch in.ycm_extra_conf.py
to include the file containing the templated class explicitly but that didn't resolve it.As far as I can see I am putting exactly the same options and includes to my cmake and to YCM, so I feel that the difference must be more subtle.
Also, the
typdef
was not deteted until I included the file containing them explicitlyThis may or may not be related. Another little thing that may be going on here is that OpenFOAM uses environmental variables to instantiate some template classes. For instance Vector can be float or double depending on the type of compilation specified in the environment.
The text was updated successfully, but these errors were encountered: