[英]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
. 如您所见,文件夹
html
和catalogue
有点混乱。 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.