Open SieDa opened 1 month ago
All environment variables are delivered by printenv, e.g.:
OS=Windows_NT
HOMEDRIVE=C:
We could not get this working for the %getenv()
function at all, to access them, as shown in the example above:
%getenv ("OS")
Retrieve environment variable value
> %getenv("OS")
Hi @SieDa ,
thanks for your report. Filename was supported yet since it was not overridden by the plugin accordingly. I've fixed this in the latest commit. Try out the following build and let me know if it works for you: Run 10881066927.
Unfortunately, it seems like PlantUML isn't supporting %dirpath()
the same way so this still will not work. I've created an issue at the PlantUML repository. Maybe they have a look at it soon.
BR, Philipp
Description Running the example file
PlantUML-buildin-functions.puml
in NotePad delivers no value to %filename. Running the example file in Windows 10 from Git Bash with the same JAR File provides a proper output.Reproduction Steps to reproduce the behavior:
PlantUmlViewer/plantuml-1.2024.3.jar
Expected behavior
Can you explain the difference in processing XML Export results in Notepad to the Git Bash processing (Comparing the code makes this visible)?
Is it possible to run it in Notepad and achieve the same result:
Code PlantUML-buildin-functions.puml
Environment
Additional information
Maybe the parameter -filedir might enable the proper setting.
Also the !include of files with relative path descriptions
./file.puml
or../path/file.puml
does not work in my environment of Notepad++.