Giter Club home page Giter Club logo

Comments (12)

jacobbednarz avatar jacobbednarz commented on June 2, 2024

can you provide more details here? using my existing setup (~ 150 entries) i can't replicate this.

from homebrew-bundle.

MikeMcQuaid avatar MikeMcQuaid commented on June 2, 2024

To help us debug this issue can you explain:

  • What you were trying to do (and why)
  • What happened
  • What you expected to happen
  • Step-by-step reproduction instructions (with as minimal input data as possible)

Closing until we have this.

from homebrew-bundle.

k-obrien avatar k-obrien commented on June 2, 2024

What you were trying to do (and why)

Dump my installed packages to a brewfile.

What happened

The command hung after outputting the following:

❯ brew bundle dump
==> Downloading https://formulae.brew.sh/api/formula.jws.json
##O=#    #

What you expected to happen

I expected my installed packages to be written to ./Brewfile

Step-by-step reproduction instructions (with as minimal input data as possible)

  1. Run brew bundle dump
  2. Wait a few seconds
  3. Open Activity Monitor and see ruby processes replicating
  4. Open a new terminal prompt and run pkill ruby
  5. Switch back to original prompt and see below output:
Error: SIGTERM
/opt/homebrew/Library/Homebrew/utils/popen.rb:49:in `read'
/opt/homebrew/Library/Homebrew/utils/popen.rb:49:in `block in popen'
/opt/homebrew/Library/Homebrew/utils/popen.rb:47:in `popen'
/opt/homebrew/Library/Homebrew/utils/popen.rb:47:in `popen'
/opt/homebrew/Library/Homebrew/utils/popen.rb:9:in `popen_read'
/opt/homebrew/Library/Homebrew/utils/popen.rb:16:in `safe_popen_read'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_services.rb:41:in `started_services'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_services.rb:35:in `started?'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:68:in `block in dump'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:58:in `map'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:58:in `dump'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/dumper.rb:22:in `build_brewfile'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/dumper.rb:35:in `dump_brewfile'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/commands/dump.rb:11:in `run'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/cmd/bundle.rb:135:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `<main>'
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/homebrew/homebrew-bundle/issues/new

brew bundle --help, for example, completes fine. I haven't tried other subcommands.

Please let me know if you need anything else. Thanks!

from homebrew-bundle.

MikeMcQuaid avatar MikeMcQuaid commented on June 2, 2024

@k-obrien I'm afraid this isn't reproducible.

What does brew config, brew doctor and brew services list output?

from homebrew-bundle.

k-obrien avatar k-obrien commented on June 2, 2024
❯ brew config
HOMEBREW_VERSION: 4.2.20
ORIGIN: https://github.com/Homebrew/brew
HEAD: c2ed3327c605c3e738359c9807b8f4cd6fec09eb
Last commit: 30 hours ago
Core tap JSON: 30 Apr 09:06 UTC
Core cask tap JSON: 30 Apr 04:52 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: codium --wait
HOMEBREW_MAKE_JOBS: 14
HOMEBREW_NO_ANALYTICS: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: 14-core 64-bit arm_palma
Clang: 15.0.0 build 1500
Git: 2.45.0 => /opt/homebrew/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.4.1-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: N/A
Rosetta 2: false
❯ brew doctor
Your system is ready to brew.
❯ brew services list
Name    Status User File
unbound none

from homebrew-bundle.

MikeMcQuaid avatar MikeMcQuaid commented on June 2, 2024
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_services.rb:41:in `started_services'

If it's failing here: it's just running brew services list so I'm afraid I have no idea what's going on here, sorry 😭

from homebrew-bundle.

k-obrien avatar k-obrien commented on June 2, 2024

Very strange. This is consistently reproducible 100% of the time for me. Stranger still is that this is happening on a brand new machine with a completely new environment, but it was also happening on my old machine. 🤔

In any case, it's more an annoyance than anything else so I guess we can close this issue and I'll just manually update my brewfile. Thanks for the prompt help though.

from homebrew-bundle.

MikeMcQuaid avatar MikeMcQuaid commented on June 2, 2024

@k-obrien Sounds like it may be a configuration issue. Might be worth checking your dotfiles etc.?

from homebrew-bundle.

k-obrien avatar k-obrien commented on June 2, 2024

That seems plausible as almost the first thing I did on this new machine was to clone and deploy my dotfiles repo. Any ideas what I might be looking for @MikeMcQuaid? I can't think of anything that would affect ruby or file processes...

I don't expect you to look at my dotfiles and help me diagnose those BTW. Just thought you might scan the list of items and see if anything leaped out at you as something I should look at. 😅

from homebrew-bundle.

MikeMcQuaid avatar MikeMcQuaid commented on June 2, 2024

@k-obrien no idea, I'm afraid! Could try commenting out your shell environment variables or creating a new shell with variables/functions/aliases unset and see what causes the issue? Sorry I can't be more help 😭

from homebrew-bundle.

k-obrien avatar k-obrien commented on June 2, 2024

Thanks for putting me on the right track @MikeMcQuaid. The command works as expected in zsh (for which I have almost zero configuration in place), so that gives me both a workaround and a starting point for investigation. I'll update here if/when I find out the cause under fish. Thanks again for your help!

from homebrew-bundle.

k-obrien avatar k-obrien commented on June 2, 2024

... And now it inexplicably works under fish again, with no changes to my configuration. 🤦🏻

from homebrew-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.