idea-gitignore: All files are marked as ignored

Just updated to version 3.1.1.191 and all my files are now marked as ignored. Here is my .gitignore file:

vendor
public_html/.maintenance
.idea
protected/data/script_map.json

config/docker/logs/
config/docker/etc/php.d/local-xxx.ini
config/docker/local/.bash_history
.sass-cache
/cache.properties
/build/logs/
/build/coverage/
scripts/deploy/
.php_cs.cache
public_html/sitemaps/*

/tests/Codeception/_output/
/tests/Codeception/_support/_generated/

config/php/settings.php
build

public_html/bower/
/phpunit.xml
node_modules/
/public_html/build/

PhpStorm 2019.1.2 Build #PS-191.7141.52, built on May 8, 2019 JRE: 1.8.0_202-release-1483-b49 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 61
  • Comments: 50 (13 by maintainers)

Commits related to this issue

Most upvoted comments

All right, fix has been released with v3.1.2. Now it has to be accepted by the Jetbrains team.

image

All right - fix is ready for the deployment. It turned out, that I was checking if the tested file is inside module (so it’s not an outer file like /tmp/foo.txt) using module.getModuleContentScope().contains(file) and for some files, SDK returned false, but for their parents/grandparents - true. In my opinion, it shouldn’t work this way, but I’ve switched the test method to comparing the file’s path and everything is displayed correctly.

I’ll release v3.1.2 soon after testing for the previous IDE platforms (2018.x/2017.x).

Yes I see there are no rules to ignore all files. This is my work project so I can’t share it. This .gitignore file wasn’t changed for a while, but today I updated plugin and problem happend. Restarted phpstorm 2 times and had to disable plugin becuase of this issue.

I just disabled this plugin, It ignores all of my files and folders in my project

Glad to know I’m not alone 😃

I just disabled this plugin, It ignores all of my files and folders in my project

That’s correct, I’ve published v3.1.2 plugin packages here: https://github.com/hsz/idea-gitignore/releases/tag/v3.1.2 You can get the proper one (depending on the IDE version) and install manually.

I have the exact same issue, but with an Yii PHP project.

PhpStorm 2019.1.2 Build #PS-191.7141.52, built on May 8, 2019 JRE: 1.8.0_202-release-1483-b49 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.4

@hsz I’m having the same issue as @EvilBMP on 3.1.2.191. Here’s a minimal project that exhibits the issue: https://github.com/philipnewcomer/intellij-ignore-test

Screen Shot 2019-05-20 at 8 15 27 AM

Same for me. I guess it’s related to the *. Seems to be to eager and doesn’t consider the following exceptions.

Finally, JetBrains approved the new version!

Yea, I thought I misconfigured my gitignore file but not.

This happen after an update from this plugin.

I don’t see a problem after the upgrade. Everything is okay now.

This issue should reopened because i still dont see any change after the update. There are still all files marked as ignored.

#Edit: I am using Plugin Version v3.1.2.191 and PHPStorm 2019.1.2

@hsz Why was the issue closed, when the fix is not working as expected? Should we open a follow up issue?

Yes, removing the vendor directory solves the problem.

@hsz I’m having the same issue as @EvilBMP on 3.1.2.191. Here’s a minimal project that exhibits the issue: https://github.com/philipnewcomer/intellij-ignore-test

Screen Shot 2019-05-20 at 8 15 27 AM

Using /foo/*/ instead of /foo/* works for me.

I still have the same issue. Files visually look like being ignored while they are under version control. Pretty annoying.

#Edit: I am using Plugin Version v3.1.2.191 and PHPStorm 2019.1.2

@hsz Yeap, on my phpstom (2019.2.1) i have the same issue as @philipnewcomer and @EvilBMP after upgrade to 3.2.191 for your cool plugin.

@Jean85 Everything is on the @jerbrains side now. We all have to wait until they will finish this update process. Sorry for the all inconveniences. 😔

Still having this bug on 2019.1.2, I’m missing the 3.1.2 update. Any ETA on that? I had to disable the plugin.

I think all has been said. BTW thanks for the plugin, expect for this bug it works well. 😃

Same here: symfony project where are files (except .gitignore itself) are marked as ignored after updating to v3.1.1.191. When I remove the vendor folder, files are no longer ignored. Running composer install markes the files as ignored again.

PhpStorm 2019.1.2 Build #PS-191.7141.52, built on May 8, 2019 JRE: 1.8.0_202-release-1483-b49 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.4

Same result. All files are marked as ignored.

вт, 14 мая 2019 г. в 16:08, Jakub Chrzanowski notifications@github.com:

Ok, when you’ll keep .gitignore empty, try to:

  • Close any other projects (but I assume, that’s the only opened project, right?)
  • File > Invalidate Caches / Restart - so IDE should be completly restarted

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hsz/idea-gitignore/issues/581?email_source=notifications&email_token=AACMMFZ4MNKIGCA73JK7P4TPVJJPVA5CNFSM4HMUWWFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVKLUUI#issuecomment-492091985, or mute the thread https://github.com/notifications/unsubscribe-auth/AACMMF5I4ZJ6J6JMMIKSS23PVJJPVANCNFSM4HMUWWFA .

– Анатолий Пашин.

IIRC, this was fixed long time ago. I’m currently using the newest stable version of PhpStorm 2021.1.2 and I’m no longer facing this issue.

Same issue here too 😢

I can confirm @dlubitz finding. The issue is related to using wildcards on directories.

I don’t see a problem after the upgrade. Everything is okay now.

Seems that I was wrong. I tested the case and it hasn’t been thoroughly fixed 😦

2019-05-20_13-19-19

I have installed the latest release, which fixed the “all is ignored”. But in my scenario there are still problems. See attached screenshot. I have ignored everything in a sub-directory and excluded two project relevant directories in there. The (e.g. bechlem) directory itself is not marked as ignored anymore in the project tree, but all files and directories below are still marked as ignored. That shouldn’t be the case…

@hsz i want to thank you for the good work and fixing this problem!

If it’s of any help, you can grab the latest Yii release from https://github.com/yiisoft/yii2/releases/download/2.0.18/yii-basic-app-2.0.18.tgz

It comes with the vendor dependencies and I was able to reproduce the issue on it.

Ok, when you’ll keep .gitignore empty, try to:

  • Close any other projects (but I assume, that’s the only opened project, right?)
  • File > Invalidate Caches / Restart - so IDE should be completly restarted