From: Ken Mankoff <mankoff@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [O] Plantuml w/ noweb and cached results
Date: Wed, 21 Sep 2022 08:31:59 -0400 [thread overview]
Message-ID: <87pmfoewn4.fsf@t480.home> (raw)
Hello,
I'm not sure if this is a bug in ob-restclient, ob-plantuml, or Babel. If someone can help me figure out where, I can move this report to GitHub (if ob-restclient) - otherwise I think it remains here.
I cannot use ob-plantuml if results are cached. See example:
#+NAME: cache-no
#+BEGIN_SRC restclient :jq .[0].address :cache no
GET https://jsonplaceholder.typicode.com/users
#+END_SRC
#+RESULTS: cache-no
#+BEGIN_SRC js
{
"street": "Kulas Light",
"suite": "Apt. 556",
"city": "Gwenborough",
"zipcode": "92998-3874",
"geo": {
"lat": "-37.3159",
"lng": "81.1496"
}
}
#+END_SRC
#+BEGIN_SRC plantuml :noweb yes :file cache-no.png
@startjson
<<cache-no()>>
@endjson
#+END_SRC
#+RESULTS:
[[file:cache-no.png]]
The above graphic is generated by plantuml.
#+NAME: cache-yes
#+BEGIN_SRC restclient :jq .[0].address :cache yes
GET https://jsonplaceholder.typicode.com/users
#+END_SRC
#+RESULTS[(2022-09-20 15:52:59) c41e0371fd392d6fbfd07ff4078abf8c387885ea]: cache-yes
#+BEGIN_SRC js
{
"street": "Kulas Light",
"suite": "Apt. 556",
"city": "Gwenborough",
"zipcode": "92998-3874",
"geo": {
"lat": "-37.3159",
"lng": "81.1496"
}
}
#+END_SRC
#+BEGIN_SRC plantuml :noweb yes :file cache-yes.png
@startjson
<<cache-yes()>>
@endjson
#+END_SRC
#+RESULTS:
[[file:cache-yes.png]]
The above graphic is an error message. It states,
"Your data does not sound like JSON data".
-k.
n
next reply other threads:[~2022-09-21 13:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-21 12:31 Ken Mankoff [this message]
2022-09-23 2:02 ` [O] Plantuml w/ noweb and cached results Ihor Radchenko
2022-09-23 15:37 ` Ken Mankoff
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=87pmfoewn4.fsf@t480.home \
--to=mankoff@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).