Missing .idea (project configuration files) from Version Control dialog

Answered

If I add a run configuration to VCS, `git status` will show the new file:

 

Untracked files:
(use "git add <file>..." to include in what will be committed)
.idea/runConfigurations/DatabaseTest_queryTrain.xml

 

but it won't show in the Version Control dialog. I believe this has something to do with the "Add Project Configurations Files" dialog that pops up at some point but I'm not sure.

How can I get all non-git-ignored items to show in the Version Control dialog?

0
10 comments

Hello,

Aren't they shown under "Unversioned  Files"? Also please check ".idea/.gitignore" file.

0

There's no "Unversioned Files" category. I created an external file (not shown here) and indeed that category works but the items in the .idea folder don't seem to be contained in it or trigger it.

There's no .gitignore in the .idea folder. Also, git status doesn't ignore the new run configuration file, so it's not ignored.

Including a couple screenshots.

Thanks, Will

0

Could you please try to run "Refresh" in "Version Control Tool Window"? If it doesn't help please share idea.log ("Help | Show Log in...") after restarting IDE and reproducing the issue.

0

Is the .idea folder an the run configuration listed in the project tree?

Aren't they added to Ignored FIles and Folders in Settings | Editor | File Types?

0

Ah, indeed the "Ignored Files and Folders" did the trick. "*.idea" was an item – when I remove that, the changes show up in Version Control.

That works pretty well with the exception that now .idea shows up in the Project Tree (seems unwanted) and removing "*.idea" from Ignored Files and Folders may have other UI consequences I don't know about.

Any suggestions for the best way to solve this? Per the official recommendations, not all of .idea should be excluded in .gitginore, so my situation can't be that uncommon.

0

Will,

You may mark ".idea" as excluded from context menu in project view and disable "Show excluded files" under grey cog wheel.

> Any suggestions for the best way to solve this? Per the official recommendations, not all of .idea should be excluded in .gitginore, so my situation can't be that uncommon.

Could you please clarify this point? There is an article where you ould find what should be agged to ignore: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems

 

 

0

Well the distinction is between ignoring that works in the Ignored Files and Folders panel and ignoring via gitignore. My gitignore is set properly: it actually includes most .idea except personal items like my dictionary and workspace.xml.

But IntelliJ defaults to including *.idea in Ignored Files and Folders which causes it to ignore files in .idea that _should_ be checked in (i.e. are not ignored by gitignore). I can removed that from Ignored Files and Folders but it seems (?) like that is in there for a reason.

If not, I'll just do as you say with marking it as excluded in the Project View.

0

Will,

By default ".idea" is not included in "Ignore files and folders" list. It looks like some customization.

 

0

Perfect, thank you. Didn't realize that.

0

Will,

You are welcome!

 

0

Please sign in to leave a comment.