Vscode: Git doesn't work any more.

Created on 10 Apr 2017  路  42Comments  路  Source: microsoft/vscode

  • VSCode Version: Code 1.11.1 (d9484d12b38879b7f4cdd1150efeb2fd2c1fbf39, 2017-04-06T14:00:34.044Z)
  • OS Version: Darwin x64 16.5.0
  • Extensions:

|Extension|Author|Version|
|---|---|---|
|beautify|HookyQR|1.0.2|
|html-css-class-completion|Zignd|1.0.3|
|file-icons|file-icons|1.0.3|
|auto-rename-tag|formulahendry|0.0.11|
|path-autocomplete|ionutvmi|1.4.1|
|docthis|joelday|0.4.3|
|Go|lukehoban|0.6.59|
|vscode-icons|robertohuertasm|7.5.1|
|guides|spywhere|0.7.0|
|JavaScriptSnippets|xabikos|1.4.0|;


Steps to Reproduce:

  1. Upgrade to v1.11.1
  2. Open an git repo with some files untracked
  3. Open the git tab from the left tab list
  4. No files can be shown up in this tab.

After upgraded to the latest version(v1.11.1), I noticed that the git tab doesn't work any more, no more data can be shown up except a title "SOURCE CONTROL" and an empty input fields with a placeholder like the screenshot below.

Have tried to remove all the extensions and delete all my custom settings, git doesn't come back.

image

needs more info

Most helpful comment

@joaomoreno Guess what, Git comes back after I did the steps below.

  1. Disable Preview SCM
  2. Enable Preview SCM

Done...

@Earl-Brown Try these two steps (Cmd +Shift + P -> SCM -> xxx)

All 42 comments

Can't reproduce. Works perfectly fine for new or old projects for me on macOS 10.12.4

Dumb question, do you have git installed? via homebrew or manually otherwise?

Actually, It works well before upgrading to v1.11.1 and I didn't do anything else manually. It's an odd case..

image

Open "Developer Tools" and an error message was threw out

Thanks for the log!

I'm gonna ask you to do some surgery.

Please open the /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/git/out/askpass.js file, go to line 20 and change

this.server.listen(0, 'localhost');

to

this.server.listen(0);

Does that make it work?

The error message has gone, but git doesn't come back.

If you run SCM: Switch SCM Provider, do you see Git in the list?

Nope, so there should be something wrong, right? @joaomoreno

I'm guessing there are no more errors in the dev tools?

Yes, no more error with dev tools.

But, sorry bro, it's not very convenience to do so since I am still working at office, how about to schedule another time, maybe the same time tomorrow?(I am in GMT+0800)

Yeah let's do that: 14:00 UTC time, same meeting URL.

Thanks so much, U R awesome

I am experiencing the same symptoms.

This is on my home computer - but my work computer is just fine.

Is there anything I could do to provide more clues?

@joaomoreno Guess what, Git comes back after I did the steps below.

  1. Disable Preview SCM
  2. Enable Preview SCM

Done...

@Earl-Brown Try these two steps (Cmd +Shift + P -> SCM -> xxx)

Interesting! But it doesn't really make much sense... any chance you can get it back to the buggy state?

I've had the same problem since updating to 1.11.1. Disabling Preview SCM made everything work again (Thanks @yPangXie) but if I try to enable Preview SCM the issue comes back. Hope this info helps

Nope, that didn't do it.

But I noticed "Switch SCM Provider" and when I selected that, I got "there are no entries to pick from"

That seems like a good reason for things to be misbehaving!

I had the same issue. @yPangXie's commands made the trick.

@joaomoreno The bug will be back after "Enable Preview SCM", the same as @TravisJN

I met the same issue, and it also work after setting "Enable Preview SCM".

@yPangXie Oh, so it didn't work for you?

@keller35 But it did for you?

You guys are really confusing me.

I am satisfied after disabling preview SCM. The preview SCM consumes a lot of CPU.
@joaomoreno If you are developing vscode on Windows, you can use procexp.exe (https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx) from Mark Russinovich to observe the behavior, vscode are creating a lot of git processes.

default

@joaomoreno It works for me after disabled preview SCM. And the bug will be back if I re-enabled preview SCM.

When using Git with VSCode, you should make sure that you've installed Git so that it is available from Windows Command Prompt. Try reinstalling Git and checking the following option:
screenshot

the same issue, but it only work when 'Disable Preview SCM',
it sick 馃樂 after i switch to 'Enable Preview SCM',

mac 10.12.4 (16E195)

Going to chime in and say that Git integration stopped working for me on Ubuntu 16.04 after the 1.11 update and that running Disable Preview SCM has returned Git integration to a working state for me as well.

Before running Disable Preview SCM, VS Code would not seem to recognize that a folder that contained a Git repo actually contained a Git repo, but for some odd reason would occasionally decide that there was indeed a repo after some random amount of time.

Guys, can you try out the latest insider release? Does it work for you?

@NathanJPhillips Let's keep your discussion in #24516

@yPangXie @keller35 @Earl-Brown @spademan Can you try out the latest insider release? Does it work for you?

only work after setting "Disable Preview SCM".

VSCode version: 1.11.2 (1.11.2)
Os Info: OS X EI Capitan 10.11.6 (15G1217)

@iyutao Can you please try out the latest insider release?

@joaomoreno 'insider' has the same problem

@iyutao Can you show me in a screenshot what exactly is wrong?

tt

Awesome. I just fixed that this morning. Does this build fix it for you?

Wait a moment.
'this build' need a long time to download..

@joaomoreno download failed ...

This version work well. Thanks ~

Closing as there have been many fixes in master related to this.

@yPangXie @keller35 @Earl-Brown @spademan Let me know if the latest insider doesn't fix the issue for you.

It works well for me. U r awesome! @joaomoreno

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shanalikhan picture shanalikhan  路  3Comments

mrkiley picture mrkiley  路  3Comments

trstringer picture trstringer  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

vsccarl picture vsccarl  路  3Comments