Closed netjune closed 8 years ago
And the git panel just shows a progress bar looping forever.
Which folder do you have open in VS Code?
The only folder opened in VS Code was D:\stm8\iar1 with about 10 files in it.
git commands is in c:\msys64\usr\bin.
I added c:\msys64\usr\bin to system PATH.
Can you show me a screenshot of the error?
No git process in task manager then.
Do you have any extensions installed?
I have only installed the following two extensions: (1) c/c++ (0.8.1) (2) Toggle Header/Source (0.1.2)
And do you get the same error when running code --disable-extensions
?
Yes. The same error even after I uninstall the two extensions.
@bpasero There seems to be some confusion in which the user's workspace (D:\stm8\iar1
) seems to be parsed in some way to make FS calls into C:\d
... any idea?
@netjune would you be able to run vs code out of its sources so that we can do some instrumentation in the places where we call lstat?
@joaomoreno I do not understand where we call lstat in the renderer that could produce such a message, a quick search I could not find such.
Yes that beats me too. But errors from the ext host and shared proc both get propagated back, so it could come from anywhere.
@netjune can you also open the developer console (from help menu) to see if something gets logged?
@netjune would you be able to run vs code out of its sources so that we can do some instrumentation in the places where we call lstat? I don't have enough time to try this now.
@netjune can you also open the developer console (from help menu) to see if something gets logged?
@joaomoreno funky, looks like gitApp.js
???
@netjune What git version do you have installed?
git version: 2.8.2
Can you try opening another folder? Maybe one inside C:
? Do you get the same error?
Can you try opening another folder? Maybe one inside C:? Do you get the same error?
ENOENT: no such file or directory, lstat 'C:\c'
Which folder did you try to open?
C:\ti\0730
Can you open some folder in your User home? For example C:\Users\joao\Desktop
?
Can you open some folder in your User home? For example C:\Users\joao\Desktop?
ENOENT: no such file or directory, lstat 'C:\d'
Does it reproduce with the latest Insiders release?
Does it reproduce with the latest Insiders release?
No. Same error as 1.4.0.
Do you have another machine you can try VS Code on?
Also, if you go to the command line and run git status
from your folder, does it work?
I have a feeling your machine has a very strange setup somehow.
Yes, I use git in command line everyday. And git works well in visual studio 2015. Both on the same computer.
Maybe it is because I installed vscode of a new version upon a very old version. But I have removed and reinstalled it then, and it didn't help.
How to remove vscode cleanly?
Run the uninstaller, then also check for Visual Studio Code folders in %APPDATA%
. And in your home directory, check for .vscode-*
folders.
Also are you willing to do a live screen sharing chat where we can debug this together?
Run the uninstaller, then also check for Visual Studio Code folders in %APPDATA%. And in your home directory, check for .vscode-* folders.
I just found "Code - Insiders" in %APPDATA% and delete it. No .vscode-* in my home directory. Then I reinstalled vscode and the error is the same.
Also are you willing to do a live screen sharing chat where we can debug this together?
Yes. Then what should I do?
Let me know your availability and I'll see when I can fit. We'll set up a time and I'll send you a conference call link.
Too busy the last saveral days. Sorry for the delayed reply. I am available the the next 1~2 hours today. What about you?
I saw you joined but left right after.
Network problem. Google is hardly accessed in China.
Maybe I can make a screencast, and upload it to some place like www.youku.com. Is it usefull?
Please, yes.
Finally upload the screencast here: https://drive.google.com/file/d/0B3c99U0nm3QXUjJJaEU4TkJLbWM/view?usp=sharing
A picture of gif format.
I can create a git repo and use git function for the first time in vscode. After reopenning the git repo folder, git function is not usable in vscode.
screencast: https://drive.google.com/file/d/0B3c99U0nm3QXcUtXUmZzWlV2Qjg/view?usp=sharing
Maybe vscode lost something of the project(folder) between saving and loading it?
Can you search your whole machine for all git.exe
files? Maybe you have more than one git installed. What are the ones you find?
I searched my whole machine and found 2. C:\msys64\usr\bin\git.exe C:\msys64\usr\lib\git-core\git.exe
I compared the two files. They have the same content.
In the vscode, a new git repo can always be created, and all git functions work well just BEFORE reopenning the same git repo folder.
When git function is not usable, I can close the current folder and create another git repo in the same vscode instance.
So git.exe can be found and properly used by vscode.
Hm... Can you try using the official git release and see whether it reproduces there? We don't support msys git.
@tapir Can you try with the official git instead of msys, which we don't support?
@joaomoreno I'll do you one better.
I've tried with the official git.exe by appointing the git.path to C:\\Program Files\\Git\\bin\\git.exe
and it worked. Then I copied the mingw git.exe over to C:\\Program Files\\Git\\bin\\git.exe
, restarted VSCode and it still worked!
So the problem is somehow with the path itself. Not the exe. For some reason it just doesn't like C:\\msys64\\usr\\bin\\git.exe
Might be much more than that since git uses many other tools that live in that path.
Closing as we don't support msys git.
I don't know what you mean. This is a VScode bug. Not MSYS2. What if I were to install official Git in C:\msys64 ? Because that's what I just did and it doesn't work.
I also copied mingw git.exe to any other path and again it worked. So it's not the git it self. It only happens when it's in msys64. And if some other thing in that path make it not work that's VSCode's bug because VSCode should only use git.exe and nothing else.
Steps to Reproduce: