Eclipse Helios - 工作集中缺少文件和目录

发布于 2024-10-07 02:01:39 字数 1186 浏览 2 评论 0原文

当我创建一个没有过滤器的工作集时,我会在目录 heirachy 中看到所有 PHP 文件,除了最后一个嵌套目录中的文件。在此目录中,PHP 文件不会显示在 PHP Explorer 中,即使它们确实存在于该目录中。在未定义工作集的情况下查看项目时,不会发生这种情况。

有什么想法吗?

编辑 我现在发现其他项目也发生这种情况,并且带有 javascript 文件的整个目录都丢失了。我只是重新创建了这样的问题:

  1. 创建了一个 PHP 项目并导入了干净的 WordPress 安装的源代码
  2. 创建了一个基于整个项目的工作集
  3. 截取了它的屏幕截图;注意目录 my_wordpress.co.uk/wp-includes/js/crop/;这是屏幕截图:
    完整工作设置
    (来源:internetsolutionsni.co.uk

  4. 编辑当前活动工作集并取消勾选(删除)目录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:

  1. created a PHP project and imported source for a clean wordpress installation
  2. created a working set based on the whole project
  3. took a screen shot of it; notice the directory my_wordpress.co.uk/wp-includes/js/crop/; here is the screen shot:
    Full working set
    (source: internetsolutionsni.co.uk)

  4. edit the current active working set and unticked (removed) the directory wp-content
    now the working set is minus the wp-content folder, but also several other folders have 'disappeared' including my_wordpress.co.uk/wp-includes/js/crop/; see the resulting screen shot:
    Resulting working set
    (source: internetsolutionsni.co.uk)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等你爱我 2024-10-14 02:01:39

我对这个问题有一个(hacky)修复:

创建你的工作集,它们丢失文件或目录并不重要,只需使用向导将它们全部创建即可。

完全关闭日食。

打开 /workspace/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml

在每个workingSet元素中,添加以下内容作为第一个子元素:

<item elementID="=WORKINGSET_NAME" factoryID="org.eclipse.dltk.ui.PersistableModelElementFactory"/>

当您重新启动 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:

<item elementID="=WORKINGSET_NAME" factoryID="org.eclipse.dltk.ui.PersistableModelElementFactory"/>

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文