omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

IntelliJ cannot be updated

Open axelfontaine opened this issue 5 months ago • 6 comments

When launched as a normal user, you get:

Image

When trying to launch with sudo it fails before starting:

Image

While the Arch package is probably at fault here, maybe Omarchy should ship with its own install script that installs the package (or from upstream) and then sets the correct permissions.

axelfontaine avatar Sep 01 '25 18:09 axelfontaine

No problem using the toolbox. How did you install your Intellij ?

c4software avatar Sep 01 '25 18:09 c4software

@c4software Using the AUR package.

axelfontaine avatar Sep 01 '25 19:09 axelfontaine

Try via the Toolbox (also in AUR), no issue to install / update IDE here.

c4software avatar Sep 01 '25 19:09 c4software

I did and it installed correctly. Through it, I installed the latest version of IntelliJ and it started fine.

However, I couldn't check the update as it was already up to date, but plugins installed fine as well.

Only the AI advertisement popup somehow wasn't clickable with the mouse after checking out an open-source GitHub repo. Probably a windowrule is missing there...

I still think it may be worth having dedicated IntelliJ/JetBrains install script that picks the correct package and takes care of all quirks, potentially available directly from the Omarchy menu.

axelfontaine avatar Sep 01 '25 19:09 axelfontaine

Did you enable the Wayland backend ?

Starting with the 2024.2 EAP, however, users can run IntelliJ-based IDEs on Wayland natively by adding: -Dawt.toolkit.name=WLToolkit to their VM options (Help | Edit Custom VM Options…). This will completely bypass the XWayland compatibility layer and provide all the benefits that Wayland has to offer.

But yes, the current support of Hyprland is not perfect with Jetbrains IDE. In the latest version we remove some rules, but I had more success with this rules for me :

# Fixing popup size issue
windowrule = size 50% 50%, class:(.*jetbrains.*)$, title:^$,floating:1

# Fix tooltips (always have a title of `win.<id>`)
windowrule = noinitialfocus, class:^(.*jetbrains.*)$, title:^(win.*)$
windowrule = nofocus, class:^(.*jetbrains.*)$, title:^(win.*)$

# Fix tab dragging (always have a single space character as their title)
windowrule = noinitialfocus, class:^(.*jetbrains.*)$, title:^\\s$
windowrule = nofocus, class:^(.*jetbrains.*)$, title:^\\s$

# Avoid unclickable window (see https://github.com/hyprwm/Hyprland/issues/4257#issuecomment-2875655706)
windowrulev2 = tag +jb, class:^jetbrains-.+$,floating:1
windowrulev2 = stayfocused, tag:jb
windowrulev2 = noinitialfocus, tag:jb

c4software avatar Sep 01 '25 19:09 c4software

Starting with the 2024.2 EAP, however, users can run IntelliJ-based IDEs on Wayland natively by adding: -Dawt.toolkit.name=WLToolkit to their VM options (Help | Edit Custom VM Options…). This will completely bypass the XWayland compatibility layer and provide all the benefits that Wayland has to offer.

This ☝️ should be the default IMO! That single setting fixed my issue with Intellij being twice the size on my external monitor, but not on my laptop screen, AND the flickering menu buttons on the right side.

fowlie avatar Sep 02 '25 07:09 fowlie

The IntelliJ folks were at Rails World and promised to have someone do a full sweep of what's needed to get everything working out of the box. But if there are some users here that could ask on their forums that might help things along 👌

dhh avatar Sep 10 '25 19:09 dhh