chrisgrieser / shimmering-obsidian

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

[Bug]: Plugin can't search in notes after seemingly successful install #85

Closed scorchio closed 2 years ago

scorchio commented 2 years ago

Bug Description

I've installed the necessary dependencies and completed osetup which restarted Obsidian, but after that, the notes did not come up when typing o <something> into Alfred.

Please note that I'm running Alfred and Obsidian on a fairly out-of-date macOS, which might explain the issue.

(BTW, the doc referred in "I have read the Troubleshooting documentation" points to a wrong link - https://github.com/chrisgrieser/shimmering-obsidian/blob/main/documentation/Troubleshooting.md gives a 404 for me. It should be docs instead of documentation.)

Relevant Screenshot

No response

To Reproduce

No response

Debugging Log

[21:12:24.584] Logging Started...
[21:12:28.006] Shimmering Obsidian[Script Filter] Queuing argument '(null)'
[21:12:28.115] Shimmering Obsidian[Script Filter] Script with argv '(null)' finished
[21:12:28.116] ERROR: Shimmering Obsidian[Script Filter] Code 1: /Users/scor/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.718E5CD1-C8A3-4F7D-A50B-BEF3C0D7EAF0/scripts/o_search.js:2600:2628: script error: Error on line 82: SyntaxError: Unexpected token '.' (-2700)

Workflow Configuration

Képernyőfotó 2022-07-09 - 21 15 54

Version & System Information

-------------------------------
Metadata JSONs: 3/3
-------------------------------
INSTALLED VERSION
macOS: 10.14.6
Alfred: 4.6.7

Obsidian: 
This Workflow: 2.26.7
Advanced URI Plugin: 1.23.0
Metadata Extractor: 1.0.1
-------------------------------
LATEST VERSION
Obsidian: 0.14.15 (Insider: 0.15.5)
This Workflow: 2.26.7
Advanced URI Plugin: 1.23.0
Metadata Extractor: 1.0.1
-------------------------------

Make sure you have done the following

chrisgrieser commented 2 years ago

(BTW, the doc referred in "I have read the Troubleshooting documentation" points to a wrong link - https://github.com/chrisgrieser/shimmering-obsidian/blob/main/documentation/Troubleshooting.md gives a 404 for me. It should be docs instead of documentation.)

oh thx, fixed.


I am not entirely sure what causes this bug (though it shouldn't be the OS version). I have made a change that potentially fixes the issue. Could you update to 2.26.8 and try again? If it still does not work, could you attach the debugging log from trying the o-search again?

scorchio commented 2 years ago

Unfortunately it does not work yet on 2.26.8:

[20:32:24.536] Logging Started...
[20:32:25.738] Shimmering Obsidian[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.718E5CD1-C8A3-4F7D-A50B-BEF3C0D7EAF0%3E5FECA0A1-6B1F-419D-8159-77F3A96C540F)] Queuing argument '(null)'
[20:32:25.853] Shimmering Obsidian[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.718E5CD1-C8A3-4F7D-A50B-BEF3C0D7EAF0%3E5FECA0A1-6B1F-419D-8159-77F3A96C540F)] Script with argv '(null)' finished
[20:32:25.854] ERROR: Shimmering Obsidian[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.718E5CD1-C8A3-4F7D-A50B-BEF3C0D7EAF0%3E5FECA0A1-6B1F-419D-8159-77F3A96C540F)] Code 1: /Users/scor/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.718E5CD1-C8A3-4F7D-A50B-BEF3C0D7EAF0/scripts/o_search.js:2661:2712: script error: Error on line 83: SyntaxError: Unexpected token '.' (-2700)
chrisgrieser commented 2 years ago

This should be fixed with the latest release (version 3, requiring Alfred 5). If not, please re-open!