eclipse 中的 pydev 插件未在项目资源管理器中显示文件

发布于 2024-12-15 16:20:54 字数 166 浏览 2 评论 0原文

我在 eclipse 中使用 pydev 插件。我可以创建项目,但在项目资源管理器中看不到文件。

我附上屏幕截图。知道如何解决它。

谢谢 Kiran

在此处输入图像描述

I am using pydev plugin in eclipse. I can create the project, but I cannot see the files in the project explorer.

I am attaching the screenshot. Any idea how to fix it.

Thanks
Kiran

enter image description here

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

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

发布评论

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

评论(3

中性美 2024-12-22 16:20:54

在 Pydev 资源管理器中按 Ctrl+F10,然后从顶级元素中选择项目。它将显示您工作区中的项目

in Pydev explorer Ctrl+F10 then from Top Level Elements choose Projects. It will show the projects in your workspace

愁杀 2024-12-22 16:20:54

我有一个小解决方法。我不确定“PyDev Package Explorer”和“Package Explorer”之间应该有什么区别,但很明显其中之一是有问题的。

我很清楚这是2011年的事情,但我在搜索时遇到了这个问题。我希望我的回答能帮助别人。

  1. 确保您处于“PyDev”视角。
  2. 顶部菜单栏>窗口>自定义视角...
  3. 菜单可见性选项卡
  4. 在“编辑”下,勾选“显示视图”框(它可能会以某种方式半勾选,具体取决于操作系统的显示方式)。按确定。
  5. 顶部菜单栏>窗口>显示视图>包资源管理器
  6. 现在应该可以看到一个新的“视图”,称为“包资源管理器”。将 Package Explorer 移动到适当的空间(单击并拖动)。
  7. 删除旧的“PyDev Package Explorer”。

I got a little workaround. I'm not sure what the difference between "PyDev Package Explorer" and "Package Explorer" is supposed to be, but it's clear that one of them is buggy.

I'm well aware that this is from 2011, but I came across this question while searching for it. I hope my answer will help someone.

  1. Ensure you are in the "PyDev" perspective.
  2. Top menu bar > Window > Customize Perspective...
  3. Menu Visibility tab
  4. Under "Edit", tick the "Show views" box (it might be half-ticked somehow depending on how your OS displays that). Press OK.
  5. Top menu bar > Window > Show view > Package Explorer
  6. A new 'view' should now be visible, called "Package Explorer". Move Package Explorer to an appropriate space (click and drag).
  7. Delete the old "PyDev Package Explorer".
旧夏天 2024-12-22 16:20:54

看来 Eclipse 没有最新的资源...

您是否配置了 Eclipse 自动刷新资源?

  1. 偏好设置>一般>启动和关闭:选中“启动时刷新工作区”

  2. 首选项>工作区:选中:自动刷新(这取决于您的 Eclipse 版本 - 在 3.7 中,设置发生了一些更改,但应该很容易知道哪些配置是相关的)。

您还可以尝试手动刷新:F5 或右键单击:刷新。

另一件需要检查的事情是项目的路径是否确实是您期望的路径(即:具有资源的路径)——您可以按 Alt+Enter 打开项目的属性并检查位置是否为实际上是正确的。

It seems that Eclipse does not have the resources up to date...

Have you configured Eclipse to do automatic refresh of resources?

  1. Preferences > General > Startup and Shutdown: check 'Refresh workspace on startup'

  2. Preferences > Workspace: check: Refresh automatically (this depends on your Eclipse version -- in 3.7 the settings were changed a bit, but it should be easy to know which configurations are related).

You can also try making a manual refresh: either F5 or right-click: refresh.

Another thing to check is if the path of the project is actually the path you're expecting (i.e.: the path that has the resources) -- you can press Alt+Enter to open the properties for the project and check if the location is actually correct.

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