project hierarchy not always highlighting files with errors

已回答

I use IntelliJ to primarily develop Minecraft mods. So, i was updating my mod using gradle from 1.20.4 to 1.21.3 and of course, I will get lots of errors, usually in IDEs like Eclipse, it will highlight all files with errors, which will make it easy to debug and fix without having to run the application and get introduced to possible new errors. However,for some odd reason it is acting very inconsistent. It's a bit hard to explain so I'll share some screenshots.

As you can see, there are errors in the editor view, but it's not highlighted in the project view.

 

Then, I had to try to find a file with errors but as you can see, it highlights the file in the project viewer.

Now, after I press the spacebar, the red underline dissappear on the file.

 

This was a problem with IntelliJ 2023 and 2025 and I really need that feature working so I can efficiently.

I did try build it to list all the errors, but that doesn't help me as it is not organized where I can work as efficiently as possible.

So, I am really hoping someone is able to help with this issue, if not, I'll probably just use Eclipse since Eclipse never caused such problems.

 

1

Hi Jonathan,

I don't seem to be having this problem in my projects. Do you have it other projects too? Even brand new ones?

It could be caused by stale index or third-party plugins interfering with normal indexing processes.

See if it helps to:

  • File | Invalidate Caches → check first three boxes → Invalidate & Restart
  • Temporarily disable ALL non-bundled plugins and restart the IDE: File | Settings | Plugins | ⚙ | Disable all downloaded plugins
0

I have did Invalidate Caches a lot so it hasn't worked. I just tried to Disable all downloaded plugins. I created a fresh new project to experiment and the problem persists, so yes it does happen on brand new ones--this is with all installed plugins disabled. Furthermore, I am collaborating with someone on a Minecraft mod project and he said he has been having issues as well.

This problem is starting to be a nuisance as when collaborating with a error, I pushed and merged something to the git that failed it's build as there was an error I was not aware of because of this bug. I do need this fixed ASAP.

0

Thanks for the information.

Other things you can try:

  • Temporarily reset IDE settings to defaults (a backup copy will be created in the process): File | Manage IDE Settings | Restore Default Settings
  • Re-create project configuration settings from scratch:
    1. Close the IDE, go to the project directory, backup and delete the entire .idea folder and any .iml files from its root
    2. In the IDE, go to File | New | Project from existing sources, select the project's source (root directory or main build file)
    3. Wait for indexing to finish
  • Close the IDE and manually remove the following folders: configuration folder (preferences) and system folder (cache)
  • Install the latest version 2025.2 Beta side by side and check there

 

If none of that helps, please submit a new ticket to YouTrack and provide the following for analysis:

  1. A small demo project where the issue can be reproduced for you, and steps to reproduce it with affected files
  2. IDE logs (entire archive): Help | Collect Logs and Diagnostic Data. We will search for exceptions and check your system environment settings. 
    Logs can be attached to the ticket or uploaded securely to our server (make sure to share the ID of the upload so that we can find it).
0

请先登录再写评论。