Skip to content
New issue

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

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

Already on GitHub? # to your account

Scripting: EnvVar and GlobalEnvVar missing functionality #4251

Open
2 of 4 tasks
Maxeh opened this issue Mar 17, 2025 · 0 comments
Open
2 of 4 tasks

Scripting: EnvVar and GlobalEnvVar missing functionality #4251

Maxeh opened this issue Mar 17, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Maxeh
Copy link

Maxeh commented Mar 17, 2025

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying

Bruno version

1.39.1

Operating System

MacOS 15.3.2

Describe the bug

It seems scripting functionality regarding envVars and globalEnvVars is not implemented properly.

I can set environment variables with setEnvVar in my scripts, but when I use deleteEnvVar nothing happens and the variables still exist when I view them with the "eye" symbol (variables).

Also I cannot set global env vars with setGlobalEnvVar. I can run the method but no value is set, next call to getGlobalEnvVar returns null. Additionally, the method deleteGlobalEnvVar seems not to exist at all.

Summary:

  • deleteEnVar not working
  • setGlobalEnvVar not working
  • deleteGlobalEnvVar does not exist

Additional question:
Should it even be possible to set envVars/globalEnvVars in the script or should they be read only? After reading about variables I see no valid reason to set those vars in script manually. When I understand it correctly, you should use runtime/ephemeral variables with setVar() and getVar() instead.

.bru file to reproduce the bug

No response

Screenshots/Live demo link


@Maxeh Maxeh added the bug Something isn't working label Mar 17, 2025
@sreelakshmi-bruno sreelakshmi-bruno self-assigned this Mar 19, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants