Skip to content
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

[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
4 tasks done
RonnyTNL opened this issue Jul 1, 2024 · 5 comments
Assignees
Labels
bug Something isn't working hard-one lol ready-to-go
Milestone

Comments

@RonnyTNL
Copy link

RonnyTNL commented Jul 1, 2024

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

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

@RonnyTNL RonnyTNL added the bug Something isn't working label Jul 1, 2024
@marticliment
Copy link
Owner

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.

@marticliment marticliment added this to the Bugs milestone Jul 1, 2024
@RonnyTNL
Copy link
Author

RonnyTNL commented Jul 1, 2024

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

@RonnyTNL
Copy link
Author

RonnyTNL commented Jul 2, 2024

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

@marticliment
Copy link
Owner

What are your regional settings?

@RonnyTNL
Copy link
Author

RonnyTNL commented Jul 2, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hard-one lol ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants