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
522 stars 24 forks source link

no such column: zalttext #44

Closed yuletide closed 3 years ago

yuletide commented 3 years ago

To Reproduce

Steps/context to reproduce the behavior: Just updated to 3.4.0 and I now get this error when typing "n ", i never get the permission error nor see the "allow" button in security.

  1. Search for a note
  2. ...

no such column: zalttext


Please copy this entire text if submitting an error report. You may need to scroll.

panic: no such column: zalttext

goroutine 1 [running]:
main.PanicOnErr(...)
    github.com/sballin/alfred-search-notes-app/main.go:440
main.main()
    github.com/sballin/alfred-search-notes-app/main.go:453 +0x7f3

macOS: 10.15.7
Alfred: 4.3.4
Workflow: 3.4.0
CPU: x86_64h
Binary xattrs: 
Notes DB xattrs: com.apple.quarantine
Binary info: 0755 502/ay 20/staff
Notes DB info: 0644 502/ay 20/staff
Query: title ''
Accounts: iCloud, Mapbox

Copy and paste the full error text from any error messages. Screenshots can also help but may not show the full text.

Info

Fill out this information if it's not already included in the error text.

sballin commented 3 years ago

Thanks for the quick error report. I overlooked the differences in the Notes database between macOS 10.15 and macOS 11, so for now the solution would be to either upgrade macOS or downgrade the workflow version to 3.3.0. I'll try to fix this in the code...

autumnfjeld commented 3 years ago

I get the same error and I have macOS 11.1

Please copy this entire text if submitting an error report. You may need to scroll.

panic: no such column: zalttext

goroutine 1 [running]:
main.PanicOnErr(...)
github.com/sballin/alfred-search-notes-app/main.go:440
main.main()
github.com/sballin/alfred-search-notes-app/main.go:453 +0x7f3

macOS: 11.1
Alfred: 4.3.4
Workflow: 3.4.0
CPU: x86_64h
Binary xattrs: 
Notes DB xattrs: com.apple.quarantine
Binary info: 0755 501/autumn 20/staff
Notes DB info: 0644 501/autumn 20/staff
Query: title ''
Accounts: autumn.fjeld@gmail.com, iCloud

image

yuletide commented 3 years ago

Sounds good, for anyone else seeing this error the downgrade was easy and fixed things

sballin commented 3 years ago

Good to know that it also happens on macOS 11.1... Looks like I wrote code that works specifically on macOS >=11.4

sballin commented 3 years ago

Ok I've released 3.4.1 which should fix this error for everyone.

autumnfjeld commented 3 years ago

That was fast!!! bitmoji