When I add a new (.java
) file to my project in IntelliJ, it does not get automatically added to p4, even though it was configured to do it.
When I try to add it manually to p4 (using p4v -> rclick -> add) it says "ignored file can't be added". I have not done anything to mark this file as "ignored". I have also checked the .p4ignore
file in my p4 client root dir. It does not have any rules targeting that directory or *.java
.
I can go to command line and do p4 reconcile -I
, which has the effect of adding the file to p4. But why do I need to do this? Why don't new files get added to p4 automatically, and why does p4 see them as "ignored"?
I am using IntelliJ 13.1.1 Ultimate on Win7 64-bit with the P4 plugin. Using p4v version "2013-09-24". IntelliJ is configured to silently add new files to p4 (File -> Settings -> Version Control -> Confirmation). The IntelliJ-specific list of ignored files contains only IntelliJ-specific files (*.iws
, .idea/
, etc.).
.java
files. Perforce walks up the tree from the directory containing the file to be checked in all the way to the root when evaluating.p4ignores
. – gaige