Closed williammortl closed 8 years ago
I see the same thing.
Exactly same situation for me too.
the error is now gone. (i did a brew doctor and just cleaned up based on its response [brew prune, brew unlink openssl])
I’m closing this if it’s not an issue anymore.
Let's leave it open unless there's something we can do about it.
Me to, on two machines.
Had the same issue, second running of brew update
seemed to fix it.
same issue. then ran brew upgrade
, and issue disappeared.
ran brew update
got error, ran brew update
a second time, error gone.
Can't use the run-it-again workaround on Travis CI. We never have the opportunity to run brew update
again - so our CI builds are currently dead.
Had the same issue, second running of brew update
seemed to fix it.
Can't use the run-it-again workaround on Travis CI.
Is it not possible to write a second brew update
into your Travis configuration file?
Same issue, seemed to work fine after a second brew update
Can't use the run-it-again workaround on Travis CI.
Is it not possible to write a second brew update into your Travis configuration file?
@DomT4 Right you are. My bad. I had incorrectly assumed that brew update
was occurring as part of the magic that Travis CI provides, but in fact we're calling it from a script directly.
I saw this early this morning as well. Running brew update
a moment later and this went away. Interesting that the line numbers in mine were slightly different than the original posters:
brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:125:in `<main>'
Mine was slightly different as well.
$ brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:205:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:127:in `<main>'
I had incorrectly assumed that brew update was occurring as part of the magic that Travis CI provides, but in fact we're calling it from a script directly.
Travis tend to leave that down to individual developers. They do seem to periodically update their brew
generally but it's a good idea to add it to the Travis configuration file as you do. Running it twice isn't ideal, but the time delay should be minimal. We believe that this issue should only happen once - After you've kicked the original error out of the system it shouldn't return.
Interesting that the line numbers in mine were slightly different than the original posters
Xu committed a fix to ensure this doesn't reproduce in future in https://github.com/Homebrew/homebrew/commit/ac5707c37470c25583d8fb712bf5dc04ab91db4b, which nudged the line numbers around a bit.
Just had this occur for me as well. Output was the same as @Igw4 above.
Re-running brew update a second time seems to have worked, and I had minimal changes pulled in (one formula).
Just got this when running brew update. Re-running didn't produce errors, and may have actually worked, since I just got the fswatch
update.
I had the same issue. Re-running brew update
worked.
Same issue, different stacktrace. Re-running worked.
$ brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:173:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:159:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:159:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:140:in `<main>'
$ brew --version
0.9.5
$ brew update
Already up-to-date.
Same issue, re-running also solved.
Solution for travis:
- brew update; brew update
Worked for me.
Same issue, same line numbers as cmosetick. Second run was clean with "Already up-to-date," which must have been the result of the first run because it had been almost a week since the previous update.
Just got the same message (Thu Aug 6 19:56:25 CEST)
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
after running:
brew update && brew upgrade --all
A second run gave no errors and normal behaviour.
Same thing. Reporting as requested. FWIW, second invocation worked fine.
Ditto. Second run of "brew update" then "brew doctor" did not repeat the message.
$ brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:205:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:127:in `<main>'
$ brew update
Already up-to-date.
Resolved after running update again too
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:205:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:127:in `<main>'
+1
Reporting as ordered, Sir!
brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in loader_for' /usr/local/Library/Homebrew/formulary.rb:174:in
factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in block in report' /usr/local/Library/Homebrew/cmd/update.rb:190:in
each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in report' /usr/local/Library/Homebrew/cmd/update.rb:24:in
update'
/usr/local/Library/brew.rb:125:in `
We don't need further reports - thanks! We're aware of the bug and it has been fixed. This issue will happen one time and should not recur on future brew update
s. Please only report it if that doesn't fix it for you.
@xu-cheng Can we close this if it's been fixed by ac5707c37470c25583d8fb712bf5dc04ab91db4b?
This happened to me as well 2 minutes ago. I run brew update
a second time and the error is no longer there:
MacBook-Pro-di-Valerio:~ tanis$ brew update
Checking out files: 100% (2256/2256), done.
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:124:in `<main>'
MacBook-Pro-di-Valerio:~ tanis$ brew update
Already up-to-date.
MacBook-Pro-di-Valerio:~ tanis$
Occurred for me as well just now:
$ brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:124:in `<main>'
But then it worked immediately when I ran a second time:
$ brew update
Updated Homebrew from 525af5f7 to 525af5f7.
==> New Formulae
homebrew/versions/apache-spark131 homebrew/x11/tgif
homebrew/versions/gradle24
==> Updated Formulae
homebrew/binary/perforce
homebrew/dupes/libedit
homebrew/dupes/libpcap
homebrew/dupes/openldap
homebrew/dupes/tcpdump
homebrew/dupes/whois
homebrew/versions/bind99
homebrew/versions/gcc49
homebrew/versions/jenkins-lts
homebrew/versions/libmongoclient-legacy
homebrew/versions/llvm36
homebrew/versions/lua53
homebrew/x11/gnumeric
homebrew/x11/meld
==> Deleted Formulae
homebrew/versions/mapnik071
Happened here as well:
~ brew -v update && brew upgrade
Homebrew 0.9.5
==> git symbolic-ref --short HEAD
master
==> git rev-parse -q --verify HEAD
78593a0e1cb9713ff3e8f736831fdb1c8e36de79
git config core.autocrlf false
git pull origin refs/heads/master:refs/remotes/origin/master
remote: Counting objects: 457, done.
remote: Compressing objects: 100% (166/166), done.
Receiving objects: 100% (457/457), 54.78 KiB | 0 bytes/s, done.
remote: Total 457 (delta 357), reused 389 (delta 289), pack-reused 0
Resolving deltas: 100% (357/357), completed with 83 local objects.
From https://github.com/Homebrew/homebrew
78593a0..525af5f master -> origin/master
Updating 78593a0..525af5f
Fast-forward
Library/Aliases/brightness | 1 +
Library/ENV/4.3/cc | 4 +-
Library/ENV/scm/git | 2 +-
Library/Formula/abcde.rb | 15 ++--
Library/Formula/abcmidi.rb | 17 ++--
Library/Formula/astyle.rb | 10 +--
Library/Formula/awscli.rb | 16 ++--
Library/Formula/bazaar.rb | 41 +++++++--
Library/Formula/bfg.rb | 12 +--
Library/Formula/bzr-fastimport.rb | 59 +++++++++++++
Library/Formula/cairo.rb | 2 +-
Library/Formula/capnp.rb | 30 +++----
Library/Formula/discount.rb | 4 +-
Library/Formula/doxygen.rb | 96 ++++------------------
Library/Formula/duplicity.rb | 4 +-
Library/Formula/embulk.rb | 4 +-
Library/Formula/exact-image.rb | 2 +-
Library/Formula/exim.rb | 6 +-
Library/Formula/ffmpeg.rb | 3 +-
Library/Formula/fswatch.rb | 10 +--
Library/Formula/ftimes.rb | 19 ++++-
Library/Formula/fuseki.rb | 2 +-
Library/Formula/glassfish.rb | 4 +-
Library/Formula/go.rb | 6 +-
Library/Formula/gtmess.rb | 21 ++++-
Library/Formula/gwyddion.rb | 20 +++--
Library/Formula/ipfs.rb | 1 +
Library/Formula/jenkins.rb | 16 ++--
Library/Formula/json-fortran.rb | 20 +++--
Library/Formula/kotlin-compiler.rb | 10 +--
Library/Formula/libidn.rb | 19 +++--
Library/Formula/libpng.rb | 1 +
Library/Formula/mariadb.rb | 10 +--
Library/Formula/markdown.rb | 3 +-
Library/Formula/midnight-commander.rb | 4 +-
Library/Formula/multimarkdown.rb | 1 +
Library/Formula/netperf.rb | 15 ++--
Library/Formula/pgcli.rb | 14 ++--
Library/Formula/planck.rb | 6 +-
Library/Formula/pyqt5.rb | 2 +-
Library/Formula/rakudo-star.rb | 10 +--
Library/Formula/rust.rb | 4 +-
Library/Formula/screenbrightness.rb | 14 ++--
Library/Formula/selenium-server-standalone.rb | 4 +-
Library/Homebrew/bottles.rb | 4 +-
Library/Homebrew/caveats.rb | 7 +-
Library/Homebrew/cmd/aspell-dictionaries.rb | 2 +-
Library/Homebrew/cmd/audit.rb | 13 +--
Library/Homebrew/cmd/commands.rb | 2 +-
Library/Homebrew/cmd/doctor.rb | 2 +-
Library/Homebrew/cmd/install.rb | 4 +-
Library/Homebrew/cmd/list.rb | 6 +-
Library/Homebrew/cmd/style.rb | 4 +-
Library/Homebrew/cmd/test-bot.rb | 14 +++-
Library/Homebrew/cmd/update.rb | 2 +-
Library/Homebrew/compat/hardware.rb | 8 +-
Library/Homebrew/config.rb | 2 +-
Library/Homebrew/debrew.rb | 2 +-
Library/Homebrew/dependency.rb | 2 +-
Library/Homebrew/extend/ARGV.rb | 8 +-
Library/Homebrew/extend/ENV/shared.rb | 2 +-
Library/Homebrew/extend/ENV/super.rb | 2 +-
Library/Homebrew/extend/enumerable.rb | 11 +++
Library/Homebrew/formula.rb | 4 +-
Library/Homebrew/formula_cellar_checks.rb | 2 +-
Library/Homebrew/formulary.rb | 4 +-
Library/Homebrew/global.rb | 1 +
Library/Homebrew/os/mac/hardware.rb | 2 +-
.../requirements/language_module_requirement.rb | 6 +-
Library/Homebrew/resource.rb | 2 +-
Library/Homebrew/sandbox.rb | 2 -
Library/Homebrew/tap_constants.rb | 2 +
Library/Homebrew/test/test_formula.rb | 16 ++++
Library/Homebrew/test/test_inreplace.rb | 6 +-
Library/Homebrew/version.rb | 2 +-
share/doc/homebrew/Formula-Cookbook.md | 8 +-
76 files changed, 422 insertions(+), 296 deletions(-)
create mode 120000 Library/Aliases/brightness
create mode 100644 Library/Formula/bzr-fastimport.rb
create mode 100644 Library/Homebrew/extend/enumerable.rb
==> git rev-parse -q --verify HEAD
525af5f7c98877d913ce955b9c9d38a3b2f1d8ef
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:205:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:127:in `<main>'
Folks, please see Misty's comment a little further up. The issue has been fixed and shouldn't reproduce beyond the one time. You can safely ignore it asking you to report the problem on this occasion.
@xu-cheng Can we close this if it's been fixed by ac5707c?
Let's keep this open in the mean time to prevent new issue coming out.
ac5707c only prevents such bug happening again in the future rather than solving this one.
For me a second "brew update" seems to fix it as well
Agreed with @xu-cheng; let's leave this open until we stop getting reports.
I got this error this morning after upgrading yesterday from Lion 10.7.5 to Yosemite 10.10.4.
Running brew up
again fixed it.
$ brew up
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:205:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:127:in `<main>'
For Travis, just follow @markgranoff 's fix:
- brew update; brew update
Thanks for that by the way!
brew doctor
also fixed this for me.
We don't need further reports - thanks! We're aware of the bug and it has been fixed. This issue will happen one time and should not recur on future brew updates. Please only report it if that doesn't fix it for you.
Since the message requests to file a report for this bug, people will be eager to come by and share their own occurence (it will happen 1 time to almost everyone, correct?) hence this:
Agreed with @xu-cheng; let's leave this open until we stop getting reports.
Glad it's fixed.
Don't know if it matters, but I had used brew edit
to edit a formula...
Running brew update
a second time did work, and showed the changes I made stashed and then restored. Don't know if others had also edited formulas (I'm guessing, given the number commenters, that that is unlikely).
Seeing the same error, which has not appeared on the next brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in loader_for' /usr/local/Library/Homebrew/formulary.rb:174:in
factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in block in report' /usr/local/Library/Homebrew/cmd/update.rb:190:in
each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in report' /usr/local/Library/Homebrew/cmd/update.rb:24:in
update'
/usr/local/Library/brew.rb:125:in `
Second update appears to have worked but still throws a different error.
$ brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:124:in `<main>'
$ brew update
fatal: unable to access 'https://github.com/Homebrew/homebrew-php/': Unknown SSL protocol error in connection to github.com:-9805
Error: Failed to update tap: homebrew/php
Updated Homebrew from a0b79c0e to a0b79c0e.
==> New Formulae
...
==> Updated Formulae
...
==> Deleted Formulae
...
@azend that looks like a GitHub hiccup. Does it happen consistently?
Same here onetime
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:125:in `<main>'
Also the same issue for me.
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug: https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in loader_for' /usr/local/Library/Homebrew/formulary.rb:174:in
factory'
/usr/local/Library/Homebrew/cmd/update.rb:205:in block in report' /usr/local/Library/Homebrew/cmd/update.rb:190:in
each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in report' /usr/local/Library/Homebrew/cmd/update.rb:24:in
update'
/usr/local/Library/brew.rb:127:in `
Running brew doctor
fixed it...
Zorayrs-MacBook-Air:Retouch zkhalapyan$ brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:174:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:125:in `<main>'
Zorayrs-MacBook-Air:Retouch zkhalapyan$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
ppl011
Zorayrs-MacBook-Air:Retouch zkhalapyan$ brew update
Updated Homebrew from b45b37b9 to b45b37b9.
==> New Formulae
homebrew/versions/antlr3
Zorayrs-MacBook-Air:Retouch zkhalapyan$
I am not sure why I got this this morning. I ran update again and everything seems fine. I am only reporting this as a courtesy as the message says to report:
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX Please report this bug: https://git.io/brew-troubleshooting /usr/local/Library/Homebrew/formulary.rb:214:in'
loader_for' /usr/local/Library/Homebrew/formulary.rb:174:in
factory' /usr/local/Library/Homebrew/cmd/update.rb:205:inblock in report' /usr/local/Library/Homebrew/cmd/update.rb:190:in
each_line' /usr/local/Library/Homebrew/cmd/update.rb:190:inreport' /usr/local/Library/Homebrew/cmd/update.rb:24:in
update' /usr/local/Library/brew.rb:127:in `