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

Failed to Fetch the Latest Data #17854

Open
cmcneese opened this issue Mar 14, 2025 · 4 comments
Open

Failed to Fetch the Latest Data #17854

cmcneese opened this issue Mar 14, 2025 · 4 comments
Labels
bug Something isn't working extension: brew Issues related to the brew extension extension Issues related to one of the extensions in the Store

Comments

@cmcneese
Copy link

Extension

https://raycast.com/nhojb/brew

Raycast Version

1.93.2

macOS Version

15.3.2

Description

Error:

Error: Command failed: /opt/homebrew/bin/brew info --json=v2 --installed
Error: undefined method `undent' for an instance of String
/opt/homebrew/Library/Taps/fs/homebrew-fstool/fs-tool.rb:17:in `caveats'
/opt/homebrew/Library/Homebrew/formula.rb:2702:in `caveats_with_placeholders'
/opt/homebrew/Library/Homebrew/formula.rb:2524:in `to_hash'
/opt/homebrew/Library/Homebrew/cmd/info.rb:232:in `map'
/opt/homebrew/Library/Homebrew/cmd/info.rb:232:in `print_json'
/opt/homebrew/Library/Homebrew/cmd/info.rb:102:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:95:in `<main>'
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/fs/homebrew-fstool/issues/new

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess.emit (node:domain:488:12)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Steps To Reproduce

  1. Open Brew
  2. Search for a package
  3. while package shows up, error appears in Raycast saying it failed to fetch latest data

Current Behaviour

It appears I'm able to install a package, but the error is misleading into thinking there's an issue.

Image

Expected Behaviour

No response

@cmcneese cmcneese added bug Something isn't working extension Issues related to one of the extensions in the Store labels Mar 14, 2025
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @nhojb @Aayush9029 @mathieudutour @urwrstkn8mare @ashokbaruaakas @MillerApps @pernielsentikaer @jfkisafk @vpukhanov @j3lte @alexander-cato @ViGeng @ridemountainpig you might want to have a look.

💡 Author and Contributors commands

The author and contributors of nhojb/brew can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

@raycastbot raycastbot added the extension: brew Issues related to the brew extension label Mar 14, 2025
@nhojb
Copy link
Contributor

nhojb commented Mar 15, 2025

This looks like an error in the brew tool, rather than in the extension itself.

Could you try running this in a terminal to see if it works as expected:

/opt/homebrew/bin/brew info --json=v2 --installed

@cmcneese
Copy link
Author

This looks like an error in the brew tool, rather than in the extension itself.

Could you try running this in a terminal to see if it works as expected:

/opt/homebrew/bin/brew info --json=v2 --installed

I just ran it and got this output. Looks like perhaps it is Homebrew though, no?

❯ /opt/homebrew/bin/brew info --json=v2 --installed
Error: undefined method undent' for an instance of String /opt/homebrew/Library/Taps/fs/homebrew-fstool/fs-tool.rb:17:in caveats'
/opt/homebrew/Library/Homebrew/formula.rb:2702:in caveats_with_placeholders' /opt/homebrew/Library/Homebrew/formula.rb:2524:in to_hash'
/opt/homebrew/Library/Homebrew/cmd/info.rb:232:in map' /opt/homebrew/Library/Homebrew/cmd/info.rb:232:in print_json'
/opt/homebrew/Library/Homebrew/cmd/info.rb:102:in run' /opt/homebrew/Library/Homebrew/brew.rb:95:in

'
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/fs/homebrew-fstool/issues/new

@nhojb
Copy link
Contributor

nhojb commented Mar 16, 2025

Yeah, looks like an issue with the fs tap you have added. Maybe try removing or re-adding that and see if it fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: brew Issues related to the brew extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

No branches or pull requests

3 participants