chrisgrieser / shimmering-obsidian

Alfred Workflow with dozens of features for controlling your Obsidian vault.
https://alfred.app/workflows/chrisgrieser/shimmering-obsidian/
MIT License
830 stars 41 forks source link

[Bug]: Workflow crashes due to missing supercharged_icon_file variable #96

Closed hy1o closed 1 year ago

hy1o commented 1 year ago

Bug Description

I installed the workflow and ran osetup. The workflow crashes and I turned on the debug mode.

/Users/xxx/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9272AAEE-A18D-4800-AB9F-BB138436EFB1/scripts/recent_searcher.js: execution error: Error: Error: exception raised by object: *** +[NSString stringWithUTF8String:]: NULL cString (-2700)

It was happening with almost every workflow command. Further debugging reveals that it was trying to get supercharged_icon_file variable from the environment that doesn't exist.

I added supercharged_icon_file with a random value in info.plist and it resolved the issue. I am wondering if this is a bug or if I missed a step during setup.

Relevant Screenshot

No response

To Reproduce

  1. Install the workflow
  2. Run osetup
  3. Try any command (ot, or, ...)

Debugging Log

/Users/xxx/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9272AAEE-A18D-4800-AB9F-BB138436EFB1/scripts/recent_searcher.js: execution error: Error: Error: exception raised by object: *** +[NSString stringWithUTF8String:]: NULL cString (-2700)

### Workflow Configuration

Couldn't find prefs.plist

### Version & System Information

```Text
-------------------------------
Metadata JSONs: 3/3
Metadata String Length: 244012
-------------------------------
INSTALLED VERSION
macOS: 12.5
Alfred: 4.6.2

Obsidian: 0.15.9
This Workflow: 3.0.0
Advanced URI Plugin: 1.24.0
Metadata Extractor: 1.0.2
-------------------------------
LATEST VERSION
Obsidian: 0.15.9 (Insider: 0.16.2)
This Workflow: q
Advanced URI Plugin: 1.26.1
Metadata Extractor: 1.0.2
-------------------------------

Make sure you have done the following

chrisgrieser commented 1 year ago

Hi, most likely this is due to you using version 3 of this workflow, which requires Alfred 5.

You either need to upgrade to Alfred 5, in which case you should also re-install the workflow once and not migrate your old settings from Alfred 4.

Or you need downgrade the latest release still compatible with Alfred 4.