如何在Eclipse PDT中手动触发DLTK索引用于PHP项目 [英] How to manually trigger DLTK indexing in Eclipse PDT for a PHP project

查看:386
本文介绍了如何在Eclipse PDT中手动触发DLTK索引用于PHP项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用PDT(或Zend Studio)在Eclipse中开发时,我经常使用git(通常在命令行中)在不同的大型分支之间切换,而不是通过eclipse的git插件。几秒钟内,Eclipse会检测到分支交换机并更新自身以反映任何文件更改,然后刷新项目资源管理器和其他视图。

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.

然而,不同分支中的库同一个项目可以有很大的不同。通常当切换分支时,在新分支中使用一个类,该分支在较早的索引中不存在,Eclipse将显示关于使用新类的文件中没有找到的类的黄色警告。

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.

这是无效的,如果我进行更改(如添加一个空格),然后保存文件与丢失的类警告,警告消失 - 显然这显示eclipse可以找到引用的类。

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.

有没有办法触发/强制PDT中的DLTK索引运行?我假设这是我假冒警告根源的问题。

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.

推荐答案

项目 - >清洁 - >选择项目名称 - >确定

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

这篇关于如何在Eclipse PDT中手动触发DLTK索引用于PHP项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆