Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling brew services'. This command needs to be refactored, as it is written in a style that is deprecated! Use inherits from Homebrew::AbstractCommand' ( see https://docs.brew.sh/External-Commands ) instead. #835

Open
ad1095445 opened this issue Dec 11, 2024 · 1 comment

Comments

@ad1095445
Copy link

`Please report this issue to the Homebrew/homebrew-services tap, or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/homebrew/homebrew-services/cmd/services.rb:9

Error: uninitialized constant Homebrew::Service
/opt/homebrew/Library/Homebrew/formulary.rb:396:in block in load_formula_from_api' /opt/homebrew/Library/Homebrew/formulary.rb:285:in initialize'
/opt/homebrew/Library/Homebrew/formulary.rb:285:in new' /opt/homebrew/Library/Homebrew/formulary.rb:285:in load_formula_from_api'
/opt/homebrew/Library/Homebrew/formulary.rb:939:in load_from_api' /opt/homebrew/Library/Homebrew/formulary.rb:932:in klass'
/opt/homebrew/Library/Homebrew/formulary.rb:567:in get_formula' /opt/homebrew/Library/Homebrew/formulary.rb:980:in factory'
/opt/homebrew/Library/Taps/homebrew/homebrew-services/cmd/services.rb:89:in services' /opt/homebrew/Library/Homebrew/brew.rb:97:in public_send'
/opt/homebrew/Library/Homebrew/brew.rb:97:in <main>' If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/homebrew/homebrew-services/issues/new`

I run "brew services start syncthing",but something wrong, this is the details .

@ZhongRuoyu
Copy link
Member

What's the output of git -C "$(brew --repo homebrew/services)" show? It's very likely that the homebrew/services tap is outdated, in which case you need to run brew update to update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants