Environment variables on Windows 10 are not being updated in the IDE
已完成
I recently reinstalled Windows 10. I'm using Goland and changed the GOPATH env, because I have all my projects on a separate disk. When I use the integrated terminal in IDE the old environment is returned every time, even after Windows restart. If I open cmd or git-bash in their own window the env is fine, but I prefer to use the terminal in IDE.
The problem persists both when I set the terminal to cmd or git-bash. I also tried to set the GOPATH variable in Settings->Tools->Terminal - no change. The IDE is installed through JetBrains Toolbox. The issue si the same whether I launch it through toolbox or from a .exe.
Also I uninstalled and installed it back, no luck.
请先登录再写评论。
Hi,
First of all, please check GOPATH variable inside the IDE: File | Settings | Go | GOPATH and make sure that it's the correct one.
Please, pay attention that you need to close the IDE, then close Toolbox App, and start Toolbox App and GoLand for the change to take place.
I hope it helps.
Hi, Daniil,
That indeed helped, thank you.
In the File->Settings->Go->GOPATH there is a global default value for GOPATH. This value cannot be removed, but can be set manually to a different location.
Btw "Use GOPATH that's defined in system environment" at the bottom was checked, but it still did not pick up the one I set in the Windows system environment settings.
I'll take a look at the issue, thanks for the update.