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

Error when exporting: wrong-type-argument stringp nil #81

Open
tazheinrich opened this issue Jun 1, 2021 · 2 comments
Open

Error when exporting: wrong-type-argument stringp nil #81

tazheinrich opened this issue Jun 1, 2021 · 2 comments

Comments

@tazheinrich
Copy link

tazheinrich commented Jun 1, 2021

I get an error, saying (wrong-type-argument stringp nil) when exporting an org-file.

Minimal example:

#+BIBLIOGRAPHY: ~/references.bib
#+PANDOC_OPTIONS: csl: ~/american-political-science-association.csl

* Test header
Some text cite:aars-christensen-2018-educat-polit-partic

Reference file:

@article{aars-christensen-2018-educat-polit-partic,
  author       = {Jacob Aars and Dag Arne Christensen},
  title	       = {Education and Political Participation: The Impact of
                  Educational Environments},
  journal      = {Acta Politica},
  volume       = 55,
  number       = 1,
  pages	       = {86-102},
  year	       = 2018,
  doi	       = {10.1057/s41269-018-0101-5},
  url	       = {https://doi.org/10.1057/s41269-018-0101-5},
  DATE_ADDED   = {Fri May 14 15:34:20 2021},
  langid       = {english}
}

CSL Style: https://www.zotero.org/styles?q=apsa

Error backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  intern(nil)
  #f(compiled-function (it) #<bytecode 0x15751dabe4d1>)("csl:")
  mapcar(#f(compiled-function (it) #<bytecode 0x15751dabe4d1>) ("csl:" "~/.pandoc/csl/american-political-science-associati..."))
  org-pandoc-template(#("#+latex_header: \\usepackage[back..." 316 319 (:parent (headline (:raw-value "Bla" :begin 315 :end 394 :pre-blank 0 :contents-begin 321 :contents-end 394 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 315 ...) (section ... ... ...))) 320 326 (:parent (paragraph (:begin 321 :end 375 :contents-begin 321 :contents-end 374 :post-blank 1 :post-affiliated 321 :parent ...) #("Laber " 0 6 ...) (link ...) #("\n" 0 1 ...)))) (:export-options nil :back-end #s(org-export-backend :name pandoc :parent org :transcoders ((latex-environment . org-pandoc-latex-environ) (link . org-pandoc-link) (table . org-pandoc-table) (template . org-pandoc-template) (paragraph . org-pandoc-paragraph) (src-block . org-pandoc-src-block)) :options ((:pandoc-options "PANDOC_OPTIONS" nil nil space) (:pandoc-extensions "PANDOC_EXTENSIONS" nil nil space) (:pandoc-metadata "PANDOC_METADATA" nil nil space) (:pandoc-variables "PANDOC_VARIABLES" nil nil space) (:epub-chapter-level "EPUB_CHAPTER_LEVEL" nil nil t) (:epub-cover-image "EPUB_COVER" nil nil t) (:epub-stylesheet "EPUB_STYLESHEET" nil nil t) (:epub-embed-font "EPUB_EMBED_FONT" nil nil newline) (:epub-meta "EPUB_META" nil nil newline) (:epub-css "EPUB_CSS" nil nil newline) (:epub-rights "EPUB_RIGHTS" nil nil newline) (:bibliography "BIBLIOGRAPHY")) :filters nil :blocks nil :menu (112 "export via pandoc" (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...))) :translate-alist ((latex-environment . org-pandoc-latex-environ) (link . org-pandoc-link) (table . org-pandoc-table) (template . org-pandoc-template) (paragraph . org-pandoc-paragraph) (src-block . org-pandoc-src-block) (babel-call . org-org-identity) (bold . org-org-identity) (center-block . org-org-identity) (clock . org-org-identity) (code . org-org-identity) (diary-sexp . org-org-identity) (drawer . org-org-identity) (dynamic-block . org-org-identity) (entity . org-org-identity) (example-block . org-org-identity) (export-block . org-org-export-block) (fixed-width . org-org-identity) (footnote-definition . ignore) (footnote-reference . org-org-identity) (headline . org-org-headline) (horizontal-rule . org-org-identity) (inline-babel-call . org-org-identity) (inline-src-block . org-org-identity) (inlinetask . org-org-identity) (italic . org-org-identity) (item . org-org-identity) (keyword . org-org-keyword) (latex-environment . org-org-identity) (latex-fragment . org-org-identity) (line-break . org-org-identity) (link . org-org-link) ...) :exported-data #<hash-table eq 15/4001 0x15751d39426d> :input-buffer "org-test.org" :input-file "/home/tazz/Dokumente/xtest/org-t..." :pandoc-options "csl: ~/.pandoc/csl/american-poli..." :pandoc-extensions nil :pandoc-metadata nil :pandoc-variables nil :epub-chapter-level nil :epub-cover-image nil :epub-stylesheet nil :epub-embed-font nil :epub-meta nil :epub-css nil ...))
  org-export-as(pandoc nil nil nil (:output-file "org-test.tmpje2kox.org"))
  org-export-to-file(pandoc "org-test.tmpje2kox.org" nil nil nil nil nil #f(compiled-function (f) #<bytecode 0x15751d39421d>))
  org-pandoc-export(latex-pdf nil nil nil nil nil 0)
  org-pandoc-export-to-latex-pdf-and-open(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)
@oatmealm
Copy link

oatmealm commented Aug 4, 2021

👍

Seeing the same thing, also with a local BIBLIOGRAPHY reference.

@oatmealm
Copy link

oatmealm commented Aug 5, 2021

I've noticed parsing the org file for pandoc seems to fail here:

(org-pandoc-put-options

Particularly in (split-string val "\n") where it expects to get a string but gets a list? Might have to do with using a newer version of org? In my case it is Org mode version 9.5 (9.5-b83ae59 @ /home/uri/src/doom-emacs/.local/straight/build-28.0.50/org/)

I did though tried passing the bibliogrphy via #+PANDOC_OPTIONS: bibliography:~/.../file.bib but seeing the same error.

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