Jump to content

Shimmering Obsidian


pseudometa

Recommended Posts

  • 4 months later...

Keep in mind this is on a clean VM. I’m using the Sandbox Vault to test, but I also tried it by creating a new Vault and copying the Sandbox Vault’s contents there.


When I do osetup this is what I get in the Debugger:


[22:09:18.320] Shimmering Obsidian[Script Filter] Passing output '/Users/vm/Library/Application Support/obsidian/Obsidian Sandbox' to Run Script
[22:09:18.443] ERROR: Shimmering Obsidian[Run Script] /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C5A105A2-D6BC-4DE4-AE63-2BEB32B9A426/scripts/osetup_2.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)


And when I run oinfo:


-------------------------------
INTERNAL WORKFLOW CONFIGURATION
Vault Path: /Users/vm/Library/Application Support/obsidian/Obsidian Sandbox
.obsidian: exists
Metadata JSONs: 0/4
Not all metadata not found. Please run `osetup` and retry.
metadata.json String Length: no metadata.json
-------------------------------
WORKSPACE DATA
'workspace.json' exists
-------------------------------
SYSTEM
macOS: 13.3
Alfred: 5.1
-------------------------------
INSTALLED VERSION
Obsidian: .asar file missing
This Workflow: 3.8.2
Advanced URI Plugin: Advanced URI plugin not installed.
Metadata Extractor: Metadata Extractor plugin not installed.
-------------------------------
LATEST VERSION
Obsidian: 1.1.16 (Insider: 1.2.2)
This Workflow: 3.8.2
Advanced URI Plugin: 1.34.0
Metadata Extractor: 1.1.0
-------------------------------


Also, and this is tangential, but seeing as the main keyword is very small (a single character: o) it can run very often when unintended. Please make it configurable. The default can still be o, it’s just so user’s have a clear and easy way to change it.

Link to comment
Share on other sites

Advanced URI Plugin: Advanced URI plugin not installed.
Metadata Extractor: Metadata Extractor plugin not installed.

 

@vitor

Looks like you haven't installed the required plugins?

 

Sure, can make the keyword changable when I am back on my working machine.

 

Link to comment
Share on other sites

Ah, indeed, I now see those in the instructions. I remember reading points 2 through 4, somehow that one escaped me.

 

Unfortunately, no dice. Still get the same error after installing the plugins. I’ve made sure they are in the copied vault (as opposed to the Sandbox one). New oinfo:

 

-------------------------------
INTERNAL WORKFLOW CONFIGURATION
Vault Path: /Users/vm/Documents/Obsidian Vault
.obsidian: exists
Metadata JSONs: 0/4
Not all metadata not found. Please run `osetup` and retry.
metadata.json String Length: no metadata.json
-------------------------------
WORKSPACE DATA
'workspace.json' exists
-------------------------------
SYSTEM
macOS: 13.3
Alfred: 5.1
-------------------------------
INSTALLED VERSION
Obsidian: .asar file missing
This Workflow: 3.8.2
Advanced URI Plugin: 1.34.0
Metadata Extractor: 1.1.0
-------------------------------
LATEST VERSION
Obsidian: 1.1.16 (Insider: 1.2.2)
This Workflow: 3.8.2
Advanced URI Plugin: 1.34.0
Metadata Extractor: 1.1.0
-------------------------------
Edited by vitor
Link to comment
Share on other sites

Posted (edited)

Oh my, I just looked into it and realized there is a bug that occurs when running `osetup` on freshly created vault where a certain config files does not exist yet. Guess no one ever noticed/reported the issue since normally people use Obsidian for a bit before installing this workflow, and it only now occurs with you since you aren't running the workflow on a regular vault but on the sandbox/demo vault. :D 🙈

 

Anyway, I fixed the bug, it should be working now with the latest release (3.8.4)

 

It's working in 3.8.7

Edited by pseudometa
Link to comment
Share on other sites

This is now really close to inclusion. The Gallery page is done.


I did find another issue: when doing op to search for plugins and themes, it fails if the themes folder does not exist (which was true in my case). Manually creating an empty folder was enough to get it working. Once that’s out, I can include the workflow and make the page live.


The workflow and documentation are really thorough. Great work!

Link to comment
Share on other sites

Good catch, I guess not having installed any theme in your vault yet is another thing that's so rare, that it only happened when you used a sandbox vault :P Fixed in 3.8.9

 

Thank you for the kind words :)

Link to comment
Share on other sites

It’s alive! https://alfred.app/workflows/chrisgrieser/shimmering-obsidian/

 

Hoping to get Supercharged Citation Picker in soon.


By the way, I noticed you use the ObjC.unwrap pattern often. There is a shorter alternative: appending .js. Meaning ObjC.unwrap(str) is the same as str.js. That has absolutely no bearing on the submission, just something you might like to know.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...