File name showing as a stand-in for the project when open in 2023.3.1

Answered

When I open my main project in 2023.3.1 instead of showing the directory name in the dropdown to the right of the hamburger menu it shows a Java file from the project. The first 2 letters of it are on an icon. The file is not open in the editor. The same file shows on reopening. This file is nothing special in the project.

Why is a supposedly random file from the project down in the dropdown? How can I go back to just showing the directory name? I tried another project and it shows the directory name when open.

1
6 comments

Hello,

Please attach screenshot demonstrating the issue.

0

also happening in 2023.3.2

0

Is it possible to share the problem project? (https://uploads.jetbrains.com/). 

Please try to back-up “.idea” subfolder of your project folder, remove ".idea" from the original location, and reopen the project, so that “.idea” will be re-created. This should fix the issue.

0

Nadia Tarashkevich removing .idea, did indeed solve the problem. I backed up the folder first. Is there somewhere I can read up on what is stored there and what will I loose after it being recreated?

0

Settings stored within the .idea folder are specific to your local environment. They may be irrelevant to other developers working on the same project, so usually, .idea content is not put under version control.

.IDEA contents:

  • Project Files: Configuration files specific to your project, such as .iml (module files) and workspace.xml (workspace-specific settings). They are often put into version control.
  • Run/Debug Configurations: Configuration files for your run/debug configurations, specifying how your application should be executed or debugged.
  • Code Style Settings: Settings related to code formatting and style for your project.
  • Version Control Settings: Configuration related to version control integration (e.g., .gitignore files, VCS settings).
  • Inspection profiles  ("Settings | Editor | Inspections")
  • Code templates ("Settings | Editor | Live templates")
  • Project icon (auto-generated icon is also stored)
1

Great info thanks 👍

0

Please sign in to leave a comment.