Intellij Idea的项目视图并没有显示所有的项目文件

时间:2022-03-22 15:21:12

a colleague of mine checked out a git repository from github which is an assignment for college. But he can't see all relevant files and folders in the project view. Any ideas for solving this issue would be highly appreciated...

我的一个同事检查了github上的git仓库,这是大学的作业。但是他不能在项目视图中看到所有相关的文件和文件夹。任何解决这个问题的想法都将非常感谢。

Screenshot:

截图:

Intellij Idea的项目视图并没有显示所有的项目文件

Thank you and best regards Philipp

谢谢,并向菲利普致以最诚挚的问候

2 个解决方案

#1


6  

Most likely the project was imported into IDEA, but it's not a pure Java project.

这个项目很可能被引入了IDEA,但它不是一个纯粹的Java项目。

Note that non-Java projects cannot be imported from the existing sources using the Import option.

注意,不能使用Import选项从现有源导入非java项目。

You should create a new project, select the appropriate module type and then point to the existing directory with the code when creating the module.

您应该创建一个新项目,选择适当的模块类型,然后在创建模块时使用代码指向现有的目录。

Other options are to import from Maven/Eclipse/Gradle.

其他选项是从Maven/Eclipse/Gradle导入。

There is a known issue logged.

这是一个已知的问题。

If it's not the case, please share a sample project (zipped) that will reproduce the problem.

如果不是这样的话,请分享一个复制这个问题的示例项目(zipped)。

#2


1  

In my case, project .iml file was not found. So I imported project to idea, and it imported project and created .iml file. All files and folders are visible now.

在我的例子中,没有找到project .iml文件。我将项目导入idea,它导入项目并创建。iml文件。所有文件和文件夹现在都是可见的。

#1


6  

Most likely the project was imported into IDEA, but it's not a pure Java project.

这个项目很可能被引入了IDEA,但它不是一个纯粹的Java项目。

Note that non-Java projects cannot be imported from the existing sources using the Import option.

注意,不能使用Import选项从现有源导入非java项目。

You should create a new project, select the appropriate module type and then point to the existing directory with the code when creating the module.

您应该创建一个新项目,选择适当的模块类型,然后在创建模块时使用代码指向现有的目录。

Other options are to import from Maven/Eclipse/Gradle.

其他选项是从Maven/Eclipse/Gradle导入。

There is a known issue logged.

这是一个已知的问题。

If it's not the case, please share a sample project (zipped) that will reproduce the problem.

如果不是这样的话,请分享一个复制这个问题的示例项目(zipped)。

#2


1  

In my case, project .iml file was not found. So I imported project to idea, and it imported project and created .iml file. All files and folders are visible now.

在我的例子中,没有找到project .iml文件。我将项目导入idea,它导入项目并创建。iml文件。所有文件和文件夹现在都是可见的。