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
Exception during registration: The Process object must have the UseShellExecute property set to false in order to redirect IO streams #505
Comments
Hmm.. this looks like a problem with the What terminal application are you using out of interest? Also what OS (and version) are you using? Thanks |
Update the System.CommandLine package to 2.0.0-beta1.21216.1 to hopefully fix some problems with dotnet-suggest registration caused by Process::UseShellExecute differences between .NET Framework and .NET (Core). jonsequitur/command-line-api@ad22b69 dotnet/command-line-api#1254 git-ecosystem#505
I have been getting this same error when using Windows Terminal + Ubuntu + WSL2 - I was able to successfully pull last night, but am unable to this morning. In an effort to get this working, I have cloned this repo, built and installed the locally build copy and am continuing to get this error:
Trace log
|
Update the System.CommandLine package to 2.0.0-beta1.21216.1 to hopefully fix some problems with dotnet-suggest registration caused by Process::UseShellExecute differences between .NET Framework and .NET (Core). jonsequitur/command-line-api@ad22b69 dotnet/command-line-api#1254 git-ecosystem#505
@nicholass-alcidion please can you tell me more about your setup? I am unable to reproduce this problem. What version of Windows Terminal are you using? What version of Ubuntu? What version of Windows? What extra customisations have you made to your prompt? What shell are you using? Bash, csh, zsh, etc? |
Since the above post I have been forced to reinstall windows and even with importing my existing WSL image I am no longer experiencing the issue. I am on Windows 11, Ubuntu 20.04, Latest Terminal from Windows Store, using Bash and the powerline theme from bash-it. I think this issue may have been caused by installing mono-runtime into my Ubuntu and having its binfmt entry overwriting the regular WSL entry - such that git.exe from the windows side would not execute. Since removing mono-runtime I am also no longer able reproduce. |
Closing as not able to reproduce. |
I get the same problem when running a |
With the latest version (System.CommandLine 2.0.0-beta1.21216.1) I still had
So something about dotnet command line completion goes wrong. This in itself is just a warning, not an error. When invoked from git-pull I inspected the process startup environment with Process Monitor. I don't know who is to blame here. I just removed the export lowercase tmp and temp from /etc/profile. I did not have this problem when disabling oh-my-zsh |
Update the System.CommandLine package to 2.0.0-beta1.21216.1 to hopefully fix some problems with dotnet-suggest registration caused by Process::UseShellExecute differences between .NET Framework and .NET (Core). jonsequitur/command-line-api@ad22b69 dotnet/command-line-api#1254 git-ecosystem#505
Update the System.CommandLine package to 2.0.0-beta1.21216.1 to hopefully fix some problems with dotnet-suggest registration caused by Process::UseShellExecute differences between .NET Framework and .NET (Core). jonsequitur/command-line-api@ad22b69 dotnet/command-line-api#1254 git-ecosystem/git-credential-manager#505
Update the System.CommandLine package to 2.0.0-beta1.21216.1 to hopefully fix some problems with dotnet-suggest registration caused by Process::UseShellExecute differences between .NET Framework and .NET (Core). jonsequitur/command-line-api@ad22b69 dotnet/command-line-api#1254 git-ecosystem#505
Which version of GCM Core are you using?
Which Git host provider are you trying to connect to?
Can you access the remote repository directly in the browser using the remote URL?
From a terminal, run
git remote -v
to see your remote URL.Expected behavior
I am authenticated and my Git operation completes successfully.
Actual behavior
File created path:
=\system-commandline-sentinel-files\dotnet-suggest-registration-git-credential-manager-core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
(the folder name is really just
=
)File content:
Logs
Set the environment variables
GCM_TRACE=1
andGIT_TRACE=1
and re-run your Git command. Review and redact any private information and attach the log.GCM_TRACE=1 GIT_TRACE=1 git pull
- Click to expand!The text was updated successfully, but these errors were encountered: