Skip to content

jetbrains-jdk: add missing runtime dependency.#428139

Merged
fabianhjr merged 1 commit intoNixOS:masterfrom
aoli-al:jdk-add-dependency
Jul 24, 2025
Merged

jetbrains-jdk: add missing runtime dependency.#428139
fabianhjr merged 1 commit intoNixOS:masterfrom
aoli-al:jdk-add-dependency

Conversation

@aoli-al
Copy link
Member

@aoli-al aoli-al commented Jul 24, 2025

Things done

Add missing dependency according to: https://github.com/JetBrains/JetBrainsRuntime/blob/da1ad417adde9b6766e2f3777004d55f52a0ed32/.github/README.md?plain=1#L164

This prevents Intellij idea from crashing when -Dawt.toolkit.name=WLToolkit is set.

Stack trace:

-----
JRE: 21.0.6+6-nixos amd64 (JetBrains s.r.o.)
/nix/store/gl7nsv9a75wzji9g0fd1yc1mbi8pvpln-jetbrains-jdk-jcef-21.0.6-b895.109/lib/openjdk

-----
Also, a UI exception occurred in an attempt to show the above message:
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.wl.WLToolkit
        at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:75)
        at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:595)
        at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:213)
        at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:232)
        at com.intellij.platform.ide.bootstrap.StartupErrorReporter.showError(StartupErrorReporter.java:138)
        at com.intellij.platform.ide.bootstrap.StartupErrorReporter.showError(StartupErrorReporter.java:99)
        at com.intellij.idea.Main.mainImpl(Main.kt:86)
        at com.intellij.idea.Main.main(Main.kt:47)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: No such file or directory (libxkbcommon.so) [in thread "DefaultDispatcher-worker-7"]
        at java.desktop/sun.awt.wl.WLKeyboard.initialize(Native Method)
        at java.desktop/sun.awt.wl.WLKeyboard.<init>(WLKeyboard.java:37)
        at java.desktop/sun.awt.wl.WLToolkit.<clinit>(WLToolkit.java:167)
        at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:75)
        at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:595)
        at com.intellij.platform.ide.bootstrap.UiKt$initAwtToolkit$2.invokeSuspend(ui.kt:139)
        at com.intellij.platform.ide.bootstrap.UiKt$initAwtToolkit$2.invoke(ui.kt)
        at com.intellij.platform.ide.bootstrap.UiKt$initAwtToolkit$2.invoke(ui.kt)
        at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
        at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
        at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
        at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span(tracer.kt:56)
        at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span$default(tracer.kt:48)
        at com.intellij.platform.ide.bootstrap.UiKt.initAwtToolkit(ui.kt:138)
        at com.intellij.platform.ide.bootstrap.UiKt.access$initAwtToolkit(ui.kt:1)
        at com.intellij.platform.ide.bootstrap.UiKt$scheduleInitAwtToolkit$task$1$1.invokeSuspend(ui.kt:121)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Jul 24, 2025
@nix-owners nix-owners bot requested a review from edwtjo July 24, 2025 19:34
@aoli-al aoli-al force-pushed the jdk-add-dependency branch from c6fe2ca to 07215ec Compare July 24, 2025 19:36
@aoli-al aoli-al closed this Jul 24, 2025
@aoli-al aoli-al reopened this Jul 24, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 24, 2025
@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Jul 24, 2025
@fabianhjr fabianhjr merged commit 565fa53 into NixOS:master Jul 24, 2025
36 of 52 checks passed
@fabianhjr fabianhjr added 12.approvals: 3+ This PR was reviewed and approved by three or more persons. and removed 12.approvals: 2 This PR was reviewed and approved by two persons. labels Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 3+ This PR was reviewed and approved by three or more persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants