Eclipse Helios - 工作集中缺少文件和目录
当我创建一个没有过滤器的工作集时,我会在目录 heirachy 中看到所有 PHP 文件,除了最后一个嵌套目录中的文件。在此目录中,PHP 文件不会显示在 PHP Explorer 中,即使它们确实存在于该目录中。在未定义工作集的情况下查看项目时,不会发生这种情况。
有什么想法吗?
编辑 我现在发现其他项目也发生这种情况,并且带有 javascript 文件的整个目录都丢失了。我只是重新创建了这样的问题:
- 创建了一个 PHP 项目并导入了干净的 WordPress 安装的源代码
- 创建了一个基于整个项目的工作集
截取了它的屏幕截图;注意目录
my_wordpress.co.uk/wp-includes/js/crop/
;这是屏幕截图:
(来源:internetsolutionsni.co.uk)编辑当前活动工作集并取消勾选(删除)目录
wp-content
现在工作集减去了wp-content
文件夹,但其他几个文件夹也“消失”了,包括my_wordpress.co.uk/wp-includes/js/crop/
;查看生成的屏幕截图:
(来源:internetsolutionsni.co.uk)
When I create a working set - with no filters - I see all my PHP files in the directory heirachy EXCEPT for in the last nested directory. In this directory the PHP files are not shown in PHP Explorer even though they certainly exist in the directory. This does not happen when viewing the project without a working set defined.
Any ideas?
Edit
I have now found that it is happening with other projects and whole directories with javascript files are going missing. I just recreated the problem like this:
- created a PHP project and imported source for a clean wordpress installation
- created a working set based on the whole project
took a screen shot of it; notice the directory
my_wordpress.co.uk/wp-includes/js/crop/
; here is the screen shot:
(source: internetsolutionsni.co.uk)edit the current active working set and unticked (removed) the directory
wp-content
now the working set is minus thewp-content
folder, but also several other folders have 'disappeared' includingmy_wordpress.co.uk/wp-includes/js/crop/
; see the resulting screen shot:
(source: internetsolutionsni.co.uk)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对这个问题有一个(hacky)修复:
创建你的工作集,它们丢失文件或目录并不重要,只需使用向导将它们全部创建即可。
完全关闭日食。
打开 /workspace/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
在每个workingSet元素中,添加以下内容作为第一个子元素:
当您重新启动 eclipse 时,您应该会找到它按预期工作,需要在添加新目录等方面进行更多测试,但到目前为止一切看起来都不错!
I have a (hacky) fix to this problem:
Create your working sets, it doesn't matter that they're missing files or directories, just get them all created using the wizard.
Close eclipse completely.
Open /workspace/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
In each workingSet element, add the following as the first child element:
When you restart eclipse you should find it works as expected, need to do some more testing on adding new directories etc. but so far all looks good!