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
battery
module warning on desktop macOS 12
#2800
Comments
I'm also on beta and have no issue.
Technically speaking, the warning is expected.
We can't tell whether you system does not have batteries or something goes wrong. Only thing we can do is to silence the message, but that's not good. Or you can disable the battery module. |
Can you please share your starship logs where you encounter the error: STARSHIP_LOG=trace starship prompt Most of the heavy-lifting for the battery module is done by svartalf/rust-battery, so this may require an upstream issue to be created if we're receiving an unparsable output on M1 desktop machines. |
here's the related debug logs:
|
Heya EGOIST 👋 What's unusual is that it seems |
This happens for me on Monterey on an M1 Imac. |
It happens for me too on Monterey 12.0.1 on an M1 iMac 2021. |
Can confirm the same on Mac mini (M1, 2020) after the upgrade. I am not familiar with the codebase, but is it possible to add an exception so that an Error of "FullyCharged" will be treated like no error? |
For the machines without a battery, you can disable the feature with Source: #1940 (comment) |
As mentioned by @matchai the heavy lifting is done by the If this warning does not appear on previous versions of macOS then it's Apple changing stuff. The code for For now the best thing you can do is to disable the |
battery
module warning on macOS 12
It seems that |
battery
module warning on macOS 12battery
module warning on desktop macOS 12
Current Behavior
starship
insidezsh
configured viaohmyzsh
shows the following warning:Expected Behavior
No warning expected
Additional context/Screenshots
Possible Solution
Temporarily disabled battery information since the Mac Mini does not have batteries anyway.
May happen on MacBook Pro M1 w/ macOS 12 beta as well…
Environment
Relevant Shell Configuration
Starship Configuration
<no config>
The text was updated successfully, but these errors were encountered: