Package Details: clion 1:2022.2.4-1

Git Clone URL: https://aur.archlinux.org/clion.git (read-only, click to copy)
Package Base: clion
Description: C/C++ IDE. Free 30-day trial.
Upstream URL: http://www.jetbrains.com/clion
Keywords: C C++ IDE JetBrains
Licenses: custom
Submitter: rdoursenaud
Maintainer: Zrax
Last Packager: Zrax
Votes: 210
Popularity: 1.11
First Submitted: 2015-04-14 21:23 (UTC)
Last Updated: 2022-10-11 15:11 (UTC)

Dependencies (18)

Sources (2)

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

Corpswalker commented on 2022-08-12 09:46 (UTC) (edited on 2022-08-12 09:53 (UTC) by Corpswalker)

Hi had some troubles starting CLion on my Mac M1 and fixed (more of a workaround since JetBrains is not supporting it officially) the aarch64 build with a compatible jbr build and fsnotifier. Here is my patch:


diff --git a/PKGBUILD b/PKGBUILD
index 387d1fb..1a15fe9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,9 @@ _dlname=CLion
 pkgver=2022.2
 pkgrel=1
 epoch=1
+jbr_ver=17.0.3
+jbr_build=aarch64-b469
+jbr_minor=37
 pkgdesc="C/C++ IDE. Free 30-day trial."
 arch=('x86_64' 'aarch64')
 options=(!strip)
@@ -20,8 +23,12 @@ license=('custom')
 makedepends=('rsync')
 source=("https://download.jetbrains.com/cpp/${_dlname}-${pkgver}.tar.gz"
         "jetbrains-${pkgbase}.desktop")
+source_aarch64=("https://cache-redirector.jetbrains.com/intellij-jbr/jbr-${jbr_ver}-linux-${jbr_build}.${jbr_minor}.tar.gz"
+                "https://github.com/JetBrains/intellij-community/raw/master/bin/linux/aarch64/fsnotifier")
 sha256sums=('94ffbdf82606f2f90618c1fdb89432d627e7f24ae158b36a591da2c303047436'
             '13c9e7c7f6ef57ee573d133bf30a599390a99087a1f578caea62020e0f742587')
+sha256sums_aarch64=('737242bdd6795a14897ff97bb0bb8d99e7a1a5878a6d2f942712147b20312320'
+                    'eb3c61973d34f051dcd3a9ae628a6ee37cd2b24a1394673bb28421a6f39dae29')
 noextract=("${_dlname}-${pkgver}.tar.gz")

 build() {
@@ -29,6 +36,16 @@ build() {
     mkdir -p "${srcdir}/opt/${pkgbase}"
     bsdtar --strip-components 1 -xf "${_dlname}-${pkgver}.tar.gz" \
            -C "${srcdir}/opt/${pkgbase}"
+
+    # https://youtrack.jetbrains.com/articles/IDEA-A-48/JetBrains-IDEs-on-AArch64#linux
+    if [ "${CARCH}" == "aarch64" ]; then
+        cd "${srcdir}"
+        cp -a fsnotifier opt/${pkgbase}/bin/fsnotifier
+        chmod +x opt/${pkgbase}/bin/fsnotifier
+        rm -r opt/${pkgbase}/jbr
+        cp -a jbr-${jbr_ver}-${jbr_build} opt/${pkgbase}/jbr
+        cd ../
+    fi
 }

 package_clion() {

txtsd commented on 2022-08-04 10:19 (UTC)

Since the last update, it works if I launch it via CLI. But it crashes without explanation if I launch it via a launcher/.desktop file, after the splash screen.

tpkee commented on 2022-06-16 10:04 (UTC) (edited on 2022-06-16 10:04 (UTC) by tpkee)

I installed Clion and Clion-jre but it doesn't start (wayland). If I try to run clion by terminal I get just this: 2022-06-16 12:02:54,955 [ 2] WARN - j.u.prefs - Prefs file removed in background /home/acc/.java/.userPrefs/prefs.xml

deltaclock commented on 2022-04-11 15:16 (UTC)

Actually there is a fix to make this package work on JDK 17 but not sure if it will behave weirdly in specific setups.

Add these options to /opt/clion/bin/clion64.vmoptions

--add-opens=java.desktop/java.awt.event=ALL-UNNAMED
--add-opens=java.desktop/sun.font=ALL-UNNAMED
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/sun.awt=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED
--add-opens=java.desktop/sun.swing=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.desktop/java.awt.peer=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.datatransfer=ALL-UNNAMED
--add-exports=java.desktop/sun.font=ALL-UNNAMED

Based on: https://youtrack.jetbrains.com/issue/JBR-745#focus=Comments-27-5917038.0-0

miten commented on 2022-02-14 12:14 (UTC) (edited on 2022-02-14 12:14 (UTC) by miten)

swift in opt dependencies should be renamed to swift-language

recolic commented on 2021-10-29 07:35 (UTC) (edited on 2021-10-29 07:35 (UTC) by recolic)

I think clion should depends on clion-jre. I'm also experiencing the same error.

If one day clion runs on latest jre-openjdk-headless, we can make clion depends on jre-openjdk-headless. It's not a good idea to ask users to manage dependencies by themselves.

Zrax commented on 2021-09-01 20:38 (UTC)

@deltaclock: You will need to either install the clion-jre sub-package that is built by this PKGBUILD, or downgrade your system JDK to an older version (jdk 11 should be supported since that's the version clion-jre uses).

deltaclock commented on 2021-09-01 17:21 (UTC)

Hello, just installed this today and I get this error. Tried changing some vmoptions but didn't really help.

OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.intellij.util.lang.PathClassLoader"). To use archived non-system classes, this property must not be set
2021-09-01 20:18:08,174 [    250]  ERROR - .ide.ui.laf.darcula.DarculaLaf - Unable to make field private static final java.lang.Object javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY accessible: module java.desktop does not "opens javax.swing.text.html" to unnamed module @53bb4a07 
java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.Object javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY accessible: module java.desktop does not "opens javax.swing.text.html" to unnamed module @53bb4a07
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
    at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
    at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
    at com.intellij.ide.ui.laf.darcula.DarculaLaf.patchStyledEditorKit(DarculaLaf.java:168)
    at com.intellij.ide.ui.laf.darcula.DarculaLaf.getDefaults(DarculaLaf.java:127)
    at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:592)
    at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$23(StartupUtil.java:490)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2021-09-01 20:18:08,176 [    252]  ERROR - .ide.ui.laf.darcula.DarculaLaf - CLion 2021.2.1  Build #CL-212.5080.54 
2021-09-01 20:18:08,176 [    252]  ERROR - .ide.ui.laf.darcula.DarculaLaf - JDK: 16.0.2; VM: OpenJDK 64-Bit Server VM; Vendor: N/A 
2021-09-01 20:18:08,176 [    252]  ERROR - .ide.ui.laf.darcula.DarculaLaf - OS: Linux 
2021-09-01 20:18:08,177 [    253]  ERROR -        #com.intellij.idea.Main - UI initialization failed 
com.intellij.ide.plugins.StartupAbortedException: UI initialization failed
    at com.intellij.idea.StartupUtil.lambda$start$15(StartupUtil.java:265)
    at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
    at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
    at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.util.concurrent.CompletionException: java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x53bb4a07) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x53bb4a07
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787)
    ... 14 more
Caused by: java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x53bb4a07) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x53bb4a07
    at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$23(StartupUtil.java:507)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
    ... 14 more
2021-09-01 20:18:08,178 [    254]  ERROR -        #com.intellij.idea.Main - CLion 2021.2.1  Build #CL-212.5080.54 
2021-09-01 20:18:08,178 [    254]  ERROR -        #com.intellij.idea.Main - JDK: 16.0.2; VM: OpenJDK 64-Bit Server VM; Vendor: N/A 
2021-09-01 20:18:08,178 [    254]  ERROR -        #com.intellij.idea.Main - OS: Linux 

Start Failed
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

com.intellij.ide.plugins.StartupAbortedException: UI initialization failed
    at com.intellij.idea.StartupUtil.lambda$start$15(StartupUtil.java:265)
    at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
    at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
    at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.util.concurrent.CompletionException: java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x53bb4a07) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x53bb4a07
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787)
    ... 14 more
Caused by: java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x53bb4a07) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x53bb4a07
    at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$23(StartupUtil.java:507)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
    ... 14 more

-----
Your JRE: 16.0.2+7 amd64 (N/A)
/usr/lib/jvm/java-16-openjdk

Start Failed
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x53bb4a07) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x53bb4a07
    at com.intellij.idea.StartupUtil.start(StartupUtil.java:297)
    at com.intellij.idea.Main.bootstrap(Main.java:123)
    at com.intellij.idea.Main.main(Main.java:84)

-----
Your JRE: 16.0.2+7 amd64 (N/A)
/usr/lib/jvm/java-16-openjdk

nesuma commented on 2021-08-11 11:18 (UTC)

With no JDK installed executing Clion did not return any message to me and I had to go trough the shell script to find the breaking lines. I know that "optional" packages were listed during installation but some feedback from the executable would be nice

Algunenano commented on 2021-07-29 10:57 (UTC)

Hi, with the update to 2021.2 Jetbrains removed x86 support and renamed fsnotifier64 to fsnotifier (the name of the old 32b program). The PKGBUILD needs to be changed to stop deleting fsnotifier.