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] - 0 apps on first init #153

Open
mio-19 opened this issue Jan 20, 2025 · 10 comments · Fixed by #156
Open

🐛 [BUG] - 0 apps on first init #153

mio-19 opened this issue Jan 20, 2025 · 10 comments · Fixed by #156
Labels
bug Something isn't working

Comments

@mio-19
Copy link

mio-19 commented Jan 20, 2025

Description

I installed this app and it is showing 0 apps

Reproduction URL

No response

Reproduction steps

1. Install
2. Run

Screenshots

Image

Logs

OS

Mac

@mio-19 mio-19 added the bug Something isn't working label Jan 20, 2025
@romankurnovskii
Copy link
Owner

@mio-19 could you Could you have a try with app version 0.4.4 ?

brew upgrade brewmate

And if not resolved, attach logs file 'logsbrewmate.txt'?

@mio-19
Copy link
Author

mio-19 commented Feb 2, 2025

cat 'Library/Application Support/brewmate/logsbrewmate.txt'                                                                                                                                                      09:52:29 pm
[2025-02-02T10:52:32.346Z] Current version of the app: 0.4.4
[2025-02-02T10:52:32.558Z] [DEBUG] PATH: /usr/bin:/bin:/usr/sbin:/sbin:/bin/sh:/usr/local/bin
[2025-02-02T10:52:32.586Z] Error:Error: ENOENT: no such file or directory, open '/Users/user/Library/Application Support/brewmate/casks-dict.json'

@romankurnovskii
Copy link
Owner

What is after in log?

@mio-19
Copy link
Author

mio-19 commented Feb 4, 2025

What is after in log?

nothing

@mio-19
Copy link
Author

mio-19 commented Feb 4, 2025

~ ❯ cat 'Library/Application Support/brewmate/logsbrewmate.txt'                
[2025-02-02T10:52:32.346Z] Current version of the app: 0.4.4
[2025-02-02T10:52:32.558Z] [DEBUG] PATH: /usr/bin:/bin:/usr/sbin:/sbin:/bin/sh:/usr/local/bin
[2025-02-02T10:52:32.586Z] Error:Error: ENOENT: no such file or directory, open '/Users/user/Library/Application Support/brewmate/casks-dict.json'
[2025-02-04T01:48:30.636Z] Current version of the app: 0.4.4
[2025-02-04T01:48:30.846Z] [DEBUG] PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/bin/sh:/usr/local/bin
[2025-02-04T01:48:30.866Z] Error:Error: ENOENT: no such file or directory, open '/Users/user/Library/Application Support/brewmate/casks-dict.json'
~ ❯

@romankurnovskii romankurnovskii changed the title 🐛 [BUG] - 0apps 🐛 [BUG] - 0 apps on first init Feb 4, 2025
@romankurnovskii
Copy link
Owner

Will it work for you if you close app and then open again?
Turns out it does not render apps during first initialization but only saves casks-dict.json

@mio-19
Copy link
Author

mio-19 commented Feb 4, 2025

Imagecat 'Library/Application Support/brewmate/logsbrewmate.txt' х INT Py base 08:07:12 pm
[2025-02-02T10:52:32.346Z] Current version of the app: 0.4.4
[2025-02-02T10:52:32.558Z] [DEBUG] PATH: /usr/bin:/bin:/usr/sbin:/sbin:/bin/sh:/usr/local/bin
[2025-02-02T10:52:32.586Z] Error:Error: ENOENT: no such file or directory, open '/Users/user/Library/Application Support/brewmate/casks-dict.json'
[2025-02-04T01:48:30.636Z] Current version of the app: 0.4.4
[2025-02-04T01:48:30.846Z] [DEBUG] PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/bin/sh:/usr/local/bin
[2025-02-04T01:48:30.866Z] Error:Error: ENOENT: no such file or directory, open '/Users/user/Library/Application Support/brewmate/casks-dict.json'
[2025-02-04T09:06:17.074Z] Current version of the app: 0.4.4
[2025-02-04T09:06:17.273Z] [DEBUG] PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/bin/sh:/usr/local/bin
[2025-02-04T09:06:17.307Z] Error:Error: ENOENT: no such file or directory, open '/Users/user/Library/Application Support/brewmate/casks-dict.json'

@romankurnovskii
Copy link
Owner

ENOENT: no such file or directory, open '/Users/user/Library/Application Support/brewmate/casks-dict.json' - is expected on first app start

I am not sure why json file couldnt be created in the provided path, perhaps there is no permission, not sure

Updated json laoding on startup in 0.4.5 version, but doesn't seem it could resolve the issue why file /Users/user/Library/Application Support/brewmate/casks-dict.json is not created on your side

@plaseo
Copy link

plaseo commented Feb 12, 2025

Getting the same on .45 and it's also showing that 'brew' command not found in /bin/sh but I thought default shell is supposed to be /bin/zsh?
I can however access brew under /bin/sh
Is this failing to create the json because it cannot get any data from brew since it cannot run the command?
Apple Silicon, brew: /opt/homebrew/bin/brew

[2025-02-12T16:17:16.779Z] Error:Error: ENOENT: no such file or directory, open '/Users/cameron/Library/Application Support/brewmate/casks-dict.json'
[2025-02-12T16:17:18.203Z] Started command: brew update
[2025-02-12T16:17:23.339Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:17:37.217Z] Started command: brew tap
[2025-02-12T16:17:37.225Z] Error: Command failed: brew tap
/bin/sh: brew: command not found

/bin/sh: brew: command not found

[2025-02-12T16:17:38.183Z] Started command: osascript -e 'tell application "Terminal" to do script "brew update; brew upgrade; brew cu --all --cleanup --force --yes && exit"'
[2025-02-12T16:17:44.516Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:17:50.988Z] Started command: brew tap
[2025-02-12T16:17:50.999Z] Error: Command failed: brew tap
/bin/sh: brew: command not found

/bin/sh: brew: command not found

[2025-02-12T16:20:38.456Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:21:16.878Z] Started command: brew update
[2025-02-12T16:21:18.523Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:21:22.638Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:25:33.297Z] Started command: brew update
[2025-02-12T16:25:35.115Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:25:38.965Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:26:58.319Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:27:09.689Z] Error:Error: ENOENT: no such file or directory, open '/Users/cameron/Library/Application Support/brewmate/casks-dict.json'
[2025-02-12T16:27:11.370Z] Started command: brew update
[2025-02-12T16:27:15.126Z] Started command: brew tap
[2025-02-12T16:27:15.135Z] Error: Command failed: brew tap
/bin/sh: brew: command not found

/bin/sh: brew: command not found

[2025-02-12T16:32:36.536Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"
[2025-02-12T16:32:52.157Z] Current version of the app: 0.4.5
[2025-02-12T16:32:52.960Z] Fetched Casks:7341
[2025-02-12T16:32:53.093Z] Error executing the init commands: Error: Command failed: brew search --casks . | grep -v "font-"
/bin/sh: brew: command not found

[2025-02-12T16:32:53.231Z] [DEBUG] PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/bin/sh:/usr/local/bin
[2025-02-12T16:32:53.459Z] Error:Error: ENOENT: no such file or directory, open '/Users/cameron/Library/Application Support/brewmate/casks-dict.json'
[2025-02-12T16:32:58.806Z] Started command: brew tap
[2025-02-12T16:32:58.824Z] Error: Command failed: brew tap
/bin/sh: brew: command not found

/bin/sh: brew: command not found

[2025-02-12T16:33:02.326Z] Started command: open "/Users/cameron/Library/Application Support/brewmate/logsbrewmate.txt"

@andypiper
Copy link
Contributor

This should be fixed by #158

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
Development

Successfully merging a pull request may close this issue.

4 participants