[Color Picker] "Something went wrong" When Using "Pick Color" Command
Extension
https://www.raycast.com/thomas/color-picker
Raycast Version
1.104.8
OS Version
26.3.1
Description
I noticed the same error message as the now closed issue #16826 when using the "Pick Color" command. It occurs when the separate "Menu Bar Color Picker" command is disabled. "Something went wrong" seems to be a general error message that Raycast is throwing in response to an error in pick-color.ts.
In pick-color.ts:
try {
await launchCommand({ name: "menu-bar", type: LaunchType.Background });
} catch (e) {
if (!(e instanceof Error && e.message.includes("must be activated"))) {
await showFailureToast(e);
}
}
When the "Menu Bar Color Picker" command is disabled, this throws an error with a message that doesn't include "must be activated", so it reaches showFailureToast. If this refresh is not critical, the catch should silently ignore all errors.
https://github.com/user-attachments/assets/3fbbda47-7e35-44f9-b4d0-44cec96807c3
Steps To Reproduce
- Open Raycast Settings > Extensions
- Under the "Color Picker" extension, disable the "Menu Bar Color Picker" command
- Use the "Pick Color" command. You will see the toasts "Copied color #c0ffee to clipboard" and "Something went wrong"
Current Behaviour
Extra error message
Expected Behaviour
No error message
Thank you for opening this issue!
🔔 @thomaspaulmann @otakustay @EmersonEmerson @pernielsentikaer @arronhunt @kvdo2 @LitoMore @samuelkraft @ridemountainpig @xilopaint @anwarulislam @yusifaliyevpro you might want to have a look.
💡 Author and Contributors commands
The author and contributors of thomas/color-picker can trigger bot actions by commenting:
@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot close as duplicateCloses the issue as duplicate.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.
Also getting this behaviour, and can confirm the enabling the 'Menu Bar Color Picker' stops it.
Also getting this behavior. Enabling "Menu Bar Color Picker" does resolve it.
Facing this as well.
Just ran into this too