简体   繁体   English

为什么某些文件未在Eclipse中显示?

[英]Why does some files not show up in Eclipse?

I started Eclipse and opened a project that is in a Git repo. 我启动了Eclipse,并打开了一个Git存储库中的项目。 However, a folder with some files does not show. 但是,不显示包含某些文件的文件夹。 Why is that? 这是为什么?

The files are committed, and I am on the right branch so it is not that. 文件已提交,我在正确的分支上,所以不是那样。

$ git status
On branch feat57
nothing to commit, working tree clean

The files exists: 这些文件存在:

$ ls -d html/catalogue/*/
html/catalogue/article/  html/catalogue/backup/  html/catalogue/projects/  html/catalogue/reports/
$ ls html/catalogue/projects/
projects_edit.php  projects_list.php  projects_new.php  projects.php  projects_view.php

Apache finds the files when I access it through a browser. 当我通过浏览器访问文件时,Apache会找到文件。

Two icons seems to show that something is wrong. 两个图标似乎表明有问题。 However, I don't know what they mean. 但是,我不知道它们的意思。

项目浏览器

As you can see, there's something fishy with folders html and catalogue . 如您所见,文件夹htmlcatalogue有点混乱。 The folder that is not showing is in catalogue . 未显示的文件夹在catalogue You can also see that projects does not show. 您还可以看到projects未显示。

I guess you are locking at your project from the "Package Explorer" view. 我想您是从“打包资源管理器”视图锁定项目的。 This is a special view that doesn't represent the file system. 这是一个特殊的视图,不代表文件系统。 It focuses on source and ressource folders, which you can identify by the little brownish symbol inside the "folder" icon. 它着重于源文件夹和资源文件夹,您可以通过“文件夹”图标中的淡褐色符号来识别它们。 I suspect your catalogue folder is excluded from the build path somehow. 我怀疑您的catalogue文件夹以某种方式被排除在构建路径之外。

If it's not, try refreshing the project (mark the project and hit F5). 如果不是,请尝试刷新项目(标记项目,然后按F5键)。

Finally, if you want a view showing the file system, go to Window->Show View->Navigator. 最后,如果要显示文件系统的视图,请转到窗口->显示视图->导航器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么Eclipse中的现有类没有显示“Run as jUnit Test”? - Why does the “Run as jUnit Test” not show up for existing classes in Eclipse? 为什么我的Eclipse插件显示在Eclipse RCP版本中,而不显示在Java和Java EE等其他版本中? - Why does my Eclipse plugin show up in Eclipse RCP version, but not in other versions like Java and Java EE? 在Eclipse中弹出不显示Application - Pop up in Eclipse does not show Application 颠覆性插件未在Eclipse中显示 - Subversive plugin does not show up in eclipse 为什么 Eclipse Java Package Explorer 在某些类上显示问号? - Why does Eclipse Java Package Explorer show question mark on some classes? 为什么Eclipse让我将一些Java 7语言特性编译成Java 6类文件? - Why does Eclipse let me compile some Java 7 language features into Java 6 class files? 为什么Eclipse JUnit4 Runner没有选择META-INF / services文件 - Why does the Eclipse JUnit4 Runner not pick up META-INF/services files 为什么Eclipse不显示“运行”或“运行配置”? - Why does Eclipse not show “Run” or “Run configuration”? 在网络驱动器上保存一些文件时,Eclipse锁定 - Eclipse locking up when saving some files on network drive PyDev 未显示在 Window > Preferences for Eclipse 4.7 (Oxygen) 中 - PyDev does not show up in Window > Preferences for Eclipse 4.7 (Oxygen)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM