Intellij Idea's Project view doesn't show all project files - intellij-idea

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...
Screenshot:
Thank you and best regards
Philipp

Most likely the project was imported into IDEA, but it's not a pure Java project.
Note that non-Java projects cannot be imported from the existing sources using the Import option.
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.
There is a known issue logged.
If it's not the case, please share a sample project (zipped) that will reproduce the problem.

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.

Related

Can't import module in Idea

I try to import module from existing sources, but got "The project is already registered" error message. I have another 2 sources what I could import in the same way. Only that one causes this problem. Technically there are no differences among these 3 modules.
The main problem could be that once I imported this source as a project instead of module. I suppose that the issue is relating to this failure.
I can't force Idea to forget this cached setting. Following some tip found on internet I tried a lot of things to do so...
From Idea side:
Closed the project
Clear recent projects
Gradle refresh / clean etc.
From file system side:
I removed .idea folder from the folder of that source
I cleaned up the wrong project name from every human readable file in .IdeaIC2017.1 folder
Uninstall Idea with cache cleanup, then download/install the recent version 2017.2. Even after this step the problem remained!!!!
I don't have so much experience with Idea, but this doesn't help getting love it...
I stucked. Please help!

how to export intellij project

I simply want to export my java intellij project from one pc to another, no need for git because I only want to test something on the other pc because it has more memory.
Surprisingly no information on this is available, there is information on how to export a project to a jar file, but I cannot import from this jar file. On their website : https://www.jetbrains.com/help/idea/2016.3/import-existing-sources-project-name-and-location.html they don't give any clear instructions on how to do this simple operation? how is this done?
Till version 2016.3.4 IntelliJ doesn't provide such facility.
Best way to do so would be to copy the whole directory containing your project or module. Doing this would retain all your project related settings.
With the latest version of IntelliJ IDEA, all you need to do is unzip the project in the new computer and then select Open in the IntelliJ IDEA new project wizard. Do not use the option to import the project from the zip file, as that doesn't work.
Take all directories of your project and copy them into the other computer. Launch IntelliJ and open the folder of your main directory project, that is all it needs to work (*.iml files do all stuff for you). If you don't know what directory is the main, you can close the project in your other IDE and see what paths it is catching. For example in my case:

Some classes can't be resolved when compiling Apache Drill?

I built the Drill project according to the wiki specification
but, the project has some errors. Some classes (BigIntVector, BitHolder,BigIntHolder) can't be resolved and the workspace don't really contain these class files. Any suggestions as to what's going on?
These clases are generated during build.
exec/java-exec/target/generated-sources/org/apache/drill/exec/expr/holders/BigIntHolder.java
There is a problem in that the Maven import into eclipse results in target/generated-sources/org being added to the Source Folder build path. I have found that in the two cases, comon and java-exec, if you remove these folders from the source folder build path and add them as target/generated-sources this will help.
This is a workaround, there is obviously a misconfigured pom.xml somewhere.

Creating a project from a folder in IntelliJ Idea 12

I have a code in Java. It contains only *.java files in the nested directories and nothing else. I want to create a java project using it. How do I do that in IntelliJ Idea 12?
Import Project, select the directory with the existing sources (or its parent that you want to be the project root), follow the wizard steps.
More details can be found in online help.

IntelliJ IDEA and PlayFramework modules

After a lot of good comment about IDEA, I decided to give it a try. I downloaded the Community Edition and would like to use it for PlayFramework development.
I have followed official documentation and some other information gathered around, but I have not succeeded completely. When using a project with differents (play) modules, the different classes are not found.
For example when using Secure module, IDEA keeps complaining about not finding Secure.class. It has to be a classpath issue. I tried to attach Java source & classes ($PLAY/modules/secure/) in module settings (F4), class is still not found. Did I miss something?
BTW, I have done a play dependencies and play idealize, which seems to add another module Secure into project in IDEA.
Thanks,
The answer is to run the following:
play deps
play idealize
This forces the IDEA .iml project file to be refreshed with the updated class path entries for the new module (in this case Secure).
A issue I came across using IntelliJ and Playframework.
The log4j.properties file or log4j.xml file are not in classpath by default. You have to add the conf as a source folder in module settings.
You need to add the Secure module you have created in IDEA as a dependency to the main application module:
Go to File -> Project Structure
Choose the main module
Choose the Dependencies tab
Click Add -> Module Dependency
Choose the IDEA Module you created for the Play Secure module
Also make sure you have the correct source path selected for the Secure module in IDEA.