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

Can't uninstall eclipse #5504

Closed
solomatov opened this issue Jul 25, 2014 · 5 comments
Closed

Can't uninstall eclipse #5504

solomatov opened this issue Jul 25, 2014 · 5 comments

Comments

@solomatov
Copy link

konstantins-pro:~ kostik$ brew cask uninstall eclipse-ide
==> Removing App symlink: '/Users/kostik/Applications/Eclipse.app'
Error: Directory not empty - /opt/homebrew-cask/Caskroom/eclipse-ide/4.4.0/eclipse
Please report this bug:
    https://github.com/caskroom/homebrew-cask/issues
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1427:in `rmdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1427:in `block in remove_dir1'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1438:in `platform_support'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1426:in `remove_dir1'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1419:in `remove'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:770:in `block in remove_entry'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1471:in `block (2 levels) in postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1475:in `postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1470:in `block in postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:768:in `remove_entry'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:626:in `block in rm_r'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:622:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:622:in `rm_r'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:567:in `rmtree'
/usr/local/Cellar/brew-cask/0.37.1/rubylib/cask/installer.rb:134:in `purge_files'
/usr/local/Cellar/brew-cask/0.37.1/rubylib/cask/installer.rb:118:in `uninstall'
/usr/local/Cellar/brew-cask/0.37.1/rubylib/cask/cli/uninstall.rb:9:in `block in run'
/usr/local/Cellar/brew-cask/0.37.1/rubylib/cask/cli/uninstall.rb:5:in `each'
/usr/local/Cellar/brew-cask/0.37.1/rubylib/cask/cli/uninstall.rb:5:in `run'
/usr/local/Cellar/brew-cask/0.37.1/rubylib/cask/cli.rb:80:in `run_command'
/usr/local/Cellar/brew-cask/0.37.1/rubylib/cask/cli.rb:120:in `process'
/usr/local/bin/brew-cask.rb:42:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/brew.rb:59:in `require?'
/usr/local/Library/brew.rb:137:in `<main>'
@rolandwalker
Copy link
Contributor

Hi! Thanks for the report!

I can't exactly reproduce this, but am attempting to address the general issue in #5596. When that code goes into release we may ping you to re-try.

In the meantime, a workaround should be to make all the files in that directory writable by you:

$ chmod -R u+w /opt/homebrew-cask/Caskroom/eclipse-ide/4.4.0/eclipse
$ brew cask uninstall eclipse-ide

rolandwalker added a commit to rolandwalker/homebrew-cask that referenced this issue Jul 31, 2014
This logic is ugly as the installation directory will be left
in a mangled state if it fails partway through.  However, the
same is true when `rmtree` fails partway through, which this
code is intended to minimize.

References: Homebrew#5504
@rolandwalker
Copy link
Contributor

Hi!

#5596 is in release now. You may wish to try

$ brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

and see if your problem persists.

@vitorgalvao vitorgalvao added the awaiting maintainer feedback Issue needs response from a maintainer. label Sep 11, 2014
@vitorgalvao
Copy link
Member

@solomatov Was your issue solved by @rolandwalker’s suggestion?

@caiguo37
Copy link

2015-04-21 9 29 29
Is this the same problem?

@vitorgalvao
Copy link
Member

@caiguo37 #2988.

@adidalal adidalal removed the awaiting maintainer feedback Issue needs response from a maintainer. label Apr 12, 2016
@miccal miccal removed the cask label Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants