导入项目时,未正确导入Eclipse CDT团队共享索引

时间:2015-10-28 18:09:34

标签: eclipse eclipse-cdt

我将C / C ++项目的索引导出到.settings / cdt-index.zip。当我稍后导入该项目时,索引无法正确导入。从调试跟踪中,我可以看出导入的共享索引没有问题,但是索引没有加载到编辑器中。

CDT版本:8.6.0.201502131403

重现步骤:

  1. 创建项目
  2. 构建索引
  3. 将团队共享索引导出到:.settings / cdt-index.zip
  4. 从工作区中删除项目
  5. 将项目重新导入工作区
  6. 以下是调试信息:

    Indexer: Removing project AttachProcessGDBTest; delete=true
    Indexer: Adding new project AttachProcessGDBTest
    Indexer: Setup is postponed: AttachProcessGDBTest
    Indexer: Creation for project AttachProcessGDBTest
    Indexer: PDOMImporter start
    Indexer: PDOMImporter completed, ok=true
    Indexer: Imported shared index for project AttachProcessGDBTest
    Indexer: start PDOMUpdateTask
    C/C++ Indexer: Project 'AttachProcessGDBTest' (0 sources, 0 headers)
    Options: indexer='PDOMFastIndexer', parseAllFiles=true, unusedHeaders=useCPP, skipReferences=false, skipImplicitReferences=false, skipTypeReferences=false, skipMacroReferences=false.
    Database: 475136 bytes
    Timings: 7 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[45MB]: 87 hits, 1(1.14%) misses.
    Indexer: completed PDOMUpdateTask[8ms]
    

    当我尝试点击符号时,这是我得到的错误:

    Description Resource    Path    Location    Type
    Function 'printf' could not be resolved AttachProcessGDBTest.cpp     /AttachProcessGDBTest  line 27 Semantic Error
    

0 个答案:

没有答案