Siddhartha
Siddhartha

Reputation: 4454

Why is IntelliJ marking my file red despite no errors?

enter image description here

I'm integrated with VCS Perforce, and I confirmed that this is a file in my active changelist. I'm on IJ 12.1.4

Upvotes: 7

Views: 5180

Answers (2)

Gene
Gene

Reputation: 11265

It's a Version Control issue. For me, I had to right click on the file, then choose "Git" -> "Use my commits" enter image description here

Upvotes: 4

Siddhartha
Siddhartha

Reputation: 4454

I found it! It's marked like that because I had done a p4 sync and the file had been changed since I had in my changelist, and so it needed a resolve..

IntelliJ should say what the problem is when hovering upon the file name.

Upvotes: 5

Related Questions