Closed Stelios123 closed 4 months ago
Let's check whether this will work by passing RAD_HOME
as an environment variable to IntelliJ (vmoptions or something)
Let's fix this for linux and mac at least and just investigate and document whether it is possible for windows.
An update on this after spending some time investigating the situation. Custom VM options is not helping (in any OS), as we need to set an env var (not system properties), which is also not at all needed within the IDE itself, but is passed on to spawned git process. Possible solutions include:
git
process, i.e. replaced by a script that exports necessary env vars and then delegates to the real git. This sounds very promising for Windows, as well..profile
(and rebooting). These env vars will be picked up by any running process (including spawned non-interactive git). Unsure for windows.the .profile
route sounds like a good-enough compromise, considering that most people will just use the default RAD_HOME. We now have a way for the plugin to work for the ones who don't as well, so let's just go with that.
When RAD_HOME is anything but the default, the
git
process started by IntelliJ ignores theRAD_HOME
configured in the IDE.All git operations of the radicle-remote-helper should take that into account, so we need to find out a way to pass this information to spawned git processes.