Comments (12)
can you provide more details here? using my existing setup (~ 150 entries) i can't replicate this.
from homebrew-bundle.
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.
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)
- Run
brew bundle dump
- Wait a few seconds
- Open Activity Monitor and see
ruby
processes replicating - Open a new terminal prompt and run
pkill ruby
- 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.
@k-obrien I'm afraid this isn't reproducible.
What does brew config
, brew doctor
and brew services list
output?
from homebrew-bundle.
❯ 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.
/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.
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.
@k-obrien Sounds like it may be a configuration issue. Might be worth checking your dotfiles etc.?
from homebrew-bundle.
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.
@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.
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.
... And now it inexplicably works under fish
again, with no changes to my configuration. 🤦🏻
from homebrew-bundle.
Related Issues (20)
- Qs on merging Brewfiles. HOT 2
- [Feature] Support groups HOT 1
- Error: cannot load such file -- abstract_command HOT 2
- Collection of potential new Installers/Checkers/Dumpers HOT 12
- npm & pip installers HOT 16
- Vscode : Case sensitive issue is back HOT 6
- [Question] Can formula and cask have the same name? HOT 4
- Unattended install of a bundle HOT 4
- how to install only on specified macOS version or arch of OS HOT 1
- brew bundle [install] --cleanup removes dependencies when reading from stdin HOT 4
- Confusion on what should be dumped HOT 1
- VSCode@Insiders Support for Extensions HOT 6
- Error: private method `system' called for module Homebrew HOT 9
- `brew bundle cleanup`: exit nonzero if action would be taken (or flag to opt into nonzero exit code) HOT 2
- Linuxbrew: Error: End of file reached (brew update && brew upgrade)
- Error: Invalid Brewfile: no implicit conversion of Symbol into Integer HOT 1
- Add ability to provide context to what is being installed/updated HOT 7
- Improve `vscode` handling of local extensions HOT 5
- link and conflicts_with options do not work as expected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-bundle.