marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
10.62k stars 348 forks source link

[BUG] 3.1.0 Beta 1 - PowerShell - Write-Output : The term 'Write-Output' is not recognized as the name of a cmdlet, function, script file #2379

Closed RonnyTNL closed 2 weeks ago

RonnyTNL commented 3 weeks ago

Please confirm these before moving forward

UniGetUI Version

3.1.0 b1

Windows version, edition and architecture

Win10 x64

Describe your issue

Package manager log shows error on PowerShell command.

Steps to reproduce the issue

Run 3.1.0 beta1 as standard/limited user

UniGetUI Log

N/A

Package Managers Logs

Logged subprocess-based task on manager Winget. Task type is ListPackages
Subprocess executable: "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe"
Command-line arguments: "-ExecutionPolicy Bypass -NoLogo -NoProfile"
Process start time: 01/07/2024 16:49:00
Process end time:   01/07/2024 16:49:14

-- Process STDIN
 ...

-- Process STDOUT
 ...

-- Process STDERR
  Write-Output : The term 'Write-Output' is not recognized as the name of a cmdlet, function, script file, or 
  operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try 
  again.
  At line:1 char:1
  + Write-Output (Get-Module -Name Microsoft.WinGet.Client).Version
  + ~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Write-Output:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Return code: SUCCESS (0)

Relevant information

This error occurs 2 times in the log on the PowerShell commands. Task type is ListPackages Task type is ListUpdates

Screenshots and videos

No response

marticliment commented 3 weeks ago

This is due to some weird characters appearing on the parsed console. Don't worry about them, in fact, the Write-Output [...] line is present there so that it captures the ZWNBSP character and does not hinder the actual real commands, executed afterwards.

What I mean: image

I don't know yet what causes this character to appear, since in my machine this does not happen, but don't worry about it.

RonnyTNL commented 3 weeks ago

Ok thanks, I'll give it a spin in a VM tomorrow see if I can reproduce this behavior.

RonnyTNL commented 2 weeks ago

Reproduces on a VM also, perhaps regional settings or something?

marticliment commented 2 weeks ago

What are your regional settings?

RonnyTNL commented 2 weeks ago

image