-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
brew doctor reports new errors after using cask, uninstall/recovery unclear #47
Comments
Hey bud, sorry that this is giving you trouble. Just wanted to let you know I'm looking at this now - I'll follow up when I've got more for ya. |
Okay can't immediately reproduce here.
I'm still working on permutations here. |
Note that the "expected" (yet to be resolved) output of
|
Looking like no repro here just yet. Here's some help to what those error messages are pointing to though:
There's a stray
The contents and location of that file should point to the problem.
I'm wondering if the cask source files somehow made it directly in your Formula directory?
Don't worry - we'll get this sorted out for you. |
This is a problem even without uninstalling, as it seems something somewhere creates symlinks for all
Unfortunately, that won't work with OS X's |
ick - lemme track that down. |
Yay, repro! Homebrew/legacy-homebrew@e613cbe @passcod @mobilemind can you tell me if your homebrew installation comes from a sha before or after that commit? if i check out that commit's parent, i get the old liberal Tap linking code that makes symlinks all over the place. 👎 code newer than that commit works just peachy. 🍑 |
also here's a cleanup one-liner that doesn't rely on brew's ls -l /usr/local/Library/Formula | grep phinze-cask | awk '{print $9}' | for evil_symlink in $(cat -); do rm -v /usr/local/Library/Formula/$evil_symlink; done |
I believe mine was an earlier commit, based on commit time stamp & my recollection. I did a complete uninstall of brew and all bottles, kegs, taps, app casks & formulae. I'm willing to test a future release of cask. |
+1 for aliasing brew cask uninstall |
this delegates to homebrew's uninstall to get its work done. vanilla `brew uninstall` actually works, but this gives us a more consistent interface. as discussed in #47
homebrew does internal caching in ARGV that prevents us from doing the `ARGV.clear; ARGV << 'newarg'` trick twice. rather than try to further reach in to homebrew's innards, i figure it's better to just pass multiple arguments down to homebrew code at once, since it already supports that refs #47
Okay I just cut 'v0.4.0' which includes a I think that takes care of everything on this thread. I'm gonna close this issue - feel free to reopen if I missed something. |
This is appearing again, reopening. |
I had this error, and I un-tapped and uninstalled cask, which did not clear up the error in brew docotor. A quick brew cleanup fixed the brew doctor errors. I have not re-installed cask yet. |
I had a couple of these hanging out in brew doctor. Running the above command cleaned them out, then I untapped and retapped to see if the links came back, and everything is back to normal. Last time this happened it was homebrew's over-zealous formula linking. I took a look at the git log on tap and pathname, and I didn't see anything new that would be problematic. Is it possible that we just have more people installing homebrew-cask with super-old versions of homebrew on their machines? Or is there some other cause? People experiencing this, any more details you can provide would be helpful. 🚁 |
As far as I can tell, this happens only when (and every time) a new cask is added. After you run the command that removes the links, it stops acting on those until a new cask is contributed, at which point it’ll start showing the error on that one. |
Ooooh @vitorgalvao that helps. That would mean the problem is in the |
Seconding @vitorgalvao's observation. I cleaned everything out about a week ago and started over and although it was fine at first, it's started showing up again. Hopefully the cause has been pinpointed. |
@darinmorrison yeah I'm pretty sure I've got the problem isolated; we'll see if the homebrew folks concur over at Homebrew/legacy-homebrew#19743 basically the since the problem stems from homebrew code - i'd like to avoid trying to work around it in our codebase. but we'll have to see if i can get any traction on that issue. 🚜 |
I had this issue and ran the above command to solve it. I am getting another error when running
Is this related or a separate issue? Thanks! |
It seems unlikely the iTerm2 crashes would be related — homebrew-cask can install it, but after that it’s left to its own devices. Have you updated recently ( |
You are right - iTerm crashing was unrelated. I had some zsh config messed up. Sorry for the unnecessary post. |
It’s not unnecessary if you’re still having the problem — the iTerm issue might’ve been unrelated, but the |
Thanks for the follow up @vitorgalvao I had run the update command before posting and it didn't help. While I was trying to fix the zsh issue I ended up uninstalling and reinstalling brew-cask and that solved my issue. |
Working on a PR for papa homebrew for this tonight. |
okay Homebrew/legacy-homebrew#21087 is up; now it's all up to the gods of homebrew. 🙏 😀 |
Alright folks - lets cross our fingers and close this issue. Then hopefully it'll never happen again! 🎲 |
hooray! |
I had the same problem. A warning while brew doctor. Working on the latest Version of OSC 10.9 XCode and homebrew. But the ls command mentioned at the beginning fixed it for me. If you need further dates to help you find a solution let me know what you need |
Move IntelliJ Ultimate 12 to caskroom
Please help.
How do I recover my brew configuration from problems relating to use of cask?
All I want is cask out of my system and brew back to normal.
Perhaps "brew cask UNinstall" commands, etc are needed.
For me, it seems like no combination of install/uninstall, tap/untap can recover brew & make the doctor happy.
Here's the issue I want to fix
Here's the short version of how I got there...
Now it seems like no combination of install/uninstall, tap/untap can recover brew
how I got there:
INSTALL CASK
INSTALL APPS
DELETE APPS
rm -R /usr/local/Cellar/google-chrome /usr/local/Cellar/thunderbird /usr/local/Cellar/transmit
UNINSTALL BREW-CASK
The text was updated successfully, but these errors were encountered: