Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Indexer get 0 results



On Oct 5, 2018, at 7:22 AM, Lidia Popescu <lidochca@xxxxxxxxx> wrote:

Hello cdt developers, 

I am debugging cdt code and trying to understand how indexing works as I am having different issues with it.

1. Why cdt indexer returns sometimes 0 results?
e.g. Project is created indexer is kicked off, getting good results,  going to project preferences, change a configuration and getting new indexer log with 0 results:

What do you mean exactly by changing a configuration? Can you give an example? Or do you mean changing the active configuration (Debug, Release, etc)?


2. Why sometimes indexer results are not printed in .log/"Error logs". I have to add extra option (org.eclipse.cdt.core/debug/indexer=true) to be able to see indexer report in debug.
C/C++ Indexer: Project 'MyProject' (0 sources, 0 headers)
    Options: indexer='PDOMFastIndexer', parseAllFiles=false, unusedHeaders=skip, skipReferences=false, skipImplicitReferences=true, skipTypeReferences=false, skipMacroReferences=false.
    Database: 8192 bytes
    Timings: 2214 total, 0 parser, 0 resolution, 0 index update.
    Errors: 0 internal, 0 include, 0 scanner, 0 syntax errors.
    Names: 0 declarations, 0 references, 0(0.00%) unresolved.
    Cache[128MB]: 52 hits, 0(0.00%) misses.

3. Also, other issue I have is when indexer is not kicked off at all in some cases.

Which version of CDT are you using? I remember fixing a race when changing the active configuration. I might have broken something. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=375226
If you are using a version >= 8.1.0, I would try reverting that to see if it changes anything. This is just a first guess, we would still need to figure out the details.

Marc-André

Back to the top