brew uninstall doesn't show why FreeSnitch couldn't remove its network extension

Open
#396 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
73/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
macos, swift
Domain
desktop, security

Research direction

Start by reading the cask uninstall command that invokes open -n -W FreeSnitch.app --args --remove-network-extension, then trace the app’s --remove-network-extension handling to see where macOS reports the failure. Add a way for the cask to print that reason in one short line, keeping script text out of the output. Done when a failed removal shows the reason in the terminal.

Written by the indexing model from the issue text.

Description

bug priority:low status:queued

When brew uninstall --cask freesnitch asks FreeSnitch to remove its network extension, the cask starts it with open -n -W FreeSnitch.app --args --remove-network-extension. open -W waits for the app but drops its exit status and its standard error. So when the removal fails, Homebrew shows the cask's own line ("FreeSnitch's network filter is still on ...") but not macOS's reason that FreeSnitch knows.

Done means: when the removal fails, the reason reaches the terminal. For example the app writes it to a file the cask passes in, and the cask prints it in one short line. The output is still never the script text.

Found while working on #391 (PR #393, isaaclins/homebrew-tap#2).

Dominant language
Swift
Stars
49
Forks
5
Avg merge
16h 48m
Merged PRs (30d)
82

Getting set up

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 isaaclins/freesnitch

All issues in isaaclins/freesnitch

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.