Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are no active source control providers. #58476

Closed
naiveLee opened this issue Sep 12, 2018 · 25 comments
Closed

There are no active source control providers. #58476

naiveLee opened this issue Sep 12, 2018 · 25 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@naiveLee
Copy link

Issue Type: Bug

Install latest vscode and git, open a git project, Show:

There are no active source control providers.

VS Code version: Code 1.27.1 (5944e81, 2018-09-06T09:14:32.385Z)
OS version: Darwin x64 17.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (1.67GB free)
Process Argv /Applications/Visual Studio Code.app/Contents/MacOS/Electron
Screen Reader no
VM 0%
Extensions (2)
Extension Author (truncated) Version
EditorConfig Edi 0.12.4
vscode-language-pack-zh-hans MS- 1.27.2
@naiveLee
Copy link
Author

image

@naiveLee
Copy link
Author

naiveLee commented Sep 12, 2018

image
image

it seems git not running

@naiveLee
Copy link
Author

image

@joaomoreno
Copy link
Member

Can you reproduce with code --disable-extensions?

@joaomoreno joaomoreno self-assigned this Sep 12, 2018
@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Sep 12, 2018
@naiveLee
Copy link
Author

naiveLee commented Sep 12, 2018

image

It still doesn't work.

@joaomoreno

@joaomoreno
Copy link
Member

What does F1, Git: Show Git Output return?

@naiveLee
Copy link
Author

image
There is no command about git @joaomoreno

@joaomoreno
Copy link
Member

Can you retry with code --disable-extensions, but make sure Code is shutdown before you try?

Do you see any errors in F1, Developer Tools?

@naiveLee
Copy link
Author

image

No errors @joaomoreno

@joaomoreno
Copy link
Member

Does this maybe work if you set --locale=en?

@naiveLee
Copy link
Author

image
Do not work. @joaomoreno

@joaomoreno
Copy link
Member

joaomoreno commented Sep 14, 2018

I'm running out of ideas. @sandy081 @alexandrudima Any ideas on why would the Git extension not be activated at all?

@alexdima
Copy link
Member

Yes, if it is disabled.

Extensions > burger menu > Show built-in

image

Ensure git is enabled
image

@naiveLee
Copy link
Author

image
git is enabled,but source control not work. @alexandrudima

@alexdima
Copy link
Member

@naiveLee Can you please check the extension host logs? (Perhaps there was an error while trying to activate git).

F1 > Developer Show Logs... > Extension Host. Do you see in there a line with ExtensionService#_doActivateExtension vscode.git ?

@naiveLee
Copy link
Author

[2018-09-18 14:16:20.810] [exthost1] [info] 
ExtensionService#_doActivateExtension 
vscode.git {"startup":true,"activationEvent":"*"}
[2018-09-18 14:16:20.810] [exthost1] [info] 
ExtensionService#loadCommonJSModule 
/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main

@alexandrudima Yeah, There have some log info about git.

@alexdima
Copy link
Member

alexdima commented Sep 18, 2018

@naiveLee Great! This shows that we are attempting to activate the git extension. Are there perhaps errors shown in the developer tools? Help > Toggle Developer Tools ?

@naiveLee
Copy link
Author

image
There is no errors. @alexandrudima

@alexdima
Copy link
Member

@joaomoreno Is it possible for the activate call of the git extension to never complete? i.e. not throwing any error, but also not registering a SCM provider?

@joaomoreno
Copy link
Member

Not sure... I would say that it would not be possible.

Also note what the users says:

There is no command about git

This is odd since the Git: Show Git Output command should always show up. This is its declaration in package.json:

{
          "command": "git.showOutput",
          "when": "config.git.enabled"
}

@naiveLee Are you sure you did not disable git in the settings?

@naiveLee
Copy link
Author

Oh, i'm so sorry, that's my fault i had error config on setting.json

@joaomoreno
Copy link
Member

😭

@isidorn
Copy link
Contributor

isidorn commented Sep 21, 2018

His nickname is naive after all

@Kobold
Copy link

Kobold commented Sep 26, 2018

I ran into a similar issue, where my git plugin was disabled for some reason. @alexandrudima thanks for the help!

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants