Problems opening project that is working fine in version 2022.2.4 (Build #IU-222.4459.24, built on November 22, 2022)

已回答

When I updated my IntelliJ IDE a couple of weeks ago to 2022.3 version and I reopened my Gradle project I could see that under "External Libraries" there are no Gradle libraries and I can't use the class finder because the IDE doesn't detect correctly my project structure.

If I open the project again with the previous version (2022.2.4) all is working fine without problems.

I'm using the windows Intellij IDE version and my project is located in the WSL subsystem.

Can you help me to solve this issue?

0
Hi Juan - see if the following helps:

1. Close the project
2. Remove the .idea folder and any .iml files from the project's root
3. In the IDE, go to 'File | New | Project from existing sources' and select your project's main build.gradle file as a source
4. Wait for indexing to finish
0

No way.

I can see all the dependencies in the Gradle window but not in the project under the external libraries folder even nor the class finder can't locate my java classes.

In this project status if I open it using 2022.2.4  IntelliJ version all is working fine, I mean, I can see dependencies in the external libraries folder and the class finder tool works

Is there anything else I can do?

Thanks a lot for your support!

0
It is merely a test to see if the problem comes from the project settings.
You can create a copy of your current project and try to remove the items I mentioned from that new project's root, so that the settings are then re-created by 2022.3.
0

Of course, I forget to mention that I did as you told me. I removed the .idea folder and all .iml files to force 2022.3 create new settings but no way.

When I did it and I saw the project was wrong, I opened it using 2022.2.4 version and works fine.

I've done this test for 3 or 4 tries but no way. 

0
Thank you.

Please attach the 2022.3's idea.log file to https://youtrack.jetbrains.com/issue/IDEA-308418. 'Help | Show Log in...'
0
Thank you, checking.

Let's move further conversation to the YouTrack issue. I linked it to this ticket internally.
0

Perfect! 

Thanks a lot, Arina :)

0
👍🏻
0

Hi Arina,

Just wanted to say that this occus to me as well. Some file are seen as .java rather than class files (they are java files of course... but usually you don't see the extensions in the prject pane) and these files can't be even opened by the IDE. like below:

However, these files are essential to the project and they won't be read at import from other files. right click and "reload from disk" on sigle files make them see correctly from the IDE... I have hundreds of files between projects and if you reload from disk the project or even just the folder it doesn't work... Anyway, at that point the indexing is already gone.

I've invalidated cache and restart, removed the .idea folder and also completely removed the project and redownloaded. Redownloading the project worked but when the I reopened the IDE this week the problem reoccurred.

This problem is quite annoying as some of the project I work with are heavy and to reload all the dependencies takes a lot of time.

Thanks 

0

One more thing to add, hope it helps.

As I mentioned above, reloading the single file works but I noticed that the files that are reloaded correctly they are back to .java (icorrect) when I attempt to reload the folder or project.

This means that the issue is potentially on the bulk load of the files.

0

Hello,

Please report issue on YouTrack (https://youtrack.jetbrains.com/issues/IDEA) attaching logs folder zipped (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files) after facing the issue for investigation.

0

请先登录再写评论。