How to manually trigger DLTK indexing in Eclipse PDT for a PHP project

三世轮回 提交于 2019-12-10 14:48:36

问题


While developing in Eclipse with PDT (or Zend Studio), I frequently switch between different large branches using git--typically on the command line, not via a git plugin for eclipse. Within seconds, Eclipse detects the branch switch and updates itself to reflect any file changes, then refreshes the project explorer and other views.

However, the libraries on the different branches in the same project can be significantly different. Frequently when switching branches, a class is used in the new branch that doesn't exist in the earlier one which was indexed, Eclipse will show yellow warning about a class not being found in files using the new classes.

This is not valid, and if I make a change (like add a space) then save the file with the missing class warning, the warning goes away--clearly this shows eclipse can find the referenced class.

Is there any way to trigger/force DLTK indexing in PDT to run? I'm assuming this is the issue at the root of my bogus warnings.


回答1:


Project -> Clean -> Select project name -> OK



来源:https://stackoverflow.com/questions/25040424/how-to-manually-trigger-dltk-indexing-in-eclipse-pdt-for-a-php-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!