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
jetbrains.gateway: init at 223.6160.27 #195132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried it out using IDEA Community against a VM via ssh, I got it to compile a simple Java hello world.
The IDE does throw a lot of exceptions though (example, shows up as a red notification in the bottom right), I don't know if this is our fault for using a bad JDK or an upstream problem.
7a159d2
to
2b387a0
Compare
I've mainly been using CLion, while I didn't notice the same issues there are some other problems such as the IDE can't be restarted remotely, plugins don't behave the same way as when running natively etc. The logs don't seem helpful enough to diagnose this issue. I don't have another non nixos system to verify these issues, but I think Gateway is at least usable for now, more importantly other IDEs can also launch a remote instance once the appropriate env var is set. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/jetbrains-gateway-client-support-on-nixos/18108/18 |
Jetbrains IDEs download the remote client GUI on each invocation. This client is not patched for Nix and includes its own JDK. JDK selection can be overriden through environment variable (to a Nix patched version). Previously this was done with `JETBRAINSCLIENT_JDK`, now it should be done with `JETBRAINS_CLIENT_JDK`. See previous PR NixOS#195132.
Description of changes
Add JetBrains Gateway. This has been tested against JetBrains JDK 17 to be working on NixOS unstable. There is also a minor fix in environment variables for the JetBrains Client to launch correctly from any of the JetBrains IDEs including this as well.
I don't have a darwin device to test this, would appreciate if darwin users can try it out as well.
Credits to https://discourse.nixos.org/t/jetbrains-gateway-client-support-on-nixos/18108 on identifying the additional environment variable to be set.
This should supersede the previous PR #148035.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes