Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.88k stars 10.7k forks source link

openwebstart doesn't uninstall cleanly #111812

Closed evulhotdog closed 3 years ago

evulhotdog commented 3 years ago

brew config output

HOMEBREW_VERSION: 3.2.13
ORIGIN: https://github.com/Homebrew/brew
HEAD: 109f24fd601177dea4a754b43efe684903db2a83
Last commit: 8 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 0e7f64a1052af2d2896273c5a879116faecd7e3f
Core tap last commit: 84 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 13.0.0 build 1300
Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6-x86_64
CLT: 13.0.0.0.1.1630607135
Xcode: N/A

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  vtk@8.2

What were you trying to do (and why)?

Uninstall a package, because it was not needed.

What happened (include all command output)?

   ~  brew remove openwebstart  255 ✘  1m 24s   04:10:31 PM  ==> Uninstalling Cask openwebstart ==> Changing ownership of paths required by openwebstart; your password may be necessary. ==> Running uninstall script /Applications/OpenWebStart/OpenWebStart Uninstaller.app/Contents/MacOS/JavaApplicationStub Are you sure you want to completely remove OpenWebStart and all of its components? Yes [y, Enter], No [n] In form component "Console handler" (screen "Uninstall Welcome"), property "Console script": com.install4j.api.context.UserCanceledException at com.install4j.runtime.installer.helper.console.SimpleConsoleAccess.readLine(SimpleConsoleAccess.java:69) at com.install4j.runtime.installer.helper.console.ConsoleImpl.readLine(ConsoleImpl.java:509) at com.install4j.runtime.installer.helper.console.ConsoleImpl.askOption(ConsoleImpl.java:275) at com.install4j.runtime.installer.helper.console.ConsoleImpl.askOption(ConsoleImpl.java:259) at com.install4j.runtime.installer.helper.console.ConsoleImpl.askYesNo(ConsoleImpl.java:207) at com.install4j.script.I4jScript_Internal_141.eval(I4jScript_Internal_141.java:2) at com.install4j.script.I4jScript_Internal_141.evaluate(I4jScript_Internal_141.java:*26) at com.install4j.runtime.installer.helper.Script.evaluate(Script.java:33) at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:198) at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:192) at com.install4j.runtime.beans.formcomponents.ConsoleHandlerFormComponent.handleConsole(ConsoleHandlerFormComponent.java:36) at com.install4j.runtime.installer.frontend.FormPanel.handleConsole(FormPanel.java:171) at com.install4j.runtime.beans.formcomponents.FormEnvironmentImpl.handleConsole(FormEnvironmentImpl.java:245) at com.install4j.runtime.beans.screens.SystemFormScreen.handleConsole(SystemFormScreen.java:48) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.handleScreen(ConsoleScreenExecutor.java:53) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.execute(AbstractHeadlessScreenExecutor.java:96) at com.install4j.runtime.installer.controller.Controller$1.run(Controller.java:165) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Uninstalling OpenWebStart 1.4.0 ... OpenWebStart was successfully removed from your computer. Finishing uninstallation ... ==> Purging files for version 1.4.0 of Cask openwebstart    ~  brew remove openwebstart  ✔  11s   04:29:15 PM  Error: Cask 'openwebstart' is not installed.

What did you expect to happen?

Not to see an error dump.

Step-by-step reproduction instructions (by running brew commands)

brew install openwebstart
brew remove openwebstart
miccal commented 3 years ago

The messages come from the uninstall script in the Cask file, and as such we have no control over it -- you would need to report this to the developers.

The uninstall does succeed, though:

Uninstalling OpenWebStart 1.4.0 ...
OpenWebStart was successfully removed from your computer.
Finishing uninstallation ...
==> Purging files for version 1.4.0 of Cask openwebstart