GoLand 2019.1 cannot paste environment variables
The same as here https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003348099-Pycharm-2019-1-cannot-paste-environment-variables
The build
GoLand 2019.1 Build #GO-191.6183.86, built on March 27, 2019
Please sign in to leave a comment.
this has to be the most infuriating bug ever
Sorry for inconvenience. Please update to 2019.1.1, the issue (https://youtrack.jetbrains.com/issue/GO-7094) is fixed there.
Copy/paste works, but then the ENV variable aren't forwarded to the executed program.
Just set an env and try this code, you won't see it appear.
https://play.golang.org/p/1rapfCyavQ_s
version used:
GoLand 2019.1.1
Build #GO-191.6707.68, built on April 17, 2019
JRE: 1.8.0_202-release-1483-b44 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Amaari, it works fine in my case, environment variables are passed to the go program. Please check if this version works for you: https://play.golang.org/p/8zwBGGepZ9O.
I do get OS envs, just not those defined in the Run/Debug configurations.
Please provide a screenshot of the run configuration settings.
Found the problem, if the option "run as priviledge user" is enabled, the envs are forwarded to the program.
Filed https://youtrack.jetbrains.com/issue/GO-7360, please watch it.