-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
As Scala lacks methods for setting environment variables, simulation of them for code that consumes environment is complicated.
I got away with build settings like that:
fork in run := true
envVars in run := Map(
"MY_VAR" -> "MY VALUE"
)Example:
println(sys.env("MY_VAR"))
Thread.sleep(5000)The problems with that approach are:
- the console output of the program is displayed differently than in normal mode (sbt prefix);
- after program termination the bottom panel switches to the program output (which stays empty forever), effectively hiding the real output.
I suggest to add a tab where the user could set environment variables in an intuitive way.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels