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

[BUG] - Failing to Run and Detect Nothing #131

Closed
drveresh opened this issue Mar 30, 2024 · 11 comments · Fixed by #152, #156 or #158
Closed

[BUG] - Failing to Run and Detect Nothing #131

drveresh opened this issue Mar 30, 2024 · 11 comments · Fixed by #152, #156 or #158
Labels
bug Something isn't working

Comments

@drveresh
Copy link

Description

After a clean installatiion, both vai DMG and Brew commands, the app is opening, but unable to detect existing items, not showing new items, and there is nothing to install at all.

Device: macOS Sonoma 14.4.1 (23E224)

Below is the error on the app(footer):

"`Error: Error: Command failed: brew tap /bin/sh: brew: command not found`"

Please helping fix these issues and offer a seamless installations.

### Reproduction URL

_No response_

### Reproduction steps

```bash
1. Just install the app and open it, and there is nothing to browser, check or install!

Screenshots

![DESCRIPTION](LINK.png)

Logs

[2024-03-30T17:17:29.680Z] Started command: brew tap
[2024-03-30T17:17:29.686Z] Error: Command failed: brew tap
/bin/sh: brew: command not found

/bin/sh: brew: command not found

[2024-03-30T17:17:31.610Z] Started command: open "/Users/UserID/Library/Application Support/brewmate/logsbrewmate.txt"
[2024-03-30T17:18:18.111Z] Error:Error: Command failed: brew info --installed --casks --json=v2
/bin/sh: brew: command not found

[2024-03-30T17:30:12.799Z] Current version of the app: 0.4.1
[2024-03-30T17:30:13.196Z] Error:Error: ENOENT: no such file or directory, open '/Users/UserID/Library/Application Support/brewmate/casks-dict.json'
[2024-03-30T17:30:29.719Z] Error:Error: Command failed: brew info --installed --casks --json=v2
/bin/sh: brew: command not found

[2024-03-30T17:30:32.068Z] Started command: brew tap
[2024-03-30T17:30:32.098Z] Error: Command failed: brew tap
/bin/sh: brew: command not found

/bin/sh: brew: command not found

[2024-03-30T17:33:32.533Z] Started command: open "/Users/UserID/Library/Application Support/brewmate/logsbrewmate.txt

OS

Mac

@drveresh drveresh added the bug Something isn't working label Mar 30, 2024
@LaurentSGL
Copy link

hello i have nearly the same thing on catalina 10.15.7. The app launches but nothing appears in the list.
I just type the command : echo "eval $(/usr/local/Homebrew/bin/brew shellenv)" >> .zshrc
and now the lists appears. Hope it will help

@insec404
Copy link

echo "eval $(/usr/local/Homebrew/bin/brew shellenv)" >> .zshrc

I tried this but it still shows nothing for me

@romankurnovskii
Copy link
Owner

romankurnovskii commented Nov 24, 2024

@drveresh
Based on the logs: brew: command not found
Could you try to verify if brew (which brew) command works for you in terminal?
More info https://brew.sh/

@drveresh
Copy link
Author

@drveresh Based on the logs: brew: command not found Could you try to verify if brew (which brew) command works for you in terminal? More info https://brew.sh/

I have this:

user$ which brew
brew is /usr/local/bin/brew

@romankurnovskii romankurnovskii linked a pull request Dec 5, 2024 that will close this issue
@romankurnovskii
Copy link
Owner

@drveresh Based on the logs: brew: command not found Could you try to verify if brew (which brew) command works for you in terminal? More info https://brew.sh/

I have this:

user$ which brew
brew is /usr/local/bin/brew

Updated PATH to use /usr/local/bin/

@andypiper
Copy link
Contributor

I've just tried to install and run on Sequoia 15.2 and I'm also seeing none of the brew commands succeed.

In my case:

$ which brew                                                                                                         
/opt/homebrew/bin/brew

Unsure what might be unusual here.

@romankurnovskii
Copy link
Owner

I've just tried to install and run on Sequoia 15.2 and I'm also seeing none of the brew commands succeed.

In my case:

$ which brew
/opt/homebrew/bin/brew
Unsure what might be unusual here.

@andypiper is there a way to reproduce? also perhaps we can see something from the logs file 'logsbrewmate.txt'?

@andypiper
Copy link
Contributor

Here's the log file - there's a week gap in the middle where I'd removed the app, and then put it back again for this test.
logsbrewmate.txt

environment:

  • MBP 2021, M1 Pro chip
  • macOS 15.3 (pretty clean / recent reinstall)
  • zsh
  • latest homebrew brew --version -> Homebrew 4.4.19-21-g9b6de82
  • brew doctor reports system ready to brew

I'm not sure how reproducible for anyone else; I only have this one Mac to test with myself.

@romankurnovskii
Copy link
Owner

romankurnovskii commented Feb 2, 2025

Here's the log file - there's a week gap in the middle where I'd removed the app, and then put it back again for this test. logsbrewmate.txt

environment:

  • MBP 2021, M1 Pro chip
  • macOS 15.3 (pretty clean / recent reinstall)
  • zsh
  • latest homebrew brew --version -> Homebrew 4.4.19-21-g9b6de82
  • brew doctor reports system ready to brew

I'm not sure how reproducible for anyone else; I only have this one Mac to test with myself.

from the log file:

[2025-01-29T12:47:13.782Z] Started command: open "/Users/***/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-01-29T12:47:58.721Z] Current version of the app: 0.4.3
[2025-01-29T12:48:04.939Z] Error:Error: Command failed: brew info --installed --casks --json=v2
/bin/sh: brew: command not found

Added /bin/sh path in PR 154
Could you have a try with app version 0.4.4

brew upgrade brewmate

?

@andypiper
Copy link
Contributor

(sorry, I was at FOSDEM and did not have a chance to follow up)

I've tried 0.4.5 and I'm still seeing this issue.

[2025-02-08T18:44:27.657Z] Current version of the app: 0.4.5
[2025-02-08T18:44:28.156Z] Fetched Casks:7337
[2025-02-08T18:44:28.328Z] Error executing the init commands: Error: Command failed: brew search --casks . | grep -v "font-"
/bin/sh: brew: command not found

[2025-02-08T18:44:28.502Z] [DEBUG] PATH: /usr/bin:/bin:/usr/sbin:/sbin:/bin/sh:/usr/local/bin
[2025-02-08T18:44:28.836Z] Error:Error: ENOENT: no such file or directory, open '/Users/andypiper/Library/Application Support/brewmate/casks-dict.json'
[2025-02-08T18:44:33.713Z] Error:Error: Command failed: brew info --installed --casks --json=v2
/bin/sh: brew: command not found

[2025-02-08T18:44:35.890Z] Started command: brew update
[2025-02-08T18:44:41.334Z] Started command: open "/Users/andypiper/Library/Application Support/brewmate/logsbrewmate.txt"

It just does not seem to find my brew installation (which is in the standard place, /opt/homebrew/bin/brew on Apple Silicon).

FWIW my user's shell is zsh, not /bin/sh. I think the homebrew paths are set in the .zshrc file, so presumably this app is not running with the correct paths?

andypiper added a commit to andypiper/BrewMate that referenced this issue Feb 8, 2025
Add Apple Silicon default installation path /opt/homebrew
See https://docs.brew.sh/Installation for more information.

Resolves romankurnovskii#131
@andypiper
Copy link
Contributor

Confirmed to work when /opt/homebrew/bin is added to the path in cli.ts (per the Homebrew docs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
5 participants