Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing Empty .bib files (Microsoft) #34

Open
NautilusNow opened this issue Jun 11, 2020 · 5 comments
Open

Writing Empty .bib files (Microsoft) #34

NautilusNow opened this issue Jun 11, 2020 · 5 comments

Comments

@NautilusNow
Copy link

my Lyz extension allows the creation of the .bib files but they are totally empty. Sometimes when i click on "cite in lyx" absolutely nothing happens as well. Zotero is telling me the error is:
[JavaScript Error: "TypeError: ckre.exec(...) is null" {file: "chrome://lyz/content/lyz.js" line: 632}]

I am using Zotero 5.0.87 and the latest stable release of lyz.

Please help?

@wshanks
Copy link
Owner

wshanks commented Jun 12, 2020

Strange, I will try to see if I can reproduce this. Did LyZ work with you in the past?

@NautilusNow
Copy link
Author

Thank you. No, this is my first time trying to use Lyz.

@wshanks
Copy link
Owner

wshanks commented Jun 12, 2020

Hmm, looking at the code, the error message indicates that the regular expression did not find a match on the text produced when translating the item. Did you change the selected translator to something other than BibTeX in the settings menu? The regular expression is looking for an @ followed by some text, followed by a {, followed by some text (which it takes to be the cite key), and then a ,. There is no error handling for the case where this regular expression doesn't match.

You can right click the item, choose "Export item..." and export the item to a file to see what the text looks like for a given translator.

@NautilusNow
Copy link
Author

OK so it's working now. I tried exporting it like you said and that made me realise where I was going wrong. It was a stupid error on my part. Basically I was pressing the arrow beside the Zotero library catalogue of each reference and right-clicking on the PDF contained inside to select "cite in Lyx". Once I just select the zotero reference and try it again I have no issues and my .bib file is populated. Thanks for your assistance in this matter.

@wshanks
Copy link
Owner

wshanks commented Jun 12, 2020

I'm glad you figured it out. I created #35 as a follow up issue for the unhelpful error message you saw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants