-
Notifications
You must be signed in to change notification settings - Fork 285
mas list
display NO applications
#805
New issue
Have a 8000 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
Comments
@antoine2711 This is likely a duplicate of #801. If it is a duplicate, it isn't a bug per se, though mas could warn about and/or attempt to mitigate the circumstances. Below is the existing proposed new addition for the Please let me know if it solves your problem. If so, please let me know if you would like to see any changes in the proposed new documentation. If it is the problem, I can see if there is any way to easily check from Swift if Spotlight has indexed your apps, then, if they haven't already been indexed, to start the indexing and/or output a warning. If not, please let me know the output of the various commands that you try. Proposed new documentation below
|
Hum. I think it fixed it. I now see back all my apps. I did run: Thanks. Regards, Antoine |
@antoine2711 Thanks. Glad it works now. Was the documentation good? Should it be changed in any way? I will look into automatically starting Metadata Server indexing from Swift. |
I just upgraded to macOS 15.4.1 and Edit: Hmm, ~
❯ mas list
Error: No installed apps found
~
❯ sudo mdutil -Eai off
~ as 🧙 took 11s
❯ mas list
Error: No installed apps found
~ as 🧙
❯ sudo mdutil -Eai on
~ as 🧙 took 10s
❯ mas list
Error: No installed apps found |
@martimlobao please provide the output of |
@rgoldberg running the latest version: ❯ mas config
mas ▁▁▁▁ 2.1.0
arch ▁▁▁ arm64
from ▁▁▁ homebrew/core/mas
origin ▁ https://github.com/mas-cli/mas.git
rev ▁▁▁▁ a4756e8c82a2bae5d5de1b137ec16fa7c1df8c94
driver ▁ 1.115.1
swift ▁▁ 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
region ▁ US
macos ▁▁ 15.4.1 (24E263)
mac ▁▁▁▁ MacBookPro18,3
cpu ▁▁▁▁ Apple M1 Pro It might just be a transient error, I'll reboot later today and try again. |
@martimlobao thanks for the info. If restarting doesn't fix things, can you try the various diagnostic commands mentioned in the proposed documentation? |
And thank you very much for your support @rgoldberg. That fixed my problem.
I would say yes, since I assumed that my indexation was problematic, [re]indexing by running I didn't check to see first if for some reasons, indexing was off, nor did I check any app before to see if they weren't indexed.
I think this would fix future problems for people, since it seems it was my problem. Best Regards, Antoine |
@rgoldberg : sorry, I closed this issue, but I see it's now a task. My mistake. Can't reopen it, though. Regards, Antoine |
@antoine2711 No problem about closing. Also waiting to hear back from @martimlobao, but would eventually close anyway as I can track work in the original issue. I might output Spotlight indexing instructions to stderr if |
@rgoldberg I was going to say it didn't work (toggled off and on and still gave an error), but after waiting a minute and using the diagnostic command, I'm happy to say that it's working now :) Maybe it takes a little while to rebuild the index? ~
❯ mas list
Error: No installed apps found
~
❯ sudo mdutil -Eai off
/:
2025-04-24 21:00:49.217 mdutil[2170:15818] mdutil disabling Spotlight: / -> kMDConfigSearchLevelFSSearchOnly
Indexing disabled.
/System/Volumes/Data:
2025-04-24 21:00:49.465 mdutil[2170:15818] mdutil disabling Spotlight: /System/Volumes/Data -> kMDConfigSearchLevelFSSearchOnly
Indexing disabled.
/System/Volumes/Preboot:
2025-04-24 21:00:50.130 mdutil[2170:15818] mdutil disabling Spotlight: /System/Volumes/Preboot -> kMDConfigSearchLevelFSSearchOnly
Indexing disabled.
~ as 🧙 took 4s
❯ sudo mdutil -Eai on
/:
Indexing enabled.
/System/Volumes/Data:
Indexing enabled.
/System/Volumes/Preboot:
Indexing enabled.
~ as 🧙
❯ mas list
Error: No installed apps found
~ as 🧙
❯ mdls -rn kMDItemAppStoreAdamID /Applications/Numbers.app
409203825%
~ as 🧙
❯ mas list
937984704 Amphetamine (5.3.2)
1193539993 Brother iPrint&Scan (12.2.1)
409203825 Numbers (14.4) |
@martimlobao Glad it's working now. Thanks for testing it. I think we can track the work to document the fix / mitigate the problem in the other open issues / PRs about it. |
mas config
Installation method
Homebrew core (via
brew install mas
)Bug description
Can’t see any application installed.
Steps to reproduce
mas list
The text was updated successfully, but these errors were encountered: