jetbrains.jdk: fix fallback to default X11 cursor#479767
jetbrains.jdk: fix fallback to default X11 cursor#479767MattSturgeon merged 1 commit intoNixOS:masterfrom
Conversation
|
Just tried it with |
|
I can't test locally at the moment, but note that this PR can't be built with nixpkgs-review-gha. The build takes multiple hours and then fails with the runner losing communication, probably going OOM. I don't know if this is a GitHub issue or something caused by this PR, I haven't experienced it yet with building the JetBrains IDEs https://github.com/theCapypara/nixpkgs-review-gha/actions/runs/20972181982 |
|
Tried the patch with idea and confirm it fixes the scale and cursor. It is unclear why build time env affects this. Is it because these flags are missing? https://github.com/NixOS/nixpkgs/blob/54671be46b6c40328559e3c06b7b31a919455b00/pkgs/development/compilers/openjdk/generic.nix#L451C1-L462C8 |
|
Can we please confirm why nixpkgs-review fails before merging? I also wasn't able to build this PR locally with 32 GB RAM, my machine ran out of memory I think it's animeko, so unrelated to this PR probably, but I'd like to be sure. Can anybody else build this? I hope I'll have some time later today to investigate this. My current attempt via GHA is still running. 5h already now, this is very unusual |
|
theCapypara
left a comment
There was a problem hiding this comment.
I was able to build now locally when skipping animeko, but I notice that pycharm-oss and idea-oss are using quite a significant amount of memory to build. I'm not sure this was the case before, I don't think so?
The oss packages also run (and show the correct cursor).
I personally don't think animeko should block this, if the issue is even caused by this PR, so LGTM!
I started a nixpkgs-review-gha run without animeko, to see if aarch64 builds.
Thanks for figuring this out!
pinging @pokon548 if you want to look into animeko.
This comment has been minimized.
This comment has been minimized.
|
MattSturgeon
left a comment
There was a problem hiding this comment.
nixpkgs-review-gha still fails, so the memory requirements really seem to be higher. I don't have the time at the moment to directly compare before and after.
It would be great if we could fix this, since this will probably also prevent the update scripts of the
osspackages from running and make reviewing IDE updates harder, but I'd still rather merge this to fix the cursor and scaling issues.
If there is an issue caused by some env attr that gets passed into the JDK derivation, that's worth investigating.
But this PR's actual diff is very small and seems trivially correct to me; when overriding env or any other derivation attr, you almost certainly want to preserve prev attrs rather than overriding them all.
I notice you were able to run nixpkgs-review-gha after all, so maybe it was a transient GHA runner issue rather than an actual package issue?
|
Successfully created backport PR for |
The cursor theme in all JetBrains products on X11 has been broken since the
__structuredAttrschanges were introduced (see #425529 (comment)):The root cause seems to be a complete
envoverride of the original JDK package. These changes fix the cursor theme in both PyCharm and CLion for me.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.