-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unhandled Exception on Windows 7 #12
Comments
What terminal/console program are you using? |
I am using
|
Sounds like #9. Does it work in |
That works with |
I have this same issue when running under OSX Mojave, the default terminal. |
To be honest, I haven't tested Unix/macOS yet so I'd understand why that would fail. Not sure why the Windows ones fail though. I'll investigate. |
Ah, just noticed you're on Win7. I'm on Win10. Maybe there is an accidental dependency somewhere that requires Win 10. I'll check. |
Dear @terrajobst,
I have also checked on Mac OSX ( macOS High Sierra Version 10.13.3 ), it does not even understand the I did the following steps:
and I failed with the an error message: git: 'istage' is not a git command. See 'git --help'.
The most similar command is
stage here is the output for .NET Core SDK (reflecting any global.json):
Version: 2.2.100-preview2-009404
Commit: f4707d384d
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.13-x64
Base Path: /usr/local/share/dotnet/sdk/2.2.100-preview2-009404/
Host (useful for support):
Version: 2.2.0-preview2-26905-02
Commit: ad4d306fe0
.NET Core SDKs installed:
2.1.4 [/usr/local/share/dotnet/sdk]
2.1.104 [/usr/local/share/dotnet/sdk]
2.1.300-preview1-008174 [/usr/local/share/dotnet/sdk]
2.1.300-rc1-008673 [/usr/local/share/dotnet/sdk]
2.1.300 [/usr/local/share/dotnet/sdk]
2.1.301 [/usr/local/share/dotnet/sdk]
2.1.402 [/usr/local/share/dotnet/sdk]
2.2.100-preview2-009404 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0-preview1-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.0-rc1-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.0-preview2-35157 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0-preview1-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.0-rc1-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.0-preview2-35157 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.0-preview1-26216-03 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.0-rc1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.0-preview2-26905-02 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
|
@shahabganji Does the command When I then run |
I’ll take a look at the suggested approach and let you guys know about the result.
… On Oct 18, 2018, at 21:30, Thijs Brobbel ***@***.***> wrote:
@shahabganji Does the command $ git-istage even work (so without having git invoking istage)? Since that might be an issue with .NET Global tools. I have the same on ZSH. I have solved that by following @gabrielrb approach.
When I then run istage, from a git repository, I still get this (and mine issue #9).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It still does not work on macOSX 10.13.3, I have added the dotnet tools folder to the PATH: #Folders:
export DOTNET_TOOLS_HOME=$HOME/.dotnet/tools
# Binaries:
export PATH=DOTNET_TOOLS_HOME:$PATH however, when I run git: 'istage' is not a git command. See 'git --help'.
The most similar command is
stage My git versions is Thanks anyway. -------- EDIT --------- To make it work env variables should be like the following, a #Folders:
export DOTNET_TOOLS_HOME=$HOME/.dotnet/tools
# Binaries:
export PATH=$DOTNET_TOOLS_HOME:$PATH |
On my Windows 7 machine, the problem does exist too with the new version; and my git version on windows 7 is
Thanks |
@shahabganji I'll check tomorrow on my Windows box. |
That's bad. I believe that's tracked by #21 now.
What error do you get? I no longer call get_CursorVisible, so that must be something new then. |
I just upgraded from 0.2.2 to 0.2.29, and it's still failing under Git for Windows (using bash as shell), however, the stacktrace is now:
Which makes sense, as usage of |
Unhandled Exception: System.IO.IOException: The handle is invalid
at System.ConsolePal.set_CursorVisible(Boolean value)
at GitIStage.Application.Run() in /home/vsts/work/1/s/src/git-istage/Application.cs:line 86
at GitIStage.Program.Main() in /home/vsts/work/1/s/src/git-istage/Program.cs:line 32
|
Can you also check on VS Code terminal, my VS Code terminal is set to Git Bash, and I don't get any error when running the command there. CC: @terrajobst |
@shahabganji Ah, funny. Works in VS Code indeed. That's really odd... |
I also have that Exception, but when I launch git bash from path I work on Windows 8.1. |
Hello @terrajobst
I have installed the tool via this command
dotnet tool install git-istage -g
and I get the following error when running thegit istage
command, orgit istage .
:I just created a folder and within that, I have created a new git repository by caling
git init
, then added a simpletxt
file and addHello World
text inside that. then I rangit istage .
and I get the above mentioned error.and here is my
dotnet --info
outputThe text was updated successfully, but these errors were encountered: