Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getenv() function has stopped working on macOS 14.4.1 using plantuml version 1.2024.3 #1725

Open
kdorking opened this issue Apr 4, 2024 · 2 comments
Labels

Comments

@kdorking
Copy link

kdorking commented Apr 4, 2024

Describe the bug
The getenv() function has stopped working. The following statement used to work correctly
!$ROOT_DIR = %getenv("SN_DATA_MODEL_DIR")

Now there is no error generated but the getenv() call returns nothing and the variable $ROOT_DIR is not set.

To Reproduce
using the following version of PlantUML:

PlantUML version 1.2024.3 (Thu Feb 15 14:40:05 EST 2024)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US

and the following test.puml file contents:

@startuml
!$ROOT_DIR = %getenv("SN_DATA_MODEL_DIR")
!$DATE = %date("yyyy.MM.dd' at 'HH:mm")
A -> B :$ROOT_DIR
A1 -> B1 :$DATE
@enduml

enter the following command:
plantuml test.puml

Expected behavior
The PNG file produced should have the following on the line going from A to B
"/Users/kd353c/workspace-st_nast/tnidm/Data_Models"

Screenshots
image

Desktop (please complete the following information):

  • macOS
  • Version 14.4.1

Additional context
I have the same issue when using VSCode PlantUML version 2.18.0 extension

@github-actions github-actions bot added the triage label Apr 4, 2024
@The-Lum
Copy link
Collaborator

The-Lum commented Apr 10, 2024

Hi @kdorking, and all,

  • What is your security profile?
  • Could you have a look on security profile doc.?

Ref.:

If that can help,
Regards,
Th.

@kdorking
Copy link
Author

Hi Th,

Setting the security profile had no impact on the problem; the getenv function still does not work. Thanks for the suggestion.

Regards,
Keith

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants