8 comments
Comment actions Permalink

this has to be the most infuriating bug ever

0
Comment actions Permalink

Sorry for inconvenience. Please update to 2019.1.1, the issue (https://youtrack.jetbrains.com/issue/GO-7094) is fixed there.

0
Comment actions Permalink

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

0
Comment actions Permalink

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.

0
Comment actions Permalink

I do get OS envs, just not those defined in the Run/Debug configurations.

0
Comment actions Permalink

Please provide a screenshot of the run configuration settings.

0
Comment actions Permalink

Found the problem, if the option "run as priviledge user" is enabled, the envs are forwarded to the program.

0

Please sign in to leave a comment.