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

Throws an error on third toggle #11957

Closed
varslot opened this issue Apr 23, 2024 · 9 comments
Closed

Throws an error on third toggle #11957

varslot opened this issue Apr 23, 2024 · 9 comments
Labels
bug Something isn't working extension: background-sounds Issues related to the background-sounds extension extension Issues related to one of the extensions in the Store status: stalled Stalled due inactivity

Comments

@varslot
Copy link

varslot commented Apr 23, 2024

Extension

https://www.raycast.com/SebDanielsson/background-sounds

Description

I works when I toggle on, then off, but it fails and throws an error on the third toggle:

Error: Command failed with exit code 1: osascript
Background sound is on
Background sounds turned off
757:788: execution error: No matching processes belonging to you were found (1)

Background sound is on
Background sounds turned off
O9:run-applescript.js:38:21

---
35:         timedOut,
36:         command: "osascript",
37:         options,
38:         parentError: new Error(),
39:     });
40: }
41: exports.runAppleScript = runAppleScript;
---
movie.mp4

Steps To Reproduce

  1. Toggle Background Sounds in Raycast
  2. Do this 3 times
  3. Receive error

Current Behaviour

Not working after 3 toggles. Then have to manually turn Background Sounds on/off in System Settings for it to work again.

Expected Behaviour

To be able to toggle on and off unlimited

@varslot varslot added bug Something isn't working extension Issues related to one of the extensions in the Store labels Apr 23, 2024
@raycastbot raycastbot added the extension: background-sounds Issues related to the background-sounds extension label Apr 23, 2024
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @sebdanielsson you might want to have a look.

💡 Author and Contributors commands

The author and contributors of SebDanielsson/background-sounds 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 Reopen the issue.

@sebdanielsson
Copy link
Contributor

Hi! Thanks for testing my extension out. I tried to reproduce but mine just toggles between on/off as expected. What version of Raycast and macOS are you running?

@varslot
Copy link
Author

varslot commented Apr 24, 2024

Raycast 1.71.4
Sonoma 14.4.1
image
image

@sebdanielsson
Copy link
Contributor

@pernielsentikaer did you try to toggle the sound on and off three times or more during testing? I can't reproduce on my end.

@pernielsentikaer
Copy link
Collaborator

I can't reproduce it here, toggled 10+ times in a row without any issues

macOS 14.4.1 (23E224)
Raycast 1.72.0

@varslot
Copy link
Author

varslot commented Apr 26, 2024

Tried updating to Raycast 1.72.1, and uninstall then re-install the extension. No luck so far.

One thing I noticed is that the extension is not able to (at least not visually) toggle the Bakcground Sounds switch. Whenever I flip the switch after the error, I'm able to use the extension for a few runs again.

@sebdanielsson
Copy link
Contributor

I think it's a UI thing.

I tried the following:

  1. Open settings and see the Background Sounds switch set to off
  2. Run the toggle command (The switch will still show that it's off)
  3. Close settings and reopen (The switch will indicate that the sound is on)

If you're aware of a better way of changing macOS System Settings I'd be glad to try it out and update the extension.

@raycastbot
Copy link
Collaborator

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Jun 16, 2024
@raycastbot
Copy link
Collaborator

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

@raycastbot raycastbot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: background-sounds Issues related to the background-sounds extension extension Issues related to one of the extensions in the Store status: stalled Stalled due inactivity
Projects
None yet
Development

No branches or pull requests

4 participants