microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.65k stars 28.68k forks source link

The git repository has too many active changes #73728

Closed complexityclass closed 5 years ago

complexityclass commented 5 years ago

I have some really annoying warnings and can't even turn them off. Don't show again button doesn't work.

These are two warnings I have The git repository at '/private/var/folders/1g/gq74jq1d3h9cwbz240kdr0x45xywwk/T' has too many active changes, only a subset of Git features will be enabled.

The git repository at '/Users/user/path/to/monorepo/files' has too many active changes, only a subset of Git features will be enabled.

git status -u shows only 1 change git rev-parse --show-toplevel shows correct folder (it's a big monorepo)

The first one is not even a repo, it is a system temp directory.

Steps to Reproduce:

  1. git difftool HEAD (vscode as a merge tool)

Does this issue occur when all extensions are disabled?: Yes/No

joaomoreno commented 5 years ago

git status -u shows only 1 change

This is pretty weird.


If you open a New Window in VS Code, does the error keep appearing?

complexityclass commented 5 years ago

git status -u shows only 1 change

This is pretty weird.

If you open a New Window in VS Code, does the error keep appearing?

Yes, it does. But the error message disappears after several seconds.

joaomoreno commented 5 years ago

Does the error appear right on startup? Can you show me a screenshot of the full window with the error?

complexityclass commented 5 years ago

Does the error appear right on startup? Can you show me a screenshot of the full window with the error?

Yes, right on startup. It doesn't appear if I have changes in single file and appear for 2 or more files with changes.

Here is a screenshot

Screenshot 2019-05-29 at 13 56 25
joaomoreno commented 5 years ago

Can you show me the full output of git status -u on both folders?

complexityclass commented 5 years ago

Can you show me the full output of git status -u on both folders?

Yes

joaomoreno commented 5 years ago

Does it keep happening if you relaunch with code --disable-extensions?

complexityclass commented 5 years ago

Does it keep happening if you relaunch with code --disable-extensions?

I've added this key in .gitconfig, but the problem still exists [difftool "vscode"] cmd = code --disable-extensions --wait --diff $LOCAL $REMOTE

joaomoreno commented 5 years ago

Oh! I missed that part. It only reproduces when used with difftool?

complexityclass commented 5 years ago

Oh! I missed that part. It only reproduces when used with difftool?

yes, only when It used as a difftool

joaomoreno commented 5 years ago

Can you show me the full output of Git: Show Git Output when the issue reproduces?

complexityclass commented 5 years ago

Can you show me the full output of Git: Show Git Output when the issue reproduces?

Yes, here it is Looking for git in: /usr/local/Cellar/git/2.21.0/libexec/git-core/git Using git 2.21.0 from /usr/local/Cellar/git/2.21.0/libexec/git-core/git

git rev-parse --show-toplevel git config --get commit.template Open repository: /private/var/folders/1g/gq74jq1d3h9cwbz240kdr0x45xywwk/T git rev-parse --show-toplevel git status -z -u git config --get commit.template Open repository:
Users/complexity/Development/path/to/monorepo/ios/app/SharedComponents/ Storage/Transformers git status -z -u git check-ignore -v -z --stdin git rev-parse --show-toplevel git rev-parse --show-toplevel git rev-parse --show-toplevel git rev-parse --show-toplevel git rev-parse --show-toplevel

joaomoreno commented 5 years ago

There's a .git folder in /private/var/folders/1g/gq74jq1d3h9cwbz240kdr0x45xywwk/T. If that shouldn't be there, delete it. Then, check whether this still happens.

complexityclass commented 5 years ago

/private/var/folders/1g/

There is no such .git directory ls -ld .?* shows: drwx------ .AddressBookLocks drwx------ .CalendarLocks -rw-r--r-- 1 .keystoneAgentLock

And ls -a | grep git shows: vscode-git-askpass-3c14dd24371060ee0b74aafeaa1aab22acb

joaomoreno commented 5 years ago

That's weird because the log says it was successful in opening a git repo in that location. Something is odd.

vscodebot[bot] commented 5 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

brunovieira97 commented 5 years ago

Isn't this a duplicate of #55428?