-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Git not working after upgrade #37981
Comments
I have exactly the same problem. Before the upgrade to 1.18 git integration was seamless. Now I get the message "There are no active source control providers" |
Users reported this with the ms-cpptools extension too, and that reinstalling the extension fixed it, so reinstalling the csharp extension may fix this too, although the root cause is some VS Code bug. |
@emilekberg @marisvs Can you shutdown Code and run it with |
@joaomoreno the original ticket state, I tried it with this parameter since the ticket template asked me to. |
Can you show me a screenshot? What folder are you opening? Is it the root of the repository? |
Can you run |
~\Documents\Coding\Cognitive Chess\Reasoning [master +9 ~1 -0 !]> git show
commit e7d566e5b489d1ea09a97e38b52e62c6447e1065
Date: Mon Nov 6 19:27:24 2017 +0100
Added Fool's and Scholar's mate
diff --git a/checkmate examples.txt b/checkmate examples.txt
index e7579cf..f3bdb19 100644
--- a/checkmate examples.txt
+++ b/checkmate examples.txt
@@ -59227,3 +59227,5 @@ r3k2r/pp3pbp/2p3p1/3pp3/8/1QP1RP1b/PP1P1PqP/RNB4K w
2Q1k2r/5ppp/p4n2/3Np3/2p2p2/8/PqP3PP/3R1K2 b
4Rk2/5Bb1/6Q1/1Pp4p/2r5/7P/5PK1/8 b
1R6/4Q2p/4pk1q/b4ppP/3PP1P1/B4P2/4K3/7R b
+r1bqkbnr/p1pp1Qpp/1pn5/4p3/2B1P3/8/PPPP1PPP/RNB1K1NR b
+rnb1kbnr/pppp1ppp/8/4p3/6Pq/5P2/PPPPP2P/RNBQKBNR w
\ No newline at end of file
diff --git a/checkmate_patterns.json b/checkmate_patterns.json
index 50e2260..cae0f8c 100644
--- a/checkmate_patterns.json
+++ b/checkmate_patterns.json
@@ -28,6 +28,14 @@
"example": "7k/7R/5N2/8/8/8/8/7K b"
},
{
+ "name": "Fool's mate",
+ "near": "----K---x",
+ "square": "d1",
+ "checker": "q",
+ "example": "rnb1kbnr/pppp1ppp/8/4p3/6Pq/5P2/PPPPP2P/RNBQKBNR
w",
+ "comment": "must be checked before Back-rank mate"
+ },
+ {
"name": "Back-rank mate",
"square": ".1",
"near": "---[-x]K[-x]--[-x]|---[-x]K[-x][-x]--",
@@ -89,6 +97,15 @@
"example": "8/8/8/8/6p1/5qk1/7Q/6K1 b"
},
{
+ "name": "Scholar's mate",
+ "square": "d1",
+ "near": "----K-cqx-",
+ "checker": "q",
+ "protect": "b",
+ "example":
"r1bqkbnr/p1pp1Qpp/1pn5/4p3/2B1P3/8/PPPP1PPP/RNB1K1NR b",
+ "comment": "must be checked before Damiano's bishop mate"
+ },
+ {
"name": "Damiano's bishop mate",
"square": ".1",
"near":
"[-x]{4}K[-x]cq[-x]{2}|[-x]{4}K[-x]{2}cq[-x]|[-x]{4}K[-x]{3}cq",
~\Documents\Coding\Cognitive Chess\Reasoning [master +9 ~1 -0 !]> git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: checkmate.py
Untracked files:
(use "git add <file>..." to include in what will be committed)
Reasoning examples.docx
Rules.xlsx
checkmate_patterns - 0.9.json
checkmate_patterns - Copy.json
checkmate_patterns_old.json
known_mate_patterns.txt
mates_output.xlsx
output.csv
output2.csv
no changes added to commit (use "git add" and/or "git commit -a")
~\Documents\Coding\Cognitieve Chess\Reasoning [master +9 ~1 -0 !]>
So after my last commit I have 1 modified file, but that is not reflected
by Code.
2017-11-10 15:04 GMT+01:00 João Moreno <[email protected]>:
… Can you run Git: Show Git Output? What's in there?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37981 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVfDsCUVkNdgxk2H4VRH0sv8fqC1lLhdks5s1FfigaJpZM4QYfv7>
.
|
No, in VS Code, open the Command Palette (Ctrl Shift P) and run the |
Then I get the following output:
[image: Inline afbeelding 1]
2017-11-10 15:20 GMT+01:00 João Moreno <[email protected]>:
… No, in VS Code, open the Command Palette (Ctrl Shift P) and run the Git:
Show Git Output command. It will show you a log view for the git
integration. What's in there?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37981 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVfDsKvIDtOfTaAz-itn8e-wxkPa_jg9ks5s1FucgaJpZM4QYfv7>
.
|
Please attach the image on GitHub. It doesn't work if you send it via email. |
Can you reproduce with the standalone ZIP? https://go.microsoft.com/fwlink/?Linkid=850641 |
After downloading, I extracted the files to a temp directory and executed code.exe. |
yes i get the same behaviour as @marisvs is describing, even with downloaded version. I use my git cli through ubuntu bash terminal. |
Same problem here, I have just installed the 64 bit version (1.18, also I am on windows 10) where I previously had the 32 bit one which I uninstalled as instructed prior to installing the 64 bit version. I then see the I also get the This has never been an issue previously, I have just tried installing and using the 32 bit version again, but still the error remains |
@parky128 @j-cong @marisvs do neither of you have git installed on your machine seperately also? Or is that just me? Edit: |
@emilekberg I don't have separately installed Git, only the one that comes with "GitHub for Desktop", which is Portable Git as I know. But VS Code's "source control/git" has worked under the same conditions before 1.18.0 release. |
@j-cong exactly same scenario as me... There must be some issue with built in github in this version then... :) Let's see when the crew gets back at it. |
Code doesn't work with git which comes with Github for Windows, unfortunately. Can you install Git from https://git-scm.com/ and see whether that solves the problem? If that doesn't, can you set |
@joaomoreno your suggested task should solve the problem, as it worked with the external one, however, my setup has worked in EVERY version of vscode except for the latest one, so something must have changed? Edit: Installed a previous version again, and using Git: Show Git Output it actually was using the github one:
however, the new version does not seem to identify this one (automatically at least) |
Same for me. It has always worked without any configuration of either
vscode or git at my side. After upgrade to 1.18 it stopped working.
2017-11-13 19:18 GMT+01:00 Emil Ekberg <[email protected]>:
… @joaomoreno <https://github.com/joaomoreno> your suggested task should
solve the problem, as it worked with the external one, however, my setup
has worked in EVERY version of vscode except for the latest one, so
something must have changed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37981 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVfDsACOwd-3wGbiID7Lp-zJxKvP2CHLks5s2IgGgaJpZM4QYfv7>
.
|
@emilekberg @marisvs I assume both you guys are in Insiders? This is what changed: we no longer try to execute One thing we can do for you guys is to try to find git in |
@joaomoreno My git executable wasnt in the system PATH (to be precise it was, but the old one). The problem is, before v. 1.18 VSCode somehow knew how to reach git (in Resolved the issue by putting current git path to the system PATH variable. 1.18.0 x64 Stable, Windows_NT x64 10.0.16299 |
Just a note for some that may also have this problem - My
Adding that to |
So i guess a better error message would be needed? since "There are no active source control providers" does not really describe that you might need to install git. Also another question i have, i'm trying to keep my windows as clean as possible and put most of my dev applications in Bash. Most works fine, but this seems like a hickup. I guess i'd need to use a window installation as of now? |
Please use I will push it further an bring a message in front of the user if we can't find git and detect this is a git repo: #38393 And one more step to try to detect GH4W's git.exe: #38394 @vbarinov I don't understand how you have this issue, since this change isn't in yet for stable... only for insiders... Are you sure nothing else changed in your system? This really should only happen for Insiders... |
I am not an insider
2017-11-15 9:38 GMT+01:00 João Moreno <[email protected]>:
… Closed #37981 <#37981>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37981 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AVfDsEHPBobVZxmndmY1xbV2qwlm-XkZks5s2qLygaJpZM4QYfv7>
.
|
@marisvs If you open a Windows Command Prompt, does |
no it is not in my path and it never was but, prior to version 1.18, vscode
was still able to launch git commands
2017-11-15 10:06 GMT+01:00 João Moreno <[email protected]>:
… @marisvs <https://github.com/marisvs> If you open a Windows Command
Prompt, does git --version return a proper version? Is git.exe in your
PATH?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37981 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVfDsCiji8DYOtK69-51d2ySyrrjTBktks5s2qmagaJpZM4QYfv7>
.
|
still doesn't work on OSX High Sierra works only when I run Code via |
I'm seeing this after upgrading to v1.19.
Still not working when trying to use either of these
Output of Git Output pane on startup:
Output of
|
Steps to Reproduce:
Reproduces without extensions: Yes
I tried the workspaces, the first thing i did. not sure if this has something to do with it? Anyhow VS Code does not recognize git as a source control system anymore. At first i thought it was because i was using workspaces with two git repos in them, but it seems not to be caused by that. Any repo does not work.
The text was updated successfully, but these errors were encountered: