Khắc phục lỗi the handle is invalid c++ năm 2024
Just installed from chocolatey on Windows 10, now when I try to to add a new profile using
Seems like this is an old bug, there was a merge request, but seems like it's still not fixed: 112113The text was updated successfully, but these errors were encountered:
As a sidenote, I was able to add my profile using PowerShell, but then from powershell it's not possible to run
I added the
Funny thing is that
In the output of
0 it says:
When you run
1 you're providing the profile but not the command to run, so
2 is defaulting to trying to run whatever is stored in
3. I'd guess your PowerShell shell doesn't have that env var defined (or it's defined as an empty value) and so it gets an error when trying to invoke an empty string as a command. It works in Git Bash because
3 is defined there.
@irgeek thanks for your reply. So it seems like for it to work in PowerShell we'd need to first declare a $SHELL env var. What about
So it seems like for it to work in PowerShell we'd need to first declare a $SHELL env var. You don't need
3 defined in your environment, you just need to provide a command. Instead of
1 you can just do
8 and the AWS CLI should run. The dropping into a new shell thing is convenient occasionally, but for the most part I don't use it. What about aws-vault add failing in Git Bash? That one seems even more confusing (the handle is invalid). That's a Windows error. I'd guess it has something to do with the way
2 is trying to manipulate the TTY it's attached to, possibly to hide the secret key when it's entered. But as I said, that's a guess-I have no clue how to fix it.
I believe
0 may well get you out of trouble in Git Bash.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |