All project files are suddenly shown in yellow

Answered

Hello, All,

 

I don't know exactly what I can have done to have my current issue (apparently, many other users with the exact same issue didn't seem to have a clue either). But suddenly all my project files are shown in yellow in the project window at the top left of the IDE.

It is a maven project, I have all source files available, in the meantime I also upgraded my IntelliJ version (currently CE, v. 2022.1.3, build 221.5921.22), and like already suggested in forums (I think it was on stackoverflow), I executed "repair IDE", but this hasn't fixed the problem.

I tried to delete my project from the history, and re-opening it the way I know it worked before (i.e. to open the project from the pom.xml). But before I used to be asked if I wanted to open the pom.xml file itself, or the project (and then I selected the project). But for some reason, this doesn't work any longer (I'm not asked, it just opens pom.xml). Deleting the complete .idea folder hasn't fixed my issue either. Some state must be left somewhere, but I can't figure out where that could be.

 

As I have all files available, I'd like to know the exact steps I should execute to have my project back like it used to be. What should I do to resore the project like it was before, knowing that I have from my pom.xml and all my sources and resources in and below my <project folder>/src/main/java and <project folder>/src/main/resources ?

1
2 comments
Avatar
Permanently deleted user

<embarassed mode>

Right after looking for quite a while, and having just posted my question, I continued to look for a solution. I noticed I got an error "unable to save settings". Then looked at my .idea directory, saw it wasn't there, whereas it had been there before, and I did have deleted it before.

 

But now, as it wasn't there (it puzzles me why it hasn't been re-created this time), I created it. And then executed "repair IDE". ... and it worked. So sorry to have posted this question a little too early, it works now with my (manually created) new .idea directory.
</embarassed mode>

Maybe still some clue could be given here as to why the .idea directory wasn't created by the IDE ...

1

Here are general steps on how to solve such problems:

- Close the project window `File | Close Project` and IntelliJ.
 
- Open your project in OS file explorer, backup and remove all `*.iml` files and the `.idea` folder from your project.
 
- Re-import the project into IntelliJ from Existing sources https://www.jetbrains.com/help/idea/maven-support.html#maven_import_project_start .
 
Also, feel free to contact support team at https://intellij-support.jetbrains.com/hc/en-us/requests/new and provide `*.iml` files, the `.idea` directory and the IDE logs compressed for the investigation.
 
 
0

Please sign in to leave a comment.