Intellij Idea 2018 does not show source code

Answered

I have been using intellij idea for my project. After working a few days, I cannot open some java files in editor. After invalidate caches & restart i can open those files. But after this, if somehow i close one of those files, i cannot open those files again.

Files are in random directories. I encounter with the same problem with the same files.

0
3 comments

See Configure content roots. You should configure content roots to include the directories where you source files are located and make sure the root folder of the source files is marked as a source root.

0
Avatar
Permanently deleted user

For example I have a source package aaa. In this package I have 12 java files. I can see 11 java files and source code but not 1.

 

0

Check the Settings(Preferences) | Editor | File Types -> Ignore files and folders patterns.

If issue remains please provide a sample project.

0

Please sign in to leave a comment.