bug: uninstall failed when `pwsh.exe` installed by scoop

Open
#147 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
powershell
Domain
cli

Research direction

Read README.md and review the referenced PR #74 to understand the existing fundamental fix and the Scoop shim behavior. A minimal resolution should clearly tell users to use Microsoft's pwsh.exe rather than a Scoop-installed pwsh.exe; confirm the wording addresses the reported uninstall failure.

Written by the indexing model from the issue text.

Description

Details:
#143
The root cause is:

  • The shim executable generated by Scoop is not the actual pwsh.
  • It must first parse the target program, determine whether it's GUI or console, and then forward the arguments.
  • In certain environments, the parsing fails and outputs:
    Shim: Could not determine if target is a GUI app. Assuming console.
  • It returns a non-zero exit code, which the Coreutils uninstaller treats as a fatal error.

Simplest fix it is add a tip in README.md ,let users use microsoft's pwsh.exe rather than other pwsh.exe(e.g. scoop)

To fix this fundamentally, you might want to consider my PR #74.

Dominant language
Rust
Stars
5.2k
Forks
107
Avg merge
2d 19h
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/coreutils

All issues in microsoft/coreutils

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.