Hello Arne,

I now updated my Emacs to 31.0.50 (org-version is showing 9.7.11).
With my doom emacs config and the minimal config I provided earlier the issue 
still persists.

This is strange.

The Emacs-version I am using on macOS is this one:
https://github.com/d12frosted/homebrew-emacs-plus

I installed it with macOS homebrew as such:
brew install emacs-plus@31 --with-dbus --with-xwidgets --with-imagemagick 
--with-modern-doom-icon

I could maybe try if it behaves differently on an x86 Linux machine (compared 
to my ARM macOS)... not today though.

Best
Tim

On 13 Sep 2025, at 13:55, Tim Hansinger wrote:

> Hello Arne,
>
> thank you for replying.
>
> I am using Emacs on macOS (Sequoia 15.6.1, ARM).
> org is at version 9.7.11 and emacs 30.2.
>
> Your example also gives me the same error I experienced with my examples.
>
> I am using doom emacs, but now also removed my config.org and started it up 
> in Vanilla with a minimal config:
>
> ;; minimal init.el
>
> ;; Enable org-babel languages
> (org-babel-do-load-languages
>  'org-babel-load-languages
>  '((plantuml . t)))
>
> ;; Set PlantUML jar path (adjust path as needed)
> (setq org-plantuml-jar-path 
> "/opt/homebrew/Cellar/plantuml/1.2025.7/libexec/plantuml.jar")
>
> I will try a newer version of emacs and org-mode.
>
> Best
> Tim
>
> On 13 Sep 2025, at 12:53, Dr. Arne Babenhauserheide wrote:
>
>> Hello Tim,
>>
>> Welcome to the orgmode list!
>>
>> Tim Hansinger t...@timhansinger.com writes:
>>
>>> I am looking for guidance/proposals to the code fix I provide here. If it 
>>> is acceptable however I would suggest to implement it.
>>>
>>> Problem description
>>>
>>> Currently variables are not working if @start... and @end... lines are 
>>> defined in a code block.
>>
>> I just tried to reproduce this problem with gantt, but this works for
>> me:
>>
>> #+begin_src plantuml :file my-complex-project.png :exports both :var 
>> closed_date="2021-04-28"
>> @startgantt
>> saturday are closed
>> sunday are closed
>> closed_date is closed
>> ' see https://plantuml.com/gantt-diagram
>> Project starts at 2021-04-26
>> [Configuration] as [C] on {DEV1:50%} lasts 1 day
>> note bottom
>> description
>> end note
>> [Implementation] as [I] on {DEV2} lasts 3 days
>> note bottom
>> in multiple
>> lines
>> end note
>> [I] starts at [C]'s end with green bold link
>> {DEV2} is off on 2021-04-30
>> @endgantt
>> #+end_src
>>
>> Does this fail for you?
>>
>>> Examples
>>>
>>> Non-working example
>>>
>>> This example does not work (in the image output the text will be 
>>> replace_me):
>>>
>>> #+begin_src plantuml :var replace_me="this is variable content"
>>> @startuml
>>> "replace_me"
>>> @enduml
>>> #+end_src
>>
>> When I give a file argument, it works for me:
>>
>> #+begin_src plantuml :var replace_me="this is variable content" :file 
>> /tmp/filei.png
>> @startuml
>> "replace_me"
>> @enduml
>> #+end_src
>>
>> Result is attached.
>>
>> Which version of org and emacs do you use? I have
>>
>> org 9.7.34 and emacs 31.0.50
>>
>> Best wishes,
>> Arne
>>
>> --
>> Unpolitisch sein
>> heißt politisch sein,
>> ohne es zu merken.
>> draketo.de

Reply via email to