all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [feature request] more informative error message when calling an undefined src block
@ 2017-01-09 14:45 Eric S Fraga
  2017-01-10 12:26 ` Nicolas Goaziou
       [not found] ` <96762a273fe0404fb647c95179e9f1bd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Eric S Fraga @ 2017-01-09 14:45 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello all,

I have been trying to track down a nil link on export [1].  I have been
bisecting a long document.  As part of this, I commented out a src block
used elsewhere in the document.  The error trace [abridged] I get upon
export is:

Debugger entered--Lisp error: (wrong-type-argument consp nil)
  org-babel-exp-code(nil lob)
  org-babel-exp-do-export(nil lob)
  org-babel-exp-process-buffer()
  org-export-as(latex nil nil nil (:output-file "t.tex"))
  
which was luckily just enough for me to figure out what I had done but I
think it could be more informative?  E.g. it would be nice if it said
which code it tried to invoke?

Thanks,
eric

Footnotes: 
[1]  related problem: "Unable to resolve link: nil" is not very
informative either and it's driving me crazy!  I've not yet tracked down
what the problem is but it has something to do with using my own labels
for tables.  More later when I figure it out.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: [feature request] more informative error message when calling an undefined src block
  2017-01-09 14:45 [feature request] more informative error message when calling an undefined src block Eric S Fraga
@ 2017-01-10 12:26 ` Nicolas Goaziou
       [not found] ` <96762a273fe0404fb647c95179e9f1bd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2017-01-10 12:26 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> I have been trying to track down a nil link on export [1].  I have been
> bisecting a long document.  As part of this, I commented out a src block
> used elsewhere in the document.  The error trace [abridged] I get upon
> export is:
>
> Debugger entered--Lisp error: (wrong-type-argument consp nil)
>   org-babel-exp-code(nil lob)
>   org-babel-exp-do-export(nil lob)
>   org-babel-exp-process-buffer()
>   org-export-as(latex nil nil nil (:output-file "t.tex"))
>   
> which was luckily just enough for me to figure out what I had done but I
> think it could be more informative?  E.g. it would be nice if it said
> which code it tried to invoke?
>
> Thanks,
> eric
>
> Footnotes: 
> [1]  related problem: "Unable to resolve link: nil" is not very
> informative either and it's driving me crazy!  I've not yet tracked down
> what the problem is but it has something to do with using my own labels
> for tables.  More later when I figure it out.

Could you provide an ECM?

Regards,

-- 
Nicolas Goaziou

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

* Re: [feature request] more informative error message when calling an undefined src block
       [not found] ` <96762a273fe0404fb647c95179e9f1bd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-01-11 15:33   ` Eric S Fraga
  2017-01-11 20:02     ` Nicolas Goaziou
       [not found]     ` <bb5689915c80452f90a3bbe6f3c8651c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Eric S Fraga @ 2017-01-11 15:33 UTC (permalink / raw)
  To: emacs-orgmode

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

On Tuesday, 10 Jan 2017 at 12:26, Nicolas Goaziou wrote:

[...]

> Could you provide an ECM?

Yes, of course:

#+begin_src org
  ,* Simple illustration of nil link error message
  In table [[mytable]], there are some numbers
  ,** the table                                                 :noexport:
  ,#+name: mytable
  | x | y |
  |---+---|
  | 1 | 1 |
  | 2 | 4 |
  ,#+TBLFM: $2=$1^2
#+end_src

There is a reference to a table which is in a subtree that is not to be
exported.  The error message is

   user-error: Unable to resolve link: nil

This ECM may appear contrived but, when working with a large document,
it is easy to comment out or exclude sections that, it turns out, have
material within that is referenced from elsewhere.  This is difficult to
track down when exporting.  If the error message had "nil" above
replaced by "mytable", it would make all the difference!

Many thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.2-104-gf5b7de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: [feature request] more informative error message when calling an undefined src block
  2017-01-11 15:33   ` Eric S Fraga
@ 2017-01-11 20:02     ` Nicolas Goaziou
       [not found]     ` <bb5689915c80452f90a3bbe6f3c8651c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2017-01-11 20:02 UTC (permalink / raw)
  To: emacs-orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> This ECM may appear contrived but, when working with a large document,
> it is easy to comment out or exclude sections that, it turns out, have
> material within that is referenced from elsewhere.  This is difficult to
> track down when exporting.  If the error message had "nil" above
> replaced by "mytable", it would make all the difference!

Of course. Fixed. Thank you.

Regards,

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

* Re: [feature request] more informative error message when calling an undefined src block
       [not found]     ` <bb5689915c80452f90a3bbe6f3c8651c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-01-12  6:46       ` Eric S Fraga
  0 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2017-01-12  6:46 UTC (permalink / raw)
  To: emacs-orgmode

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

On Wednesday, 11 Jan 2017 at 20:02, Nicolas Goaziou wrote:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> This ECM may appear contrived but, when working with a large document,
>> it is easy to comment out or exclude sections that, it turns out, have
>> material within that is referenced from elsewhere.  This is difficult to
>> track down when exporting.  If the error message had "nil" above
>> replaced by "mytable", it would make all the difference!
>
> Of course. Fixed. Thank you.

Excellent!  Works perfectly.  Many thanks.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

end of thread, other threads:[~2017-01-12  7:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-09 14:45 [feature request] more informative error message when calling an undefined src block Eric S Fraga
2017-01-10 12:26 ` Nicolas Goaziou
     [not found] ` <96762a273fe0404fb647c95179e9f1bd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-11 15:33   ` Eric S Fraga
2017-01-11 20:02     ` Nicolas Goaziou
     [not found]     ` <bb5689915c80452f90a3bbe6f3c8651c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-12  6:46       ` Eric S Fraga

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.