我在Linux上通过链接资源使用Eclipse和C ++代码。代码分析索引似乎已损坏(Goto定义将光标靠近但不在定义上)刷新资源不能解决它,也不会重新启动Eclipse。
I'm using Eclipse with C++ code via linked resources on Linux. The code analysis index seems to be corrupted (Goto definition lands the cursor close to, but not on, the definition) Refreshing resources doesn't fix it, neither does restarting Eclipse.
有没有办法刷新索引并重建它?
Is there a way to flush the index and rebuild it?
推荐答案右键单击您的项目,子菜单,选择重建,使用修改的文件更新或清除所有文件。
Right-click on your project, go under the Index submenu, and choose either "Rebuild," "Update with modified files," or "Freshen all files."
我不知道这三个选项之间的区别,但是更新已修改的文件或清除所有文件通常会为我修复它。
I don't know the difference between those three options, but one of "Update with modified files" or "Freshen all files" usually fixes it for me.
此外,我相信你已经做到了,请确保您运行的是最新版本的Eclipse CDT。当前版本似乎比以前的版本有更可靠的索引。
Also, I'm sure you've already done this, but make sure that you're running the latest version of the Eclipse CDT. Current versions seem to have much more reliable indexing than previous versions.
更多推荐
清除Eclipse索引,它与代码不同步
发布评论