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

Error Finding Casks directory when running "brew cask doctor" #4096

Closed
booc0mtaco opened this issue Apr 29, 2014 · 8 comments
Closed

Error Finding Casks directory when running "brew cask doctor" #4096

booc0mtaco opened this issue Apr 29, 2014 · 8 comments

Comments

@booc0mtaco
Copy link

Ran the command brew cask doctor after running brew update and brew upgrade, and received the following:

==> Homebrew-cask Default Tap Cask Count:
Error: No such file or directory - /usr/local/Library/Taps/phinze/homebrew-cask/Casks
Please report this bug:
    https://github.com/phinze/homebrew-cask/issues
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:692:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:692:in `foreach'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:692:in `children'
/usr/local/Cellar/brew-cask/0.33.1/rubylib/cask/cli/doctor.rb:28:in `run'
/usr/local/Cellar/brew-cask/0.33.1/rubylib/cask/cli.rb:56:in `run_command'
/usr/local/Cellar/brew-cask/0.33.1/rubylib/cask/cli.rb:71:in `process'
/usr/local/bin/brew-cask.rb:6
/usr/local/Library/brew.rb:65:in `require'
/usr/local/Library/brew.rb:65:in `require?'
/usr/local/Library/brew.rb:111

Now, I report the bug as instructed.

Possibly unrelated, but I ran brew doctor and received:

$ brew doctor
Error: Failed to import: kindle-previewer
undefined method `link' for KindlePreviewer:Class
Your system is ready to brew.
@Jackiebo
Copy link

Jackiebo commented May 1, 2014

I am also having this problem

@Jackiebo
Copy link

Jackiebo commented May 1, 2014

When I ls, I have a directory phinze-cask, instead of phinze

@booc0mtaco
Copy link
Author

@Jackiebo I'm no longer seeing the problem. I have a suspicion that restarting your shell might resolve it (after the upgrade has completed)?

@vitorgalvao
Copy link
Member

@booc0mtaco The kindle-previewer issue has been fixed (it was unrelated to this, yes).

@Jackiebo Homebrew has changed the directory structure of taps. A fix has already been merged. Could you please run brew update && brew upgrade brew-cask, restart your shell (as suggested by @booc0mtaco), and try again?

@rolandwalker
Copy link
Contributor

Also, it may help to run brew update multiple times.

@booc0mtaco
Copy link
Author

I'm OK with closing this one out. It would be nice though if there were some mechanism to remind the user to restart shell when constants change after an upgrade. Or perhaps doctor can suggest a shell restart after certain types of error?

@rolandwalker
Copy link
Contributor

This is mostly out of our hands. Homebrew moved the Tap location, and their implementation is glitchy. It seems somewhat unpredictable when the migration happens for each user.

We can think about a special error message as you suggest.

I don't want to close until we hear from @Jackiebo as well.

@Jackiebo
Copy link

Jackiebo commented May 2, 2014

My company had a custom version of brew that wasn't updating, I switched to
the main version of brew and this is fixed for me now. Thanks

On Fri, May 2, 2014 at 3:13 AM, Roland Walker [email protected]:

This is mostly out of our hands. Homebrew moved the Tap location, and
their implementation is glitchy. It seems somewhat unpredictable when the
migration happens for each user.

We can think about a special error message as you suggest.

I don't want to close until we hear from @Jackiebohttps://github.com/Jackieboas well.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4096#issuecomment-42013237
.

rolandwalker added a commit to rolandwalker/homebrew-cask that referenced this issue May 3, 2014
At every command execution
- invoke `rename_taps_dir_if_necessary` to help with Homebrew's Tap migration.
  (Homebrew's migration seems to sometimes fail to fire, see Homebrew#4096)
- untap `phinze/cask`, and tap `caskroom/cask`, to help with our own move
  to a GitHub organization
After a few months, this can be reverted.
rolandwalker added a commit to rolandwalker/homebrew-cask that referenced this issue May 7, 2014
To aid in Tap transition.  Require Homebrew 0.9.5, rescue
`rename_tags_dir_if_necessary` (`respond_to?` won't work there
because `rename_tags_dir_if_necessary` is a private method.

References: Homebrew#4192, @Jackiebo in Homebrew#4096
gaishimo pushed a commit to gaishimo/homebrew-cask that referenced this issue May 16, 2014
At every command execution
- invoke `rename_taps_dir_if_necessary` to help with Homebrew's Tap migration.
  (Homebrew's migration seems to sometimes fail to fire, see Homebrew#4096)
- untap `phinze/cask`, and tap `caskroom/cask`, to help with our own move
  to a GitHub organization
After a few months, this can be reverted.
gaishimo pushed a commit to gaishimo/homebrew-cask that referenced this issue May 16, 2014
To aid in Tap transition.  Require Homebrew 0.9.5, rescue
`rename_tags_dir_if_necessary` (`respond_to?` won't work there
because `rename_tags_dir_if_necessary` is a private method.

References: Homebrew#4192, @Jackiebo in Homebrew#4096
@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

4 participants