chrisgrieser / alfred-bibtex-citation-picker

Picker for markdown-based citations and lightweight reference manager for BibTeX libraries.
MIT License
145 stars 8 forks source link

Workflow is empty / failing to find entries #9

Closed uncouthregions closed 2 years ago

uncouthregions commented 2 years ago

Bug Description

When I invoke the workflow, it no longer pulls up any entries from my .bib file. It was working perfectly until yesterday, and to the best of my knowledge I haven't changed any settings in Alfred, Zotero, or Better Bibtex.

Trying Force Buffer Reload also fails (as seen in log below).

Relevant Screenshot

No response

To Reproduce

No response

Debugging Log

[12:02:16.373] Logging Started...
[12:02:17.789] Supercharged Citation Picker[Hotkey] Processing complete
[12:02:17.795] Supercharged Citation Picker[Hotkey] Passing output '' to Script Filter
[12:02:17.804] Supercharged Citation Picker[Script Filter] Queuing argument '(null)'
[12:02:17.818] Supercharged Citation Picker[Script Filter] Script with argv '(null)' finished

Additional log when I try to Force Buffer Reload:

[12:03:20.445] Supercharged Citation Picker[List Filter] Processing complete
[12:03:20.447] Supercharged Citation Picker[List Filter] Passing output 'buffer_reload' to Conditional
[12:03:20.449] Supercharged Citation Picker[Conditional] Processing complete
[12:03:20.450] Supercharged Citation Picker[Conditional] Passing output 'buffer_reload' to Arg and Vars
[12:03:20.450] Supercharged Citation Picker[Arg and Vars] Processing complete
[12:03:20.451] Supercharged Citation Picker[Arg and Vars] Passing output '' to Call External Trigger
[12:03:20.451] Supercharged Citation Picker[External] Processing complete
[12:03:20.452] Supercharged Citation Picker[External] Passing output '' to Script Filter
[12:03:20.459] Supercharged Citation Picker[Script Filter] Queuing argument '(null)'
[12:03:20.636] Supercharged Citation Picker[Script Filter] Script with argv '(null)' finished
[12:03:20.639] STDERR: Supercharged Citation Picker[Script Filter] 2022-06-03 12:03:20.631 osascript[4243:101082] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSFileManager fileSystemRepresentationWithPath:]: nil or empty path argument'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000193cdd198 __exceptionPreprocess + 240
    1   libobjc.A.dylib                     0x0000000193a27e04 objc_exception_throw + 60
    2   Foundation                          0x0000000194ae8544 -[NSFileManager fileSystemRepresentationWithPath:] + 620
    3   JavaScriptAppleEvents               0x0000000202169924 __JSAEPathConstructor_block_invoke + 240
    4   CoreFoundation                      0x0000000193c3ddb4 __invoking___ + 148
    5   CoreFoundation                      0x0000000193c3dc2c -[NSInvocation invoke] + 468
    6   JavaScriptCore                      0x00000001ac5f3938 _ZN3JSC24ObjCCallbackFunctionImpl4callEP9JSContextP13OpaqueJSValuemPKPKS3_PS6_ + 464
    7   JavaScriptCore                      0x00000001ac5f3334 _ZN3JSCL34objCCallbackFunctionCallAsFunctionEPK15OpaqueJSContextP13OpaqueJSValueS4_mPKPKS3_PS6_ + 256
    8   JavaScriptCore                      0x00000001ac5f14bc _ZN3JSCL24callObjCCallbackFunctionEPNS_14JSGlobalObjectEPNS_9CallFrameE + 384
    9   JavaScriptCore                      0x00000001ac5869f8 llint_function_for_construct_arity_checkTagGateAfter + 160500
    10  JavaScriptCore                      0x00000001ac583298 llint_function_for_construct_arity_checkTagGateAfter + 146324
    11  JavaScriptCore                      0x00000001ac5591d0 vmEntryToJavaScriptGateAfter + 0
    12  JavaScriptCore                      0x00000001accc0008 _ZN3JSC11Interpreter14executeProgramERKNS_10SourceCodeEPNS_14JSGlobalObjectEPNS_8JSObjectE + 1188
    13  JavaScriptCore                      0x00000001acf36814 _ZN3JSC8evaluateEPNS_14JSGlobalObjectERKNS_10SourceCodeENS_7JSValueERN3WTF8NakedPtrINS_9ExceptionEEE + 236
    14  JavaScriptCore                      0x00000001ac0a26e4 JSEvaluateScript + 584
    15  JavaScriptCore                      0x00000001ac5b2704 -[JSContext evaluateScript:withSourceURL:] + 248
    16  JavaScriptOSA                       0x00000002021c3fd8 -[JSStorage(JSProcedures) evaluateScript:inContextID:] + 548
    17  JavaScriptOSA                       0x00000002021c798c -[JSStorage(JSProcedures) handleEvent:inContext:modeFlags:resultingResultID:] + 572
    18  CoreFoundation                      0x0000000193c3ddb4 __invoking___ + 148
    19  CoreFoundation                      0x0000000193c3dc2c -[NSInvocation invoke] + 468
    20  JavaScript                          0x000000010432b78c JavaScriptComponent + 1208
    21  OpenScripting                       0x00000001ac067a84 OSAExecuteEvent + 76
    22  osascript                           0x0000000102255618 osascript + 22040
    23  dyld                                0x00000001022b108c start + 520
)
libc++abi: terminating with uncaught exception of type NSException

Sample BibTeX Entries

@book{AhmedQueerPhenomenology2006,
  title = {Queer {{Phenomenology}}: {{Orientations}}, {{Objects}}, {{Others}}},
  shorttitle = {Queer {{Phenomenology}}},
  author = {Ahmed, Sara},
  year = {2006},
  publisher = {{Duke University Press}},
  address = {{Durham, NC}},
  file = {/Users/jonathanmitchell/Library/CloudStorage/Dropbox/Academia/PDFs/AhmedQueerPhenomenology2006.pdf}
}

@article{Al-SajiMemoryAnother2004,
  title = {The Memory of Another Past: {{Bergson}}, {{Deleuze}} and a New Theory of Time},
  shorttitle = {The Memory of Another Past},
  author = {{Al-Saji}, Alia},
  year = {2004},
  journal = {Continental Philosophy Review},
  volume = {37},
  number = {2},
  pages = {203--239},
  file = {/Users/jonathanmitchell/Library/CloudStorage/Dropbox/Academia/PDFs/Al-SajiMemoryAnother2004.pdf}
}

@article{Al-SajiMerleauPontyBergson2001,
  title = {Merleau-{{Ponty}} and {{Bergson}}: {{Bodies}} of {{Expression}} and {{Temporalities}} in the {{Flesh}}},
  shorttitle = {Merleau-{{Ponty}} and {{Bergson}}},
  author = {{Al-Saji}, Alia},
  year = {2001},
  journal = {Philosophy Today},
  volume = {45},
  pages = {110--123},
  file = {/Users/jonathanmitchell/Library/CloudStorage/Dropbox/Academia/PDFs/Al-SajiMerleauPontyBergson2001.pdf}
}

Buffer Files

I get a 'We don't support that file type' message when I try to upload these.

When I open them in a text editor, buffer.json is empty, and last_version contains the text '9.5.3'.

Workflow Configuration

Screenshot 2022-06-03 at 12 07 16

Checklist

chrisgrieser commented 2 years ago

okay thanks! I have most likely found the cause and fixed it in the latest update

uncouthregions commented 2 years ago

Fantastic, thanks. It's back to working perfectly!