retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.27k stars 284 forks source link

CSL YAML export appears broken in recent releases of Juris-M #2324

Closed egrebn closed 1 year ago

egrebn commented 1 year ago

When I attempt to export an item to Better CSL YAML, Better BibTeX generates an empty file and quits with an error window "An error occurred while trying to export the selected file." The problems seems to have only appeared in the most recent releases. I have automatic updates enabled and have experienced it over the last week. Rolling back to 6.4.2 resolves the problem.

I have tried to submit a debug log, but somehow it hasn't worked. I am therefore pasting it here.

log ``` (4)(+0014144): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [20226, ''] (4)(+0000048): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [20226, ''] (4)(+0000005): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [20226, ''] (4)(+0000006): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [20226, ''] (4)(+0000002): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [20226, ''] (3)(+0001737): Translate: All translator detect calls and RPC calls complete: (3)(+0000002): TEI: 25 (3)(+0000000): Zotero RDF: 25 (3)(+0000001): BetterBibTeX JSON: 49 (3)(+0000000): Better BibLaTeX: 50 (3)(+0000002): Bibliontology RDF: 50 (3)(+0000001): MODS: 50 (3)(+0000000): Simple Evernote Export: 50 (3)(+0000001): Better BibTeX Citation Key Quick Copy: 100 (3)(+0000000): Better CSL JSON: 100 (3)(+0000001): BibLaTeX: 100 (3)(+0000000): Bookmarks: 100 (3)(+0000001): Citation graph: 100 (3)(+0000000): Collected notes: 100 (3)(+0000001): CSL JSON: 100 (3)(+0000000): CSV: 100 (3)(+0000000): Endnote XML: 100 (3)(+0000001): Refer/BibIX: 100 (3)(+0000000): RefWorks Tagged: 100 (3)(+0000001): RIS: 100 (3)(+0000000): Scannable Cite: 100 (3)(+0000000): Unqualified Dublin Core RDF: 100 (3)(+0000001): Wikipedia Citation Templates: 100 (3)(+0000000): Better BibTeX: 199 (3)(+0000001): BibTeX: 200 (3)(+0000000): COinS: 310 (3)(+0000000): Better CSL YAML: 800 (3)(+0000052): {better-bibtex} +16008 window-loaded chrome://zotero/content/exportOptions.xul (3)(+0000038): BBT: loading ExportOptions (3)(+0000004): BBT: ExportOptions loaded (3)(+0004411): {better-bibtex} +4452 worker export skipped, user has chosen foreground export for Better CSL YAML (4)(+0000002): Translate: Binding sandbox to http://www.example.com/ (3)(+0000005): Getting contents of /home/yegor/JurismDB/translators/Better CSL YAML.js (4)(+0000107): Translate: Parsing code for Better CSL YAML (0f238e69-043e-4882-93bf-342de007de19, 2022-11-22) (3)(+0000010): Translate: Beginning translation with Better CSL YAML (5)(+0000009): Translate: Running handler 0 for itemDone (5)(+0000001): Translate: Running handler 0 for itemDone (1)(+0000011): TypeError: Zotero.Utilities.Item is undefined doExport@chrome://zotero-better-bibtex/content/better-bibtex.js:269158:13 generateCSLYAML@chrome://zotero-better-bibtex/content/better-bibtex.js:269402:5 generateCSLYAML@chrome://zotero-better-bibtex/content/better-bibtex.js:269745:7 importObject/attachTo[key] eval:1282:5 rest@chrome://zotero/content/xpcom/translation/translate.js:1361:28 Zotero.Translate.Base.prototype._translateTranslatorLoaded eval:1282:5 rest@chrome://zotero/content/xpcom/translation/translate.js:1361:28 Zotero.Translate.Base.prototype._translateTranslatorLoaded resource://zotero/bluebird/util.js:16:16 module.exports/Promise.prototype._settlePromiseFromHandler@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:512:13 module.exports/Promise.prototype._settlePromise@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:569:13 module.exports/Promise.prototype._settlePromise0@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:614:5 module.exports/Promise.prototype._settlePromises@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:693:13 Async.prototype._drainQueue@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:133:13 Async.prototype._drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:143:5 Async/this.drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:17:9 url => /home/yegor/Documents/Exported Items.yaml downloadAssociatedFiles => true automaticSnapshots => true (5)(+0000001): Translate: Running handler 0 for error (5)(+0000003): Translate: Running handler 0 for done (3)(+0000002): Running unlock callbacks (3)(+0000001): Alert: An error occurred while trying to export the selected file. (1)(+0000073): TypeError: Zotero.Utilities.Item is undefined doExport@chrome://zotero-better-bibtex/content/better-bibtex.js:269158:13 generateCSLYAML@chrome://zotero-better-bibtex/content/better-bibtex.js:269402:5 generateCSLYAML@chrome://zotero-better-bibtex/content/better-bibtex.js:269745:7 importObject/attachTo[key] eval:1282:5 rest@chrome://zotero/content/xpcom/translation/translate.js:1361:28 Zotero.Translate.Base.prototype._translateTranslatorLoaded resource://zotero/bluebird/util.js:16:16 module.exports/Promise.prototype._settlePromiseFromHandler@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:512:13 module.exports/Promise.prototype._settlePromise@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:569:13 module.exports/Promise.prototype._settlePromise0@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:614:5 module.exports/Promise.prototype._settlePromises@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:693:13 Async.prototype._drainQueue@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:133:13 Async.prototype._drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:143:5 Async/this.drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:17:9 From previous event: captureStackTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:829:23 CapturedTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:721:5 longStackTracesCaptureStackTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:400:19 module.exports/Promise.method/<@resource://zotero/loader.jsm -> resource://zotero/bluebird/method.js:13:9 Zotero.Translate.Export.prototype.translate@chrome://zotero/content/xpcom/translation/translate.js:2578:12 Zotero_Translate_Export_prototype_translate@chrome://zotero-better-bibtex/content/better-bibtex.js:269933:12 trampoline@chrome://zotero-better-bibtex/content/better-bibtex.js:601:66 Zotero_File_Exporter.prototype.save@chrome://zotero/content/fileInterface.js:101:3 (3)(+0000023): {better-bibtex} +251 window-loaded chrome://global/content/commonDialog.xul (3)(+0003473): HTTP POST "[JavaScript Error: "Localized …" (10760 chars) to https://our.law.nagoya-u.ac.jp/updater/report?debug=1 (3)(+0000023): POST body gzipped from 10760 to 2119; 80% savings (3)(+0000261): HTTP POST https://our.law.nagoya-u.ac.jp/updater/report?debug=1 succeeded with 200 ```
retorquere commented 1 year ago

I'll see what I can do, but Zotero and Juris-M are starting to diverge, and it with Zotero 7, BBT will no longer be compatible with Juris-M. Unless someone picks up on Juris-M to close the gap, but that seems unlikely.

retorquere commented 1 year ago

You will have to downgrade to 6.7.36. I have marked new versions as no longer compatible with Juris-M, sorry. Juris-M's development has stalled.

egrebn commented 1 year ago

That is sad news, of course, but understandable. Thank you!

-- Dr Yegor Grebnev 葛覺智 Assistant Professor, BNU-HKBU United International College Distinguished Associate Research Fellow, Beijing Normal University (Zhuhai) My new book: Mediation of Legitimacy in Early China: A Study of the Neglected Zhou Scriptures and the Grand Duke Traditions

------- Original Message ------- On Saturday, November 26th, 2022 at 6:46 AM, Emiliano Heyns @.***> wrote:

You will have to downgrade to 6.7.36. I have marked new versions as no longer compatible with Juris-M, sorry. Juris-M's development has stalled.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>