Brew doctor, brew uninstall bail on error "no implicit conversion of nil into String"


(Simon Norris) #1

Hi,

I’m trying to uninstall a formula (related to this: https://github.com/OSGeo/homebrew-osgeo4mac/issues/185) but brew uninstall and brew doctor fail with message below.

Searching for this error message I see older issues related to brew cask and permissions, neither of these seem to be the problem. Should I file an issue? Thanks!

Error: no implicit conversion of nil into String
Please report this bug:
  https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Homebrew/formulary.rb:363:in `extname'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:363:in `loader_for'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:280:in `factory'
/usr/local/Homebrew/Library/Homebrew/dependency.rb:33:in `to_formula'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1564:in `map'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1564:in `missing_dependencies'
/usr/local/Homebrew/Library/Homebrew/keg.rb:127:in `block in find_some_installed_dependents'
/usr/local/Homebrew/Library/Homebrew/keg.rb:126:in `each'
/usr/local/Homebrew/Library/Homebrew/keg.rb:126:in `find_some_installed_dependents'
/usr/local/Homebrew/Library/Homebrew/cmd/uninstall.rb:100:in `check_for_dependents'
/usr/local/Homebrew/Library/Homebrew/cmd/uninstall.rb:93:in `handle_unsatisfied_dependents'
/usr/local/Homebrew/Library/Homebrew/cmd/uninstall.rb:31:in `uninstall'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'

brew doctor --debug output:

System

  • System Version: macOS 10.13.4 (17E202)
  • Command Line Tools: 9.4 (just updated)

(Steve Peters) #2

This sounds like issue 4261, and fortunately there is a fix for it being tested in pull request 4263.


(Simon Norris) #3

Thanks! Missed that, I guess I’ve been trying to figure out a way around it for more than 2hrs.