* [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
* Re: [O] Plantuml w/ noweb and cached results 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 0 siblings, 1 reply; 3+ messages in thread From: Ihor Radchenko @ 2022-09-23 2:02 UTC (permalink / raw) To: Ken Mankoff; +Cc: emacs-orgmode Ken Mankoff <mankoff@gmail.com> writes: > #+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". I tried your example it is working just fine on my side. I suggest you to try reproducing starting from Emacs -Q. See https://orgmode.org/manual/Feedback.html. You may also find https://github.com/alphapapa/with-emacs.sh useful to install packages into a temporary clean Emacs instance. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [O] Plantuml w/ noweb and cached results 2022-09-23 2:02 ` Ihor Radchenko @ 2022-09-23 15:37 ` Ken Mankoff 0 siblings, 0 replies; 3+ messages in thread From: Ken Mankoff @ 2022-09-23 15:37 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode Hi Ihor, Thank you for your reply. I apologize for not doing a more thorough test with '-Q'. I'll try to find the problem in my setup. -k. On 2022-09-22 at 22:02 -04, Ihor Radchenko <yantar92@gmail.com> wrote: > Ken Mankoff <mankoff@gmail.com> writes: > >> #+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". > > I tried your example it is working just fine on my side. > I suggest you to try reproducing starting from Emacs -Q. > See https://orgmode.org/manual/Feedback.html. You may also find > https://github.com/alphapapa/with-emacs.sh useful to install packages > into a temporary clean Emacs instance. ^ 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).