From: Justin Silverman <jsilve24@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: bug: wrong-type-argument when trying export to pdf.
Date: Wed, 12 Oct 2022 10:19:07 -0400 [thread overview]
Message-ID: <87pmexw2bs.fsf@gmail.com> (raw)
In-Reply-To: <8735btu1ig.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 4670 bytes --]
Sorry that was my bad, the backtrace was from my own config not the simple-config.el that I provided. Here is the backtrace from the simple-config.el that shows that the problem persists even without polymode.
(still, thanks for pointing out that I had polymode activated, that was a mistake that I will fix in my personal config)
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
jit-lock--run-functions(1157 1223)
jit-lock-fontify-now(1157 #<marker at 1223 in debug.org<2>>)
font-lock-ensure(1157 #<marker at 1223 in debug.org<2>>)
org-table-align()
org-babel-insert-result(((0.333333333333333) (0.333333333333333) (0.333333333333333)) ("value" "replace") ("R" "w1 <- c(1, 1, 1) \nw2 <- c(1, 1, 5) \n\nx1 <- w1/sum(..." ((:colname-names) (:rowname-names) (:result-params "value" "replace") (:result-type . value) (:results . "value replace") (:exports . "both") (:cache . "no") (:hlines . "no") (:noweb . "no") (:session . "*R*") (:tangle . "no")) "" nil 1011 "(ref:%s)") nil "R" (0 0 258514 765000))
org-babel-execute-src-block(nil ("R" "w1 <- c(1, 1, 1) \nw2 <- c(1, 1, 5) \n\nx1 <- w1/sum(..." ((:colname-names) (:rowname-names) (:result-params "replace" "value") (:result-type . value) (:results . "replace value") (:exports . "both") (:tangle . "no") (:session . "*R*") (:noweb . "no") (:hlines . "no") (:cache . "no")) "" nil 1011 "(ref:%s)"))
org-babel-exp-results(("R" "w1 <- c(1, 1, 1) \nw2 <- c(1, 1, 5) \n\nx1 <- w1/sum(..." ((:cache . "no") (:colname-names) (:exports . "both") (:hlines . "no") (:noweb . "no") (:result-params "replace" "value") (:result-type . value) (:results . "replace value") (:rowname-names) (:session . "*R*") (:tangle . "no")) "" nil 1011 "(ref:%s)") block nil "2da1507400b1866895fab4840062db146ee4de1e")
org-babel-exp-do-export(("R" "w1 <- c(1, 1, 1) \nw2 <- c(1, 1, 5) \n\nx1 <- w1/sum(..." ((:cache . "no") (:colname-names) (:exports . "both") (:hlines . "no") (:noweb . "no") (:result-params "replace" "value") (:result-type . value) (:results . "replace value") (:rowname-names) (:session . "*R*") (:tangle . "no")) "" nil 1011 "(ref:%s)") block "2da1507400b1866895fab4840062db146ee4de1e")
org-babel-exp-src-block((src-block (:language "R" :switches nil :parameters ":exports both :results value :session \"*R*\"" :begin 1011 :end 1146 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value " w1 <- c(1, 1, 1) \n w2 <- c(1, 1, 5) \n\n x1 <- w..." :post-blank 1 :post-affiliated 1011 :mode planning :granularity element :cached nil :parent (section (:begin 1011 :end 1223 :contents-begin 1011 :contents-end 1223 :robust-begin 1011 :robust-end 1221 :post-blank 0 :post-affiliated 1011 :mode section :granularity element :cached nil :parent (headline (:raw-value "Spurious Conclusions" :begin 986 :end 1223 :pre-blank 1 :contents-begin 1011 :contents-end 1223 :robust-begin 1013 :robust-end 1221 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 986 :title (...) :parent (org-data ...) :cached t :org-element--cache-sync-key (0 . 986))) :org-element--cache-sync-key (0 . 1010))) :org-element--cache-sync-key (0 . 1011))))
org-babel-exp-process-buffer()
org-export-as(beamer nil nil nil nil)
org-export-to-buffer(beamer "*Org BEAMER Export*" nil nil nil nil nil #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_16>)
org-beamer-export-as-latex()
funcall-interactively(org-beamer-export-as-latex)
command-execute(org-beamer-export-as-latex record)
execute-extended-command(nil "org-beamer-export-as-latex" nil)
funcall-interactively(execute-extended-command nil "org-beamer-export-as-latex" nil)
command-execute(execute-extended-command)
Ihor Radchenko <yantar92@gmail.com> writes:
> Justin Silverman <jsilve24@gmail.com> writes:
>
>> I am having a problem and getting a wrong-type-argument error when
>> trying to run `org-beamer-export-to-pdf' on the attached file
>> `debug.org' (see backtrace below). The problem also occurs when
>> running `org-latex-export-to-pdf'.
>> ...
>> Backtrace:
>>
>> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>> jit-lock--run-functions(1218 1284)
>> jit-lock-fontify-now(1218 #<marker at 1284 in L4-6_CoDA.org<2>>)
>> #<subr font-lock-ensure>(1218 #<marker at 1284 in L4-6_CoDA.org<2>>)
>> polymode-inhibit-during-initialization(#<subr font-lock-ensure> 1218 #<marker at 1284 in L4-6_CoDA.org<2>>)
>
> The backtrace shows that you are using polymode. Does the problem
> persist without polymode?
next prev parent reply other threads:[~2022-10-12 14:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-11 19:08 bug: wrong-type-argument when trying export to pdf Justin Silverman
2022-10-12 4:08 ` Ihor Radchenko
2022-10-12 14:19 ` Justin Silverman [this message]
2022-10-12 15:11 ` Justin Silverman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmexw2bs.fsf@gmail.com \
--to=jsilve24@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).