Idea-gitignore: "You are editing file which is ignored" warning after upgrading to IDEA 2017.1

Created on 28 Mar 2017  路  29Comments  路  Source: JetBrains/idea-gitignore

I'm getting .i* You are editing file which is ignored warnings for random files after I upgraded to IntelliJ IDEA 2017.1. The warning might disappear when restarting IDEA, but it might also reappear for one or more different files.

The files in case are not ignored and they show up in git as expected.

bug ready for release

Most helpful comment

Same problem on PHPStorm 2019.1.2
Plugin version: v3.1.1.191
Thank you.

All 29 comments

It also uses a lot of CPU when editing the .gitignore file

NIT: maybe a good chance to correct the spelling to You are editing a file which is ignored or rephrase. ;)

I get this where I have an entry in .gitignore for /target and part of my source tree has /target/ in it...

+1

Also getting this error. After updating to 2017.1 files are ignored at random. If cache is invalidated or IDE is restarted then all files go back to normal.

After a few minutes another file (not necessarily the same file) will become ignored. Might need to uninstall plugin till a fix is applied as this stops your ability to add or commit a file to your repo.

I'm having the same issue with 2017.1 . I've temporarily disabled the plugin.

I just installed the plugin and I like, except for this issue. I get seemingly random messages that I'm editing an ignored file, when the file I'm editing is not ignored by any .i*-File.

Uninstalling...

I have also encountered this issue. In my case, I have a global ignore file at ~/.config/git/ignore which contains on .idea/. In the project where I am seeing random ignored files, I also have a .gitignore which contains .idea/. If I remove the global gitignore file, things appear to go back to normal. Disabling the plugin for now.

I can confirm that this also happens on my projects based on git. One is local git repository without remote origins, another one is with corporate gitolite server. In both cases files marked as ignored are totally random.

Most recent scenario:
1) Open project in Idea
2) Move 4 java files into sub-package
3) One of the files in parent package was marked as "ignored"
4) Restart Idea
5) File is not marked as ignored

This behavior prevents using commit from Idea but everything is commit fine when doing from command line or other GUI tool.

I tried putting this line in .gitignore. It changed state for the current session but didn't prevent from happen after Idea restart.
!/src/main/

IntelliJ IDEA 2017.1.1
Build #IU-171.4073.35, built on April 6, 2017
JRE: 1.8.0_112-release-736-b16 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.4

I started having the same problem after I upgraded to Intellij 2017.1.1

IntelliJ IDEA 2017.1.1
Build #IU-171.4073.35, built on April 6, 2017
JRE: 1.8.0_112-release-736-b16 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.1

.ignore
Version: 1.7.6

Same here

PhpStorm 2017.1.4
Build #PS-171.4694.2, built on May 16, 2017
JRE: 1.8.0_112-release-736-b21 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.5

.ignore
Version: 1.7.6

same here

+1

same here

Has this been fixed?

@kevinhaas easy man

image

@AveVlad That was not really an answer to @kevinhaas question.

l'm using Android Studio and had the same issue with one of my layouts.....and I can confirm that updating the gitignore plugin solved the issue (for me at least.......)

I updated to 2.2.1 and the issue disappeared.

image

This was with WebStorm 2017.2

PhpStorm 2018.1 the issue is still present. Ignore version 2.5.0 (seems latest)
screenshot_144

Same problem on PhpStorm 2018.2
Plugin version: 3.0.0.182

Same problem on idea 2018.2.4 ,
Plugin version: 3.0.0.182
Thank you.

Same problem on PHPStorm 2019.1.2
Plugin version: v3.1.1.191
Thank you.

How do we get this issue reopened again as there still seems to be a problem

PHPStorm 2019.1
Plugin version: v3.1.2.191

I am having the same issue recently with PyCharm. I am currently using .ignore v3.1.2.191 and Pycharm version:

PyCharm 2019.1.1 (Professional Edition)
Build #PY-191.6605.12, built on April 3, 2019
JRE: 11.0.2+9-b159.34 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Same issue with Rider 2019.2
Plugin 3.2.2.192
Mac OS

Same issue with Android Studio 3.5.2
Build #AI-191.8026.42.35.5977832, built on October 30, 2019
JRE: 1.8.0_202-release-1483-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

The issue is still there on CLion 2020.2.1

The same issue still going on

I had solved this by manually adding the affected files in git.
Go to file, right click, Git -> Add

Was this page helpful?
0 / 5 - 0 ratings