vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

GitLens was unable able to find Git with Live Share session opened

Open unional opened this issue 7 years ago • 3 comments

  • GitLens Version:
  • VSCode Version: 1.37.1
  • OS Version: OSX 10.14.6 (18G87)

Steps to Reproduce:

  1. Connect to a live share session that does not have git
  2. open a new window or a recent workspace (from the dock).

image

To work around this and keep the live share session opened, I have to use a separate terminal or the terminal of the new window to open the folder.

My guess is this is vscode related, that when open a new window from the dock, it tries to use some environment setting from the existing one (which is the live share session).

unional avatar Aug 31 '19 18:08 unional

But I also observed that it still fail If I have two windows opened. One live share, one normal workspace (with gitlens working).

It still fails even if I first focus the window without problem before using the dock to open another workspace.

unional avatar Aug 31 '19 18:08 unional

I'm currently facing (in some way I think) this issue. I have git set up on both windows 10 and wsl2, but vscode / gitlens will fail to find git every other time I open any project, what is weird, since it is able to find git sometimes, but sometimes not.

Any hint on what I may be doing wrong? @unional

fernandoeeu avatar Aug 31 '21 20:08 fernandoeeu

That's probably a different issue.

unional avatar Aug 31 '21 21:08 unional