extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Color Picker] "Something went wrong" When Using "Pick Color" Command

Open christophertorres1 opened this issue 8 months ago • 5 comments

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

  1. Open Raycast Settings > Extensions
  2. Under the "Color Picker" extension, disable the "Menu Bar Color Picker" command
  3. 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

christophertorres1 avatar Mar 09 '26 04:03 christophertorres1

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 issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot close as duplicate Closes the issue as duplicate.
  • @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.

raycastbot avatar Mar 09 '26 04:03 raycastbot

Also getting this behaviour, and can confirm the enabling the 'Menu Bar Color Picker' stops it.

mattj-tech avatar Mar 18 '26 11:03 mattj-tech

Also getting this behavior. Enabling "Menu Bar Color Picker" does resolve it.

roy-rishi avatar May 06 '26 22:05 roy-rishi

Facing this as well.

pratyakshm avatar Aug 18 '26 08:08 pratyakshm

Just ran into this too

gambithunt avatar Sep 15 '26 09:09 gambithunt