Skip to content

error running brew commands ie. brew search gcc #91

@ipatch

Description

@ipatch

brew doctor output

na

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

na

What were you trying to do (and why)?

run basic brew commands

What happened (include all command output)?

na

What did you expect to happen?

not to see a ruby backtrace

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

brew search gcc

output

Error: undefined method `parse' for class JSON::Ext::Parser
Warning: Removed Sorbet lines from backtrace!
Rerun with `--verbose` to see the original backtrace
/home/capin/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/json-2.9.0/lib/json/common.rb:221:in `parse'
/home/capin/homebrew/Library/Homebrew/tap.rb:935:in `formula_renames'
/home/capin/homebrew/Library/Homebrew/tap.rb:1298:in `formula_renames'
/home/capin/homebrew/Library/Homebrew/formulary.rb:1146:in `tap_formula_name_type'
/home/capin/homebrew/Library/Homebrew/formulary.rb:751:in `try_new'
/home/capin/homebrew/Library/Homebrew/formulary.rb:808:in `try_new'
/home/capin/homebrew/Library/Homebrew/formulary.rb:1186:in `block in loader_for'
/home/capin/homebrew/Library/Homebrew/formulary.rb:1185:in `each'
/home/capin/homebrew/Library/Homebrew/formulary.rb:1185:in `loader_for'
/home/capin/homebrew/Library/Homebrew/formulary.rb:979:in `factory'
/home/capin/homebrew/Library/Homebrew/search.rb:72:in `block in search_formulae'
/home/capin/homebrew/Library/Homebrew/search.rb:72:in `map'
/home/capin/homebrew/Library/Homebrew/search.rb:72:in `search_formulae'
/home/capin/homebrew/Library/Homebrew/search.rb:129:in `search_names'
/home/capin/homebrew/Library/Homebrew/cmd/search.rb:81:in `run'
/home/capin/homebrew/Library/Homebrew/brew.rb:94:in `<main>'
Please report this issue:
  https://docs.brew.sh/Troubleshooting

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions