sballin / alfred-search-notes-app

Use Alfred to quickly open notes in iCloud/Apple Notes.
https://www.alfredforum.com/topic/11716-search-appleicloud-notes/
MIT License
502 stars 23 forks source link

Alfred Search Notes Worflow Error #43

Closed petemaunder91 closed 2 years ago

petemaunder91 commented 3 years ago

To Reproduce Steps to reproduce the behavior:

  1. Type 'n' into Alfred search bar

Info

Additional context After typing "n" into Alfred I get the below error. It had been working perfectly up until about a week or so ago.

image

sballin commented 3 years ago

What shows up in the error log and debug log?

petemaunder91 commented 3 years ago

Error Log:

/Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/8BF1766F-EC94-4CF2-BD10-53D0CDD08883: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/CF857E17-6DE2-4E5B-A7E0-935A2F1087D6: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/1D94E1A9-7B59-4356-9CDD-A023F1D41B08: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/23DFE0BE-7544-4241-A048-04361FBDBD44: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/B2C738CC-288C-4B91-A95D-6202B566B3F0: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D2C8BB39-8F0E-44A1-953E-34BF830A2DEC: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/57C59F42-6109-4FAD-8FF1-1481E3F7B9FF: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D88AAB54-48EC-4AC1-A943-39810BE1398D: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory

I'm not sure how to get the debug log.

Thanks, Pete

On Wed, 23 Jun 2021 at 09:05, Sean Ballinger @.***> wrote:

What shows up in the error log and debug log?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sballin/alfred-search-notes-app/issues/43#issuecomment-866393371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUSUPLG7YYGDT3ARGHOGW7TTUEJKFANCNFSM47ETS4EQ .

sballin commented 3 years ago

Maybe you moved the search_notes binary to the trash? It’s one of the macOS dialog buttons when you first try to run the workflow, but you don’t want to press it. See the “Required setup” part of the readme. The easiest way to fix this is probably to reinstall the workflow.

On Jun 22, 2021, at 7:21 PM, petemaunder91 @.***> wrote:

 Error Log:

/Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/8BF1766F-EC94-4CF2-BD10-53D0CDD08883: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/CF857E17-6DE2-4E5B-A7E0-935A2F1087D6: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/1D94E1A9-7B59-4356-9CDD-A023F1D41B08: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/23DFE0BE-7544-4241-A048-04361FBDBD44: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/B2C738CC-288C-4B91-A95D-6202B566B3F0: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D2C8BB39-8F0E-44A1-953E-34BF830A2DEC: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/57C59F42-6109-4FAD-8FF1-1481E3F7B9FF: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D88AAB54-48EC-4AC1-A943-39810BE1398D: line 2: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes: No such file or directory

I'm not sure how to get the debug log.

Thanks, Pete

On Wed, 23 Jun 2021 at 09:05, Sean Ballinger @.***> wrote:

What shows up in the error log and debug log?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sballin/alfred-search-notes-app/issues/43#issuecomment-866393371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUSUPLG7YYGDT3ARGHOGW7TTUEJKFANCNFSM47ETS4EQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

merchako commented 3 years ago

I'm also having this problem, even after reinstalling the workflow and following the required setup instructions. Sometimes I get the option to allow the binary in the Security and Privacy preference pane, and sometimes I don't. Even when I get the option and allow it, I still get this error every time I start an Alfred query with "n".

Big Sur 11.4. Mac mini M1 2020. I do love this workflow. Thank you for all of your contributions!

sballin commented 3 years ago

Here are some related issues: https://github.com/sballin/alfred-search-notes-app/issues/31#issuecomment-738567854 and https://github.com/sballin/alfred-search-notes-app/issues/39#issuecomment-855355859.

You can also try this beta version (will still say version number 3.3.0): Search Notes.alfredworkflow.zip

merchako commented 3 years ago

39 (comment) solved it for me. It seems Alfred lost disk access or didn't get it, and I didn't realize it. Thank you.

sballin commented 3 years ago

@petemaunder91 what kind of accounts are you using to store your notes (iCloud/on my mac/email)?

You could try moving this directory to the trash: /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/8BF1766F-EC94-4CF2-BD10-53D0CDD08883

petemaunder91 commented 3 years ago

Stored on iCloud.

I have tried uninstalling and reinstalling the workflow. The weird thing is that it is still working on the Macbook.

I went to this directory: /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/ But the only folders within that were applescript extensions_tmp updates workflow data (all of which were empty)

Thanks, Pete

On Wed, 30 Jun 2021 at 04:56, Sean Ballinger @.***> wrote:

@petemaunder91 https://github.com/petemaunder91 what kind of accounts are you using to store your notes (iCloud/on my mac/email)?

You could try moving this directory to the trash: /Users/pete/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/8BF1766F-EC94-4CF2-BD10-53D0CDD08883

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sballin/alfred-search-notes-app/issues/43#issuecomment-870837196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUSUPLGTKS6DPICDNKGKQG3TVIJNXANCNFSM47ETS4EQ .

sballin commented 3 years ago

First I would suggest upgrading to version 3.4.0 that was just released, as the error messages are a little more helpful.

If the error is still happening, can you verify that this file exists: /Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes/search_notes

and if it is, you could try these commands in your terminal:


cd "/Users/pete/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9CB1BE6-EF07-4698-A2E1-A17A9CEA329E/search_notes"

./search_notes title something