question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to unignore vendor folder

See original GitHub issue

Prerequisites

  • Plugin is in the latest version
  • Issue was not reported yet
  • Stack trace (if provided) contains mobi.hsz.idea.gitignore package name

Description

Plugin kept marking my vendor folder as ignored no matter what I do, only solution was to uninstall the plugin.

Steps to Reproduce

  1. Open a project that uses composer containing a vendor folder
  2. Install the .ignore plugin
  3. Search for a way to unignore the vendor folder

Expected behavior: When I remove the automatically-added directories inside the vendor folder in the settings, I expect the vendor folder to not be ignored anymore. It is not in any other ignore file inside the project.

Actual behavior: Even after restart of phpStorm, all files and folders inside the vendor folder remain ignored.

Reproduces how often: 100%.

Versions

Plugin: 2.6. something - it’s uninstalled now. Was the latest version at the time.

IDE: PhpStorm 2018.1.6 Build #PS-181.5281.35, built on June 14, 2018 JRE: 1.8.0_152-release-1136-b39 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.12.6

OS: see above

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
miguel-serranocommented, Nov 16, 2021

git rm -r --cached vendor

😉

1reaction
ethanbeyercommented, Sep 25, 2019

I know this comment is super late, and may not apply…but who knows. I found a bug in one of my repos where every single folder called “vendor” was ignored. Unfortunately, some of those “vendor” folders were apart of plugins and needed to be present in deployments.

I changed vendor to /vendor in my project root .gitignore, but could never add the vendor folders in other parts of the tree.

And then I discovered that at some point in my life, I added vendor to my ~/.gitignore_global file.

May just help someone who made the same mistake.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git ignoring vendor folder - ruby on rails - Stack Overflow
I have added vendor folder to my .gitignore file, but still whenever I do git status it shows me that vendor folder is...
Read more >
example.gitignore doesn't ignore root vendor directory when ...
gitignore to .gitignore in the web/ directory), the vendor directory in the project root directory is not ignored. It appears to me that...
Read more >
Should I really be gitignoring the vendor folder? - Laracasts
I'm not picking at anything. The question is whether there may be a reason to not have vendor on gitignore... I gave some...
Read more >
Do I gitignore the /vendor folder? (dep) : r/golang - Reddit
Hello,. I know in node.js you gitignore the /node_modules folder as "npm install" downloads dependencies from your package.json.
Read more >
258345 – 'vendor' directory always ignored
In PHP, the `vendor` directory is always ignored in Git repositories, even if it's not mentioned in the `.gitignore` file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found