Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix **environ is never modified #47

Open
ascheman opened this issue Nov 24, 2023 · 1 comment
Open

Unix **environ is never modified #47

ascheman opened this issue Nov 24, 2023 · 1 comment

Comments

@ascheman
Copy link

ascheman commented Nov 24, 2023

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants