Bug 286741 - devel/jetbrains-clion: Java minimum version
Summary: devel/jetbrains-clion: Java minimum version
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Joel Bodenmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-12 13:41 UTC by Joel Bodenmann
Modified: 2025-05-28 13:36 UTC (History)
2 users (show)

See Also:
dmitry.wagin: maintainer-feedback+
jbo: maintainer-feedback?


Attachments
jetbrains-clion.diff (1.15 KB, patch)
2025-05-25 11:41 UTC, Dmitry Wagin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Bodenmann freebsd_committer freebsd_triage 2025-05-12 13:41:24 UTC
Currently, the Makefile of devel/jetbrains-clion has in it:

> JAVA_VERSION=	17+

While CLion itself works with java 17, many plugins don't anymore as they are built with runtime >=65.
One example is the ideavim plugin:

> error: com/maddyhome/idea/vim/listener/IdeaSpecifics$VimActionListener has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0,

Does it make sense to bump JAVA_VERSION to at least 21?

This might apply to other */jetbrains-* ports as well.
Comment 1 Joel Bodenmann freebsd_committer freebsd_triage 2025-05-19 18:44:13 UTC
I set my poudriere's default java version to 21 and JetBrains tools have been working fine for me since then.
Comment 2 Dmitry Wagin 2025-05-25 11:41:22 UTC
Created attachment 260702 [details]
jetbrains-clion.diff

Please check this patch.
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-05-28 13:31:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6d1f38e578e6973ea284893c34fdbcf36486c567

commit 6d1f38e578e6973ea284893c34fdbcf36486c567
Author:     Dmitry Wagin <dmitry.wagin@ya.ru>
AuthorDate: 2025-05-28 13:03:59 +0000
Commit:     Joel Bodenmann <jbo@FreeBSD.org>
CommitDate: 2025-05-28 13:03:59 +0000

    devel/jetbrains-clion: Bump JAVA_VERSION

    This bumps the JAVA_VERSION from 17 to 21 as many plugins are now
    requiring java runtime >=65.

    While here, also disable automatic update checks.

    PR:             286741
    Reported by:    jbo

 devel/jetbrains-clion/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 4 Joel Bodenmann freebsd_committer freebsd_triage 2025-05-28 13:36:12 UTC
Committed - Thanks!