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

SOURCE CONTROL: No source control providers registered #61522

Closed
tornPiece opened this issue Oct 22, 2018 · 8 comments
Closed

SOURCE CONTROL: No source control providers registered #61522

tornPiece opened this issue Oct 22, 2018 · 8 comments
Assignees

Comments

@tornPiece
Copy link

@tornPiece tornPiece commented Oct 22, 2018

Hello,

i struggle to get ms code (1.28.2) working with git (2.19.1.windows.1) on windows 10 Pro (1803). As of now i only get 'SOURCE CONTROL: No source control providers registered' in the source control view.
There are many threads about other users having the same problem, but the solutions mentioned there didn't help in my case.

First try:

Second try:

  • I added the git.exe path manually to the ms code user settings
{
    "git.path": "C:\\Git\\cmd\\git.exe",
    "git.enabled": true
}
  • Closed ms code, restarted the system
  • Started ms code again and still 'SOURCE CONTROL: No source control providers registered'

I also checked process.env.Path in the dev tools of ms code
Result: ...pData\Roaming\Composer\vendor\bin;C:\Git\cmd;C:\Users\Lorem Ipsum\AppData\Local\Programs\Microsoft VS Code\bin"

I have no more ideas.

Please help.

clipboard01

clipboard02

@vscodebot

This comment has been minimized.

Copy link

@vscodebot vscodebot bot commented Oct 22, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@joaomoreno

This comment has been minimized.

Copy link
Member

@joaomoreno joaomoreno commented Oct 22, 2018

Can you show me the output from Git: Show Git Output?

@tornPiece

This comment has been minimized.

Copy link
Author

@tornPiece tornPiece commented Oct 22, 2018

I have read the suggested Ticket and checked the status of the build in git extension. It's not disabled.
Also I checked the extension logs that does not mention the git extension at all.
clipboard01

@tornPiece

This comment has been minimized.

Copy link
Author

@tornPiece tornPiece commented Oct 22, 2018

Here the Git: Show Git Output Info
Mhh. It's a git error... I'm new to git. And using it currently with the SourceTree UI (2.6.10) where i also successfully used my credentials to access my online repo.
clipboard04

@joaomoreno

This comment has been minimized.

Copy link
Member

@joaomoreno joaomoreno commented Oct 23, 2018

Have you tried opening a folder which is a git repository?

@tornPiece

This comment has been minimized.

Copy link
Author

@tornPiece tornPiece commented Oct 23, 2018

Ok, i opened a folder in the explorer view that was already under git control and magically ;) the source control view came to live. Conclusion: Git war setup correctly all along, i just couldn't verify it.

Suggestion: Please add a hint in the ui that content in the source control view is only available if your already open a folder that is under source control.
Follow up questions: But then how do i add a folder (like a new project) to source control out of vs code? And is it possible to push my commits directly to my online repository out of vscode?

Explanation: So the source of my confusion setting up vscode with git was, that i tried to set everything up, then test it and then starting my coding (in opening a folder).
But this is not the workflow you assume the new user would take...

My problem is solved. Thank you.

@tornPiece tornPiece closed this Oct 23, 2018
@joaomoreno

This comment has been minimized.

Copy link
Member

@joaomoreno joaomoreno commented Oct 23, 2018

Funny you just hit this. Another user just did, we should probably improve the experience here. You can follow this issue: #61491

@rdavid4

This comment has been minimized.

Copy link

@rdavid4 rdavid4 commented Nov 26, 2018

SOLVE------------------------------------
The only thing you have to do to solve the problem is open de appdata folder:

  1. win+r write
  2. %appdata% ENTER
  3. delete code folder.
  4. Start VS code again, it is restarted.
    Now you can see the git icon available.
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.