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

[Bug]: cannot paste bibliography #56

Closed kzssc closed 1 month ago

kzssc commented 1 month ago

Bug Description

the bibliography is not pasted when triggered.

Relevant Screenshot

No response

To Reproduce

choose any entry -> hold option+cmd+enter -> does not paste. / pastepin receives no input from workflow.

Debugging Log

[10:00:29.779 pm] Supercharged Citation Picker[Script Filter] Passing output 'susskind2020WorldWorkTechnology' to Run Script
[10:00:29.780 pm] ERROR: Supercharged Citation Picker[Run Script] Task '/Users/vpchris/SynologyDrive/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.781461E7-FDDD-4C5D-AF98-0EDB380512DD/scripts/paste-full-bibliography.sh' failed with reason 'launch path not accessible'
[10:00:29.781 pm] Supercharged Citation Picker[Run Script] Processing complete
[10:00:29.792 pm] Supercharged Citation Picker[Run Script] Passing output '' to Copy to Clipboard

Sample BibTeX Entries

@book{1992SelfEmploymentPrograms,
  title = {Self {{Employment Programs}} for {{Unemployed Workers}}},
  year = {1992},
  publisher = {{U.S. Dept. of Labor, Employment and Training Administration, Unemployment Insurance Service}},
  address = {Washington, D.C.},
  langid = {english},
  annotation = {OCLC: 30034279},
  file = {/Users/vpchris/Zotero/storage/J8X8KID2/Wandner et al 1992 Self Employment Programs for Unemployed Workers.pdf}
}

@book{2002RightSelfEmployment,
  title = {Right to {{Self Employment Bill}}},
  year = {2002},
  publisher = {House of Parliament, Great Britain},
  isbn = {978-0-215-70097-1},
  langid = {english},
  keywords = {5},
  annotation = {OCLC: 1116137684},
  file = {/Users/vpchris/Zotero/storage/7JL54C5T/Great Britain et al 2002 Right to Self Employment Bill.pdf}

Buffer Files

last_version.txt buffer.json

Workflow Configuration

image

Checklist

chrisgrieser commented 1 month ago

I added some improved logging. Please download the latest release and try again: https://github.com/chrisgrieser/alfred-bibtex-citation-picker/releases/download/11.15.6/alfred-bibtex-citation-picker.alfredworkflow

Also, please run which -a pandoc in the terminal and tell me what the output is?

kzssc commented 1 month ago

issue fixed in 11.15.6 (not sure why).

re terminal:

/opt/homebrew/bin/pandoc /usr/local/bin/pandoc

(deleting the latter one now haha!)

chrisgrieser commented 1 month ago

okay, in that case, it is likely that you deleted a file of the workflow on your end. The error launch path not accessible normally only occurs when a file Alfred is trying to run a file that is missing. Probably you accidentally deleted something when you were checking out the workflow. Please do not change anything in the workflow's folder, since that usually breaks Alfred workflows and is often also incredibly time-consuming to figure out.