Hi, I would like to implement a `nix-shell` integration for the IntelliJ Platform (i.e. see issue #1 of nix-idea plugin). Nix-shell is a tool to launch a shell with a specific environment based on some configuration. It is kind of similar to virtualenv, but not specific to Python.
My problem is that IntelliJ doesn't seem to have universal extension points for modifying the environment when launching processes within a project. For example, the following extension points all seemingly have the same objective, but are specific to their own IDE:
- com.intellij.runConfigurationExtension (Java)
- Pythonid.runConfigurationExtension (Python)
- cidr.runConfigurationExtension (C/C++)
- com.goide.runConfigurationExtension (Go)
- org.jetbrains.plugins.ruby.runConfigurationExtension (Ruby)
- org.rust.runConfigurationExtension (Rust)
Note that some IDEs are missing. I don't know if there are similar extension points for them. Besides that, I also found the following extension points which I probably also have to implement:
There might be many more extension points I have missed. In addition to that, I should probably also implement new SDK detectors if I want the SDK from the environments to be detected. This is a lot of effort, especially because I would have to introduce an optional dependency to every IDE available. It is also rather error-prone because I might easily miss some extension points for specific IDEs. It might also be possible that some cases in some IDEs don't even have extension points for changing the environment.
So here are my questions. Did I miss something which would make the implementation easier? If not, is it possible to add extension points which simplify this process? If I don't find another solution, I might be willing to contribute to the open source platform, but I am not sure about the process.