emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [O] Plantuml w/ noweb and cached results
@ 2022-09-21 12:31 Ken Mankoff
  2022-09-23  2:02 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Mankoff @ 2022-09-21 12:31 UTC (permalink / raw)
  To: emacs-orgmode

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


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

end of thread, other threads:[~2022-09-23 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-21 12:31 [O] Plantuml w/ noweb and cached results Ken Mankoff
2022-09-23  2:02 ` Ihor Radchenko
2022-09-23 15:37   ` Ken Mankoff

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