chrisgrieser / alfred-bibtex-citation-picker

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

[Bug]: Not showing my references #6

Closed DesBw closed 2 years ago

DesBw commented 2 years ago

Bug Description

Even if I have put the path to my bib file, the workflow is not finding my references. I am faced with just empty Alfred.

Relevant Screenshot

No response

To Reproduce

No response

Debugging Log

[21:41:56.846] Logging Started...
[21:42:02.339] Supercharged Citation Picker[Hotkey] Processing complete
[21:42:02.356] Supercharged Citation Picker[Hotkey] Passing output '' to Script Filter
[21:42:02.456] Supercharged Citation Picker[Script Filter] Queuing argument '(null)'
[21:42:02.685] Supercharged Citation Picker[Script Filter] Script with argv '(null)' finished

Sample BibTeX Entries

@misc{Workneh2016b,
    author = {Desalegn Workneh},
    date-added = {2020-10-30 07:48:54 +0000},
    date-modified = {2020-10-30 07:49:50 +0000},
    keywords = {Amharic, gerund, verbal noun},
    month = {December},
    title = {Verbal Nouns in Amharic, Part III},
    url = {https://ling.auf.net/lingbuzz/005531},
    year = {2016}}

@misc{Workneh2016a,
    author = {Desalegn Workneh},
    date-added = {2020-10-30 07:47:28 +0000},
    date-modified = {2020-10-30 07:48:43 +0000},
    keywords = {verbal noun, gerund, Amharic},
    month = {November},
    title = {Verbal Nouns in Amharic, part II},
    url = {https://ling.auf.net/lingbuzz/005530},
    year = {2016}}

Buffer Files

Archive.zip

Workflow Configuration

I don't make a change on the setting except assigning the path the bib file and a hot key in the workflow.

image

Checklist

chrisgrieser commented 2 years ago

I don't make a change on the setting except assigning the path the bib file and a hot key in the workflow.

could you share that BibTex file path?

DesBw commented 2 years ago

I have tried different paths: this one of them: /Users/dwo000/Library/texmf/bibtex/bib/β.bib

I have also tried to put just the folder where I keep my bib files: /Users/dwo000/Library/texmf/bibtex/bib

Worried about the folder permission, I have also tried to put the bib file in my desktop /Users/dwo000/Desktop/ww.bib with no avail.

It doesn't work. I am on MacOS10.13, by the way: if the workflow has some assumptions about the OS.

chrisgrieser commented 2 years ago

It's supposed to be the path to the bib file, so the first is correct.

However, it could be that the beta symbol leads to since issues since it is a non standard character. Build you try again by renaming the file and then running "scp - force reload library"?

If that does not work, open the debugging log, and then run the command for force reloading. Then, attach the debugging log that is created for the force reload.

DesBw commented 2 years ago

[16:49:01.095] Logging Started... [16:50:04.320] Supercharged Citation Picker[List Filter] Processing complete [16:50:04.347] Supercharged Citation Picker[List Filter] Passing output 'buffer_reload' to Conditional [16:50:04.352] Supercharged Citation Picker[Conditional] Processing complete [16:50:04.356] Supercharged Citation Picker[Conditional] Passing output 'buffer_reload' to Arg and Vars [16:50:04.362] Supercharged Citation Picker[Arg and Vars] Processing complete [16:50:04.366] Supercharged Citation Picker[Arg and Vars] Passing output '' to Call External Trigger [16:50:04.372] Supercharged Citation Picker[External] Processing complete [16:50:04.376] Supercharged Citation Picker[External] Passing output '' to Script Filter [16:50:04.738] Supercharged Citation Picker[Script Filter] Queuing argument '(null)' [16:50:06.029] Supercharged Citation Picker[Script Filter] Script with argv '(null)' finished [16:50:06.088] STDERR: Supercharged Citation Picker[Script Filter] ./scripts/buffer_writer.js:1185:1236: execution error: Error on line 28: SyntaxError: Unexpected token '.' (-2700)

DesBw commented 2 years ago

I am pretty sure the Beta symbol is not the cause because I have put other sources as well; with the same result.

chrisgrieser commented 2 years ago

well, there seems to be a problem with reading one of the script files. However, I have no idea why, since it works without any issues on my end.

I can only guess that it has something to do with you using an older version of mac OS. I tested it on both devices I own, one on 12.3 and another one on 11.6 where it works fine.

While the workflow itself does not have any explicit assumptions about the OS, it could be that something about macOS' JXA has changed. As since I do not have a device on an OS as old as 10.3, I unfortunately cannot check whether that is the case.

DesBw commented 2 years ago

I tried to update the node.js and Java.

I am still getting the same error.

Thank you for the help dear @chrisgrieser. I will try to use other workflows then.

chrisgrieser commented 2 years ago

yeah, the workflow does not use Node.js nor Java, but Apple's native implementation of JavaScript, JXA. So likely only an macOS update will help, sorry.

DesBw commented 2 years ago

Texstudio has great citation system already. I will use that one to insert my citations. I was trying your workflow mostly out of curiosity, and because it appears very fast.

Thanks.

mbac commented 2 years ago

Hi,

I'm having the exact same issue here. The path to my library is:

/Users/marco/Documents/zotero-library.bib

The log shows:

[01:46:53.979] Logging Started...
[01:47:01.675] Supercharged Citation Picker[Hotkey] Processing complete
[01:47:01.680] Supercharged Citation Picker[Hotkey] Passing output '' to Script Filter
[01:47:01.704] Supercharged Citation Picker[Script Filter] Queuing argument '(null)'
[01:47:01.717] Supercharged Citation Picker[Script Filter] Script with argv '(null)' finished
[01:47:10.191] Supercharged Citation Picker[Script Filter] Queuing argument '(null)'
[01:47:10.268] Supercharged Citation Picker[Script Filter] Script with argv '(null)' finished

I'm on a 2020 Macbook Pro running macOS 12.4 (Monterey).

Thanks!

chrisgrieser commented 2 years ago

@mbac Your debugging log shows a different issue, so you have a different bug. Please open a separate bug report, since the bug report form als for various kinds of information that I need to look into the problem