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

zbb (quietly) chokes on this *.bib #664

Closed
maxheld83 opened this issue May 15, 2017 · 7 comments
Closed

zbb (quietly) chokes on this *.bib #664

maxheld83 opened this issue May 15, 2017 · 7 comments
Labels

Comments

@maxheld83
Copy link

ac3.bib and ac2.bib are part of the same BibDesk-generated *.bib.
ac2.bib appears to be imported just fine; in the Extra field I find, as expected:

bibtex: Acemoglu.Johnson.ea2005InstitutionsasFundamental 
bibtex[class=ODCD;date-added=2015-04-15 15:21:54 +0000;date-modified=2017-05-15 13:51:46 +0000;rating=4]

By contrast, ac3.bib, which also has Extra-worthy information is also imported (maybe by the default Bibtex translator?), but carries no Extra after import (though it should).

My interpretation of this unexpected behavior for ac3.bib: For some reason, the ZBB translator chokes and fails over to the default translator, which doesn't do Extras.

Here is the working ac2.bib:

%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/

%% Created for Maximilian Held at 2017-05-15 16:13:47 +0200


%% Saved with string encoding Unicode (UTF-8)


@string{macro = {definition}}

@string{no-mendeley = {mendeley is empty}}


@incollection{Acemoglu.Johnson.ea2005InstitutionsasFundamental,
	Author = {Acemoglu, Daron and Johnson, Simon and Robinson, James A.},
	Booktitle = {Handbook of Economic Growth},
	Chapter = {6},
	Class = {ODCD},
	Date-Added = {2015-04-15 15:21:54 +0000},
	Date-Modified = {2017-05-15 13:51:46 +0000},
	Editor = {Aghion, Philippe and Durlauf, Steven N.},
	Issn = {1574-0684},
	Keywords = {Institutions},
	Pages = {385 - 472},
	Publisher = {Elsevier},
	Rating = {4},
	Timestamp = {2012.07.12},
	Title = {Institutions as a Fundamental Cause of Long-Run Growth},
	Volume = {1, Part A},
	Year = {2005}}

and the failing ac3.bib:

%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/

%% Created for Maximilian Held at 2017-05-15 16:15:14 +0200


%% Saved with string encoding Unicode (UTF-8)


@string{macro = {definition}}

@string{no-mendeley = {mendeley is empty}}


@article{Acemoglu2003Whynotpolitical,
	Author = {Acemoglu, Daron},
	Date-Added = {2015-04-15 15:21:27 +0000},
	Date-Modified = {2017-05-15 14:14:57 +0000},
	Doi = {10.1016/j.jce.2003.09.003},
	File = {Acemoglu2003Whynotpolitical.pdf:Acemoglu2003Whynotpolitical.pdf:PDF;Acemoglu2003Whynotpolitical.pdf:Acemoglu2003Whynotpolitical.pdf:PDF;Acemoglu2003Whynotpolitical.pdf:Acemoglu2003Whynotpolitical.pdf:PDF;Acemoglu2003Whynotpolitical.pdf:Acemoglu2003Whynotpolitical.pdf:PDF;Acemoglu2003Whynotpolitical.pdf:Acemoglu2003Whynotpolitical.pdf:PDF;Acemoglu2003Whynotpolitical.pdf:Acemoglu2003Whynotpolitical.pdf:PDF;Acemoglu2003Whynotpolitical.pdf:Acemoglu2003Whynotpolitical.pdf:PDF},
	Issn = {0147-5967},
	Jlprojects = {spatial_elections, continuous_opinion_dynamics},
	Journal = {Journal of Comparative Economics},
	Keywords = {Political economy},
	Number = {4},
	Pages = {620 - 652},
	Pdf = {Acemoglu2003Whynotpolitical.pdf},
	Project = {ODCD},
	Rating = {4},
	Timestamp = {2011.06.01},
	Title = {Why not a political Coase theorem? Social conflict, commitment, and politics},
	Url = {http://www.sciencedirect.com/science/article/pii/S014759670300101X},
	Volume = {31},
	Year = {2003},
	Abstract = {Do societies choose inefficient policies and institutions? An extension of the Coase theorem to politics would suggest the answer is no. This paper discusses various approaches to political economy and develops the argument that there are strong empirical and theoretical grounds for believing that inefficient policies and institutions are prevalent. We conclude that these inefficient institutions and policies are chosen because they serve the interests of politicians or social groups that hold political power at the expense of the rest. The theoretical case depends on commitment problems inherent in politics; parties holding political power cannot make commitments to bind their future actions because there is no outside agency with the coercive capacity to enforce such arrangements. Journal of Comparative Economics 31 (4) (2003) 620-652.},
	Bdsk-Url-1 = {http://www.sciencedirect.com/science/article/pii/S014759670300101X},
	Bdsk-Url-2 = {http://dx.doi.org/10.1016/j.jce.2003.09.003}}

Both are also in this zip file.

Archive.zip

@maxheld83
Copy link
Author

maxheld83 commented May 15, 2017

If that's helpful, here's what "Report Better BibTex Errors" says, when applied to the offending entry:

Application context

Platform: MacIntel Intel Mac OS X 10.12
Application: Zotero 4.0.29.15 en-US
Zotero standalone: 4.0.29.15
Active addons:
  Adobe Acrobat NPAPI Plug-in, Version 17.009.20044 (plugin): 17.009.20044
  Google Talk Plugin (plugin): 5.41.3.0
  Google Talk Plugin Video Renderer (plugin): 5.41.3.0
  Java Applet Plug-in (plugin): Java 8 Update 131 build 11
  Silverlight Plug-In (plugin): 5.1.50901.0
  Zotero Better Bib(La)Tex (extension): 1.6.96
  Zotero LibreOffice Integration (extension): 3.5.12.SA.4.0.29.15
  Zotero Word for Mac Integration (extension): 3.5.14.SA.4.0.29.15
  ZotFile (extension): 4.2.6
Settings:
  asciiBibLaTeX = false
  asciiBibTeX = true
  attachmentsNoMetadata = false
  autoAbbrev = false
  autoAbbrevStyle = "http://www.zotero.org/styles/cell"
  autoExport = "idle"
  autoExportIdleWait = 10
  biblatexExtendedDateFormat = false
  biblatexExtendedNameFormat = false
  bibtexParticleNoOp = false
  bibtexURL = "off"
  cacheFlushInterval = 5
  caching = true
  citeCommand = "cite"
  citekeyFold = true
  citekeyFormat = "[zotero]"
  confirmCacheResetSize = 1000
  csquotes = ""
  debug = false
  defaultDateParserLocale = ""
  DOIandURL = "both"
  itemObserverDelay = 100
  jabrefGroups = 4
  jurismPreferredLanguage = "zh-alalc97"
  keyConflictPolicy = "keep"
  langID = "babel"
  pinCitekeys = "manual"
  postscript = ""
  preserveBibTeXVariables = false
  qualityReport = false
  quickCopyMode = "latex"
  quickCopyPandocBrackets = true
  rawImports = false
  scanCitekeys = true
  showCitekeys = false
  showItemIDs = false
  skipFields = ""
  skipWords = "a,ab,aboard,about,above,across,after,against,al,along,amid,among,an,and,anti,around,as,at,before,behind,below,beneath,beside,besides,between,beyond,but,by,d,da,das,de,del,dell,dello,dei,degli,della,dell,delle,dem,den,der,des,despite,die,do,down,du,during,ein,eine,einem,einen,einer,eines,el,en,et,except,for,from,gli,i,il,in,inside,into,is,l,la,las,le,les,like,lo,los,near,nor,of,off,on,onto,or,over,past,per,plus,round,save,since,so,some,sur,than,the,through,to,toward,towards,un,una,unas,under,underneath,une,unlike,uno,unos,until,up,upon,versus,via,von,while,with,within,without,yet,zu,zum"
  suppressTitleCase = false
  tests = ""
  warnBulkModify = 10
  ZotFile = true

Errors

[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{81bc8c1f-17ac-054a-b66a-962649501fef}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{6aa8f3d7-7e30-8743-aa5b-ada02df9870b}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{7e83acfb-4697-ea47-8ce5-152d13c4efa8}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{77a8084c-a99a-8446-8fb2-2e44fd71f961}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{43cca5e6-5fc6-c54d-8461-9f4172203fbb}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{4da25446-1b51-014a-bb65-d85713679bec}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{5ba608de-2e61-0146-b898-4a4a75325dc4}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{f6678eeb-53e8-3741-8840-a20cbefb438c}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{df0a621a-fa79-3841-a5a8-c40579552401}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{b98ebb31-c011-e94f-b3c6-3a2a27b676a2}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{94a8d548-0fde-ad4a-ab93-cce406a5c6ab}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{2ad19a17-3f93-f94c-9aee-075598ae9e7b}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{8967076a-2151-f240-ae4b-3d9c5bda9e6c}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{ff187b82-0472-654b-9a15-538ae8fae26a}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{4639f4ae-988a-b840-868f-9abbd54fc0eb}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{21b6bc04-9f4f-224e-addb-0131ca4fddcb}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{ffea25f2-8418-cc4a-86e0-90d11bd8c256}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{6a69bbe9-2488-6441-bf82-e4f3abcaab3b}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{9af349a0-07ac-894d-b713-b306861d643e}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{022ef521-c55b-2e4a-812c-9c258d4c4aa9}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{9c612981-7816-0541-9924-3b016fbb746a}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{ec3ca7a8-28fb-b546-9f4e-c4898acebf4e}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{2d0005cb-f271-554b-97a2-3f240d15b7ec}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{bee18b73-7db5-034d-b8f8-6f9918b4a8b9}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]
[JavaScript Error: "syntax error" {file: "moz-nullprincipal:{2e98ec68-0ccb-3840-9f99-6f1ff8cd942f}" line: 1 column: 1 source: "%% This BibTeX bibliography file was created using BibDesk."}]

** Debug log**

reference to this issue

References

{
  "config": {
    "id": "36a3b0b5-bad0-4a04-b79b-441c7cef77db",
    "label": "BetterBibTeX JSON",
    "release": "1.6.96",
    "preferences": {
      "asciiBibLaTeX": false,
      "asciiBibTeX": true,
      "attachmentsNoMetadata": false,
      "autoAbbrevStyle": "http://www.zotero.org/styles/cell",
      "autoAbbrev": false,
      "autoExport": "idle",
      "autoExportIdleWait": 10,
      "cacheFlushInterval": 5,
      "confirmCacheResetSize": 1000,
      "itemObserverDelay": 100,
      "caching": true,
      "citeCommand": "cite",
      "citekeyFormat": "[zotero]",
      "citekeyFold": true,
      "debug": false,
      "DOIandURL": "both",
      "bibtexURL": "off",
      "csquotes": "",
      "keyConflictPolicy": "keep",
      "langID": "babel",
      "pinCitekeys": "manual",
      "preserveBibTeXVariables": false,
      "rawImports": false,
      "scanCitekeys": true,
      "showCitekeys": false,
      "showItemIDs": false,
      "skipFields": "",
      "skipWords": "a,ab,aboard,about,above,across,after,against,al,along,amid,among,an,and,anti,around,as,at,before,behind,below,beneath,beside,besides,between,beyond,but,by,d,da,das,de,del,dell,dello,dei,degli,della,dell,delle,dem,den,der,des,despite,die,do,down,du,during,ein,eine,einem,einen,einer,eines,el,en,et,except,for,from,gli,i,il,in,inside,into,is,l,la,las,le,les,like,lo,los,near,nor,of,off,on,onto,or,over,past,per,plus,round,save,since,so,some,sur,than,the,through,to,toward,towards,un,una,unas,under,underneath,une,unlike,uno,unos,until,up,upon,versus,via,von,while,with,within,without,yet,zu,zum",
      "tests": "",
      "warnBulkModify": 10,
      "postscript": "",
      "jabrefGroups": 4,
      "defaultDateParserLocale": "",
      "bibtexParticleNoOp": false,
      "biblatexExtendedNameFormat": false,
      "biblatexExtendedDateFormat": false,
      "quickCopyMode": "latex",
      "quickCopyPandocBrackets": true,
      "jurismPreferredLanguage": "zh-alalc97",
      "ZotFile": true,
      "qualityReport": false,
      "suppressTitleCase": false
    },
    "options": {
      "exportFileData": false,
      "exportNotes": true
    }
  },
  "collections": [],
  "items": [
    {
      "itemType": "journalArticle",
      "tags": [
        "Political Economy"
      ],
      "relations": {},
      "url": "http://www.sciencedirect.com/science/article/pii/S014759670300101X",
      "volume": "31",
      "issue": "4",
      "pages": "620 - 652",
      "publicationTitle": "Journal of Comparative Economics",
      "ISSN": "0147-5967",
      "date": "2003",
      "DOI": "10.1016/j.jce.2003.09.003",
      "abstractNote": "Do societies choose inefficient policies and institutions? An extension of the Coase theorem to politics would suggest the answer is no. This paper discusses various approaches to political economy and develops the argument that there are strong empirical and theoretical grounds for believing that inefficient policies and institutions are prevalent. We conclude that these inefficient institutions and policies are chosen because they serve the interests of politicians or social groups that hold political power at the expense of the rest. The theoretical case depends on commitment problems inherent in politics; parties holding political power cannot make commitments to bind their future actions because there is no outside agency with the coercive capacity to enforce such arrangements. Journal of Comparative Economics 31 (4) (2003) 620-652.",
      "title": "Why not a political Coase theorem? Social conflict, commitment, and politics",
      "creators": [
        {
          "creatorType": "author",
          "lastName": "Acemoglu",
          "firstName": "Daron"
        }
      ],
      "attachments": [],
      "notes": [],
      "itemID": 10224,
      "seeAlso": [],
      "__citekey__": "acemoglu_why_2003"
    }
  ],
  "cache": {}
}

P.s.: I was unable to submit the above report, as raised in #665

@maxheld83
Copy link
Author

update: issue in #665 is solved, corresponding bug report has now been filed via Zotero, under ID AWG6H3KK

@retorquere
Copy link
Owner

Can you try with this version?

@maxheld83
Copy link
Author

fantastic, thanks so much @retorquere, problem solved.

Just out of curiosity, what screwed up *.bib-syntax did I (rather: BibDesk) perpetrate here to cause the problem?

@retorquere
Copy link
Owner

Nothing; there was a bug in BBT that failed import when the mimetype was missing.

@retorquere
Copy link
Owner

I've merged this to master and will cut a new release when #667 is fixed (tests are running on a fix).

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants