fehnomenal / intellij-direnv

direnv integration for JetBrains IDEs
MIT License
67 stars 21 forks source link

Unix **environ is never modified #47

Open ascheman opened 11 months ago

ascheman commented 11 months ago

The Plugin manipulates the Java System environment (cf. System.getenv() API). Unfortunately, Java only caches the (initial) environment and modifications are never written back to the native Unix environment. Therefore, the (changed) environment is in particular never forwarded to spawned processes (e.g., in the IntelliJ Vale plugin).

The Plugin should implement a change to the native environment, e.g., via the Unix putenv library function.

At least a prominent warning should become part of the documentation, that the Plugin does not (yet) change the native process environment of IntelliJ.

mattiasflodin commented 9 months ago

I guess this explains why neither CLion nor RustRover will pick up environment variables when building the project? Which... kind of makes it impossible to build anything with dependencies on NixOS.