IntelliJ overwriting PATH Env variable

Answered

Hello, recently I have noticed IntelliJ is overwriting my PATH variable inside the software to only include a link to the idea64.exe executable. My system and user PATH variables in Windows 10 are unaffected; however, the path being overwritten makes it so I can't use the in-house terminal or git commands from my Gradle build file. I'm not sure when this bug appeared, but it was sometime recently. I use IntelliJ Version 2020.2.3 (#IU-202.7660.26). I checked by typing PATH in the terminal, and got "PATH=C:\Users\(my user)\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\202.7660.26\bin\idea64.exe". I also checked whether IntelliJ was inheriting system environment variables, and it is. However, looking at the PATH variable in this list also returns the same value. I would like my PATH to work again, and I couldn't find any existing resources detailing this issue/bug. Thanks.

0
2 comments

Can't reproduce that. 

Moreover, it should have been fixed in 2019.3 in the scope of https://youtrack.jetbrains.com/issue/IDEA-218032

If it is still the case for you, please file a new issue at https://youtrack.jetbrains.com/newIssue?project=IDEA attaching idea.log and screenshots of the reproducing. 

0

This was actually a bug with the batch script I was using to start up IntelliJ that was overwriting the path variable on startup. I am using a batch script to open IntelliJ since the toolbox currently doesn't have a good solution for updating shortcuts when software is updated since the folder changes. I realized this was the issue when I tried to directly open the executable and the issue wasn't present, and I have fixed it on my end now. Sorry for the confusion on this.

0

Please sign in to leave a comment.