reddit / emacs

Plantuml preview not working

Sniper100K · 2022-12-07 09:31
I was trying out plantuml in doom emacs and tried to render the diagram using M-x plantuml-preview but the diagram didn't render. I got the following image below in a window. https://preview.redd.it/p2s049ag3g4a1.png?width=797&format=png&auto=webp&s=4907c0db077b68fddc6905b5a55cc849c875e269 How do I fix this.
its_randomness · 2022-12-07 15:41
Not sure about the problem, but if it persists you can try use a local plantuml.jar instead. That's what I am using at its quite reliable once configured. Like so: ``` (setq plantuml-default-exec-mode 'jar) (setq plantuml-jar-args '("-tpng")) (setq plantuml-output-type "png") (setq plantuml-java-args (list "-Djava.awt.headless=true" "-jar")) (add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode)) ``` Above config assumes you have a plantuml downloaded to path "~/plantuml.jar"
GidiomGates · 2022-12-07 18:45
Maybe its not what you want but, have you tried in org mode?. Im not using de doom flag. But in packages.el i have `(package! plantuml-mode)` and in my config.el spcifie the install ubication `(setq org-plantuml-jar-path (expand-file-name "/usr/share/plantuml/plantuml.jar"))` that is my install ubication for plantuml and in src blocks of org mode works well to me.
[deleted] · 2022-12-07 23:41
[removed]