idea-gitignore: File colouring not working
Prerequisites
- Plugin is in the latest version
- Issue was not reported yet
- Stack trace (if provided) contains
mobi.hsz.idea.gitignore
package name
Description
Running the latest phpstorm eap and the latest version of the plugin the file colours no longer work (ignored files still show with default colours in file tree).
I feel it may actually be an issue with the identification of the ignored files rather than the colouring as the “Hide ignored files” also has no effect.
There is no exception being thrown. I have tried disabling the setting and invalidating cache + restart, then enabling and invalidating cache + restart to no avail so it does not appear to be a project issue (also occurs over all projects).
I will note however that after invalidating the cache and restarting, during indexing for the last ~5 seconds the colours do work, but only in the last part of the indexing and they stop working again after it has completed.
Versions
Plugin: Version: 2.1.1
IDE: PhpStorm 2017.2.1 EAP Build #PS-172.3968.23, built on August 26, 2017 JRE: 1.8.0_152-release-915-b11 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.8.0-59-generic
OS: Kubuntu 64bit 16.10
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 4
- Comments: 54 (10 by maintainers)
Commits related to this issue
- #462 - migration to DumbModeListener — committed to JetBrains/idea-gitignore by hsz 7 years ago
- #462 - fixed patternPath obtaining — committed to JetBrains/idea-gitignore by hsz 7 years ago
- #462 - ContainerUtil.addAllNotNull must not be null — committed to JetBrains/idea-gitignore by hsz 7 years ago
- #462 - avoid clearing cachedIgnoreFilesIndex — committed to JetBrains/idea-gitignore by hsz 7 years ago
- #462 - avoid duplocated entries in OuterFiles panel, fixed StackOverflowError, associate new files with IgnoreFileType in proper thread — committed to JetBrains/idea-gitignore by hsz 7 years ago
- #462 - File colouring not working — committed to JetBrains/idea-gitignore by hsz 7 years ago
I have install version 2.2.0 and it’s seems to work fine but only till first restart of IDE. After restart of IDE it doesn’t coloring again. If I remove the plugin and install it again it will work fine till next restart.
Please fix it.
I don’t have the issue anymore with plugin version 2.3.2 on PhpStorm 2017.3, even with rules from my global ignore file.
Yes it’s still buggy, but OK when I really need it I simply cut (cmd + x) all rules from the projects .gitignore, save the file, paste everything back, save the file again, and colouring is working again for quite a while. Even when switching between projects.
I confirm v2.2.1 fixes the issue (after cache invalidation), thanks!
Edit: Actually it still doesn’t work for files ignored by global Git ignore file.
@hailwood thank you for the confirmation.
@julienfalque This is because ignoring depends on indexed files. 😉 I’ll try to improve it somehow, but I can’t promise that it’ll be easy to achieve.
if you have 2 projects and do invalidate cache then coloring works only in second opened project.
Cache invalidation is works till first restart of IDE.
UPD: BTW I tried PhpStorm 2017.3 EAP and it’s works fine even with version 2.2.0
File > Invalidate caches / restart
@leymannx interesting. That’s how it used to function for us in an older version of .gitignore (which was totally fine by us).
So I upgraded to the PhpStorm 2017.3 EAP Build #PS-173.2099.16, built on September 7, 2017
And now it’s all working for me again, including persisting after a restart. Can anyone else confirm?
@hailwood
v2.2.0-RC4
is releasedI was having the same issue on OS X Sierra/PHPStorm 2017.2.1 and fell back to 2.0.4 and all is as it should be. I also sent the guy some money, because I didn’t realize how much I’ve come to depend on knowing what’s being ignored!