Just spent a ridiculous amount of time trying to figure out a Shortcuts error with Bear on the Mac which says “this action cannot be run in the current environment” and of which there is little information on the Internet. To make things even more fun, on my laptop for work, an M1 Pro-based MacBook Pro, the error totally froze up the Spotlight prompt and I had to kill the Spotlight process off to recover (on my personal M3 Pro-based MBP I would receive the same error but it wouldn’t freeze up).
It turns out that Apple, for some reason, creates legacy versions of Shortcut actions and I was using one of those.
From the Bear support pages:
Apple sometimes automatically creates “legacy actions” for apps that are not under our control. We recommend avoiding these actions: Create Bear Note, Create Bear Note from URL, open Bear Note, and Search in Bear.
I’m not sure why they don’t label them as legacy to avoid confusion. An error that isn’t so generic wouldn’t hurt either.