GithubHelp home page GithubHelp logo

Comments (3)

stig avatar stig commented on August 22, 2024

I think it would help us help you if you gave an example of an Org file you have, the output or error you get and the expected results. For what it's worth this works for me:

#+begin_src plantuml :file plantuml-demo.png
title Authentication Sequence

Alice->Bob: Authentication Request
note right of Bob: Bob thinks about it
Bob->Alice: Authentication Response
#+end_src

(The :file filename.png is very important.)

"Executing" that by positioning cursor anywhere in the source block and hitting C-c C-c asks me "Evaluate this plantuml code block on your system? (y or n)".

FWIW my PlantUML config (this week) is https://github.com/stig/dotfiles/blob/trunk/Emacs.org#plantuml
and my babel configuration is:

(org-babel-do-load-languages 'org-babel-load-languages
				 '((emacs-lisp . t)
				   (sql . t)
				   (shell . t)
				   (plantuml . t))))

from plantuml-mode.

terlar avatar terlar commented on August 22, 2024

As far as I known plantuml-mode is not used for org-mode except for the indentation and syntax highlighting if you have enabled that. All the Babel stuff comes from ob-plantuml bundled with org-mode.

from plantuml-mode.

factotvm avatar factotvm commented on August 22, 2024

Thank you both for your help. With it, I now have my expected environment, which is I can write PlantUML both in a major mode and in Org mode, and it behaves identically to writing GraphViz: one is able to preview (in the former), and generate results (in the latter).

My path there was a little circuitous. I tried to follow @stig's config (that's fun to say), and after realizing (after @terlar's comment) that I am not to replace ob-plantuml with plantuml-mode, I started making progress. I got a bit stuck on trying to follow Stig's configuration in that ob-plantuml wouldn't load. Of course not, it doesn't exist as a package anymore (Terje told me that, I'm just slow).

So, I removed all configuration of ob-plantuml in my config, and set the (as of org-mode 9.4) org-plantuml-exec-mode to 'plantuml (which was really my goal all alongβ€”to use the executable configuration of plantuml-mode so that I didn't have to use the jar).

I do still have this issue (put here for completeness, but not related to plantuml-mode) the first time I try and to generate results in Org mode:

Code block produced no output.

It works the second time. Maybe it has to do with the order that things are loaded... but I'm not that worried about it.

What I'm stoked about is the major mode works flawlessly, and in Org mode it's "good enough."

Again, thank you both for your help.

from plantuml-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.