Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Warn users when no Indexed Header Paths were set #254

Closed
mknafl opened this issue Dec 15, 2016 · 5 comments
Closed

Warn users when no Indexed Header Paths were set #254

mknafl opened this issue Dec 15, 2016 · 5 comments
Assignees
Labels

Comments

@mknafl
Copy link

mknafl commented Dec 15, 2016

coati
I have a project that has 310 files(which the overview says), but it says I only have 9 classes. This is clearly not the case. I am guessing there is something about how my classes are terminated or something? Any ideas why I might be seeing this strange behavior? BTW, your software did help me fix literally 1000+ "errors" that were not detected by visual studio. I am trying to see if this strange behavior indicates some other strangeness. Thanks!

@egraether
Copy link
Contributor

My guess it that you didn't set any Indexed Header Paths during project setup, so you only indexed your source files, without the corresponding header files.

To confirm that please click on the Files node in the overview. I think it will only show .cpp files and no .h files, right?

To fix this, add your project root directory to Indexed Header Paths so Coati knows that any included file within that directory should be indexed as well. Please let me know if this fixes the issue.

Did you use our Visual Studio plugin for creating the compilation database? The Indexed Header Paths will be automatically set in the newest version released yesterday with our new build. You might want to give it a try.

@mknafl
Copy link
Author

mknafl commented Dec 15, 2016 via email

@egraether
Copy link
Contributor

Yes, you can exclude files and directories from indexing by adding them to Exclude Paths in the Advanced Settings of the Edit Project dialog. These files will still be accessed during indexing, but the information won't get stored. If they cause fatal errors, you will still see them though.

@mknafl
Copy link
Author

mknafl commented Dec 16, 2016 via email

@egraether egraether changed the title Strange overview behavior Warn users when no Indexed Header Paths were set Dec 21, 2016
@egraether egraether added the bug label Dec 21, 2016
@egraether egraether self-assigned this Feb 11, 2017
@egraether
Copy link
Contributor

Solved with 0.10.82
Warning users now if no Indexed Header Paths were set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants