Git Product home page Git Product logo

Comments (11)

minikdev avatar minikdev commented on July 21, 2024 1

Hi @Qetesh, I'm using macOS Sonoma 14.5, the latest version apparently. Thanks.

from extensions.

raycastbot avatar raycastbot commented on July 21, 2024

Thank you for opening this issue!

🔔 @Qetesh you might want to have a look.

💡 Author and Contributors commands

The author and contributors of Qetesh/battery-optimizer can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @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.

from extensions.

Qetesh avatar Qetesh commented on July 21, 2024

Thank you for using the extension and for your feedback. The extension uses the which system command to verify the bclm path. Could you please provide the output of the following command:

zsh -l -c 'which bclm'

This will help me identify the cause of the issue. Thank you!

from extensions.

danulqua avatar danulqua commented on July 21, 2024

@Qetesh The output of this command is

/opt/homebrew/bin/bclm

from extensions.

Qetesh avatar Qetesh commented on July 21, 2024

This is the expected result. I tested in a fresh environment, installing only Raycast, Brew, BCLM, and this store extension, and did not encounter any issues. I am still debugging. If possible, please provide any additional executable information. Thank you!

@Qetesh The output of this command is

/opt/homebrew/bin/bclm

from extensions.

danulqua avatar danulqua commented on July 21, 2024

I ended up forking the extension in order to try to debug the commandExists function.
execSync throws an error only when trying to use bclm, even with which command:

10:07:09.698 Error: Command failed: zsh -l -c 'which bclm'
    at checkExecSyncError (node:child_process:890:11)
    at execSync (node:child_process:962:15)
    at commandExists (/Users/danulqua/.config/raycast/extensions/battery-optimizer/get_battery_threshold.js:37:52)
    at confirmAlertBrew (/Users/danulqua/.config/raycast/extensions/battery-optimizer/get_battery_threshold.js:44:8)
    at getChargeThreshold (/Users/danulqua/.config/raycast/extensions/battery-optimizer/get_battery_threshold.js:73:29)
    at Object.get_battery_threshold_default (/Users/danulqua/.config/raycast/extensions/battery-optimizer/get_battery_threshold.js:87:9)
    at QR (/Applications/Raycast.app/Contents/Resources/RaycastNodeExtensions_RaycastNodeExtensions.bundle/Contents/Resources/api/node_modules/@raycast/api/index.js:20:36572)
    at KR (/Applications/Raycast.app/Contents/Resources/RaycastNodeExtensions_RaycastNodeExtensions.bundle/Contents/Resources/api/node_modules/@raycast/api/index.js:20:36192)
    at MessagePort.<anonymous> (<…>

Also I tried to specify the exact zsh path, both the /bin/zsh and /opt/homebrew/bin/zsh work the same.

Hopefully, it helps.

from extensions.

minikdev avatar minikdev commented on July 21, 2024

I have the same issue with my Macbook Pro M3 Pro.

from extensions.

Qetesh avatar Qetesh commented on July 21, 2024

@minikdev I'm also on Apple silicon. What macOS version is it? I'm gonna install it for a test.

from extensions.

danulqua avatar danulqua commented on July 21, 2024

MacBook Pro M2 Max
macOS Sonoma 14.5 as well

from extensions.

Qetesh avatar Qetesh commented on July 21, 2024

Thanks for the feedback. I’m on macOS Sonoma 14.5, and it’s working fine. So weird.
During testing, I found that running Raycast with Rosetta 2 on Apple Silicon causes some strange errors. Hope this helps.

from extensions.

Qetesh avatar Qetesh commented on July 21, 2024

Hey guys,

Thanks to VatsalSy for adding PR #13000. If the auto-detect BCLM feature doesn’t work, you can now use the specified path option. We’ve also optimized the execution logic and logging.

from extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.