emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: missing language for code block results in failure [9.1.14 (9.1.14-dist @ .../org/install/emacs/site-lisp/org/)]
@ 2018-11-25 16:06 John Ciolfi
  2018-11-27 20:48 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: John Ciolfi @ 2018-11-25 16:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]


Hi

I ran into a confusing error due to missing language for a code block. Given attached issue.org
which contains:

    #+BEGIN_SRC
      if (a > 1) {
      }
    #+END_SRC

if you convert to pdf using the attached issue_repro.el via:

  emacs --batch -L /path/to/org/install/emacs/site-lisp/org -l issue_repro.el

where /path/to/org/install/emacs/site-lisp/org is version 9.1.14 and I'm running emacs 25.1.1,
you'll see this error

  $ emacs --batch -L /local-ssd/ciolfi/sbtools/apps/emacs-add-ons/install-25/org/install/emacs/site-lisp/org -l issue_repro.el
  Loading 00debian-vars...
  :
  Debug on Error enabled globally
  Debugger entered--Lisp error: (wrong-type-argument stringp nil)
    intern(nil)
    org-latex-src-block((src-block .....
    <snip>

Could this be handled more gracefully?

Thanks
John


Emacs  : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2017-09-15, modified by Debian
Package: Org mode version 9.1.14 (9.1.14-dist @ .../org/install/emacs/site-lisp/org/)


[-- Attachment #2: issue.org --]
[-- Type: text/x-org, Size: 94 bytes --]

Code block is missing the language:

  #+BEGIN_SRC
    if (a > 1) {
    }
  #+END_SRC


[-- Attachment #3: issue_repro.el --]
[-- Type: application/emacs-lisp, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: missing language for code block results in failure [9.1.14 (9.1.14-dist @ .../org/install/emacs/site-lisp/org/)]
  2018-11-25 16:06 Bug: missing language for code block results in failure [9.1.14 (9.1.14-dist @ .../org/install/emacs/site-lisp/org/)] John Ciolfi
@ 2018-11-27 20:48 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2018-11-27 20:48 UTC (permalink / raw)
  To: John Ciolfi; +Cc: emacs-orgmode

Hello,

John Ciolfi <ciolfi@mathworks.com> writes:

> Hi
>
> I ran into a confusing error due to missing language for a code block. Given attached issue.org
> which contains:
>
>     #+BEGIN_SRC
>       if (a > 1) {
>       }
>     #+END_SRC
>
> if you convert to pdf using the attached issue_repro.el via:
>
>   emacs --batch -L /path/to/org/install/emacs/site-lisp/org -l issue_repro.el
>
> where /path/to/org/install/emacs/site-lisp/org is version 9.1.14 and I'm running emacs 25.1.1,
> you'll see this error
>
>   $ emacs --batch -L /local-ssd/ciolfi/sbtools/apps/emacs-add-ons/install-25/org/install/emacs/site-lisp/org -l issue_repro.el
>   Loading 00debian-vars...
>   :
>   Debug on Error enabled globally
>   Debugger entered--Lisp error: (wrong-type-argument stringp nil)

Fixed. Thank you.

Note that <M-x org-lint> warns you about such problems.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-27 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-25 16:06 Bug: missing language for code block results in failure [9.1.14 (9.1.14-dist @ .../org/install/emacs/site-lisp/org/)] John Ciolfi
2018-11-27 20:48 ` Nicolas Goaziou

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).