Changed rows are not highlighted in PHPstorm

When I make a change in a file, the row is not highlighted. There are no color blocks next to line numbers.

The changed file is highlighted (the file name in tab and in project window), but when I click outside of phpstorm, the highlight gets disappeared.

I have turned on the "Highlight modified lines in the gutter" option in Settings > Editor > General. Even if I display Git > Current File > Show Diff, the changed lines are highlighted there. I have also disabled all downloaded plugins, invalidated cache, restarted phpstorm, removed the .idea folder.

I have PHPstorm 2020.3.

Any ideas? Thanks.

0

Is there any chance that you have "Version Control > Git > Enable staging area" option active?

Please check:

https://youtrack.jetbrains.com/issue/IDEA-256674

0
Avatar
Permanently deleted user

I don't have the option active. Even downgrade to 2020.2.4 did't solve the problem.

0
Avatar
Permanently deleted user

On Netbeans IDE, everything works even without any configuration.

0

Could be too obvious but does the "Save" action as proposed in the ticket above change anything?

0

Ran into the same issue in v2021.3.2. It turned out to be due to the case folding. I have `tests/unit` in git, but on a local filesystem (MacOS, case-insensetive) it was `tests/Unit`, which was causing PhpStorm to not highlight changes to files in that folder. The git CLI works just fine, and I can see the changes with the `git diff`, so I'd say it's a PhpStorm bug.

0

请先登录再写评论。