Exception setting "CursorPosition": "The handle is invalid."
https://ci.appveyor.com/project/mremoteng/puttyng-publish
hello, I am trying to understand what I need to add/change to avoid such error:
pwsh.exe -File C:\projects\puttyng-publish\PuTTYNG.ps1 -ExecutionPolicy Bypass
pwsh.exe : SetValueInvocationException:
At line:1 char:1
+ pwsh.exe -File C:\projects\puttyng-publish\PuTTYNG.ps1 -ExecutionPoli ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (SetValueInvocationException: :String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Line |
3 | $RawUI.CursorPosition = @{X=0;Y=0}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception setting "CursorPosition": "The handle is invalid."
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Owen McDonnell on 17 Jul, 2024 06:03 PM
I believe this has to do with your ps1 script calling
Clear-Host
command on AppVeyors custom powershell host. Remove that call, since it doesn't make sense in this context anyways, and see if the build works then.Feodor Fitsner closed this discussion on 16 Sep, 2024 09:03 PM.