lppedd/idea-conventional-commit

2023.1 Base version support after thought

bric3 opened this issue ยท 9 comments

bric3 commented

After extending support for 231, I believe it's time to upgrade the base version.

Building on mac is harder now on ARM based macs (M1, M2, etc), the Jetbrains Runtime on 202 didn't have an aarch64 variant. Which causes some problems during the build.

For reference, one can build the artifact using Docker Desktop for Mac :

docker run -u gradle --mount type=bind,source=$(pwd),target=/home/gradle/project --workdir=/home/gradle/project --platform linux/aarch64 -it gradle:8.0-jdk17 gradle buildPlugin

The first ARM based support landed in 2020.3 I think. Additionally to helping regarding the build, /bumping the base version could help supporting this plugin by giving access to new APIs.

This is the blog post where they announce Apple Silicon compatibility.
https://blog.jetbrains.com/idea/2020/12/intellij-idea-2020-3-1/

I'll try to find out the exact version tho.

I went through issues and blog posts.

Initial support seems to be on 203.6682.168.
If we want some Silicon fixes, we need to pick 203.8084.24.
If we want a fully working Silicon environment, we need to pick 211.6693.111.

@bric3 could you try which one of these builds fine? If the first one is ok, I'd pick that one.

bric3 commented

So I noted two things:

  1. I'm unsure why the build always fails if the type is IntelliJ Ultimate. I believe this is a bug in gradle-intellij-plugin. So I had to change the type

    platformType=IC
    Resource not found: /idea/nullApplicationInfo.xml Error
    2023-03-20 14:34:19,054 [    123]  ERROR - oncurrency.BoundedTaskExecutor - Resource not found: /idea/nullApplicationInfo.xml 
    java.lang.RuntimeException: Resource not found: /idea/nullApplicationInfo.xml
    	at com.intellij.openapi.application.ApplicationNamesInfo.loadData(ApplicationNamesInfo.java:30)
    	at com.intellij.openapi.application.ApplicationNamesInfo.initAndGetRawData(ApplicationNamesInfo.java:45)
    	at com.intellij.openapi.application.impl.ApplicationInfoImpl.getShadowInstance(ApplicationInfoImpl.java:452)
    

    The following assumes IC.

  2. The build fails on buildSearchableOptions task because this task actually runs the IDE.

    Using ./gradlew clean buildPlugin here's the different results (only from the :buildSearchableOptions task)

    And modifying the gradle.properties this way, e.g.

    platformVersion=211.6693.111
    pluginSinceBuild=211.6693
    With 203.6682.168
    > Task :buildSearchableOptions
    OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
    2023-03-20 15:07:25,863 [    305]   WARN -        #com.intellij.idea.Main - Unable to load JNA library (OS: Mac OS X 13.2.1)
    
    java.lang.UnsatisfiedLinkError: /Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/jna7580519500437583035.tmp: dlopen(/Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/jna7580519500437583035.tmp, 0x0001): tried: '/Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/jna7580519500437583035.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/jna7580519500437583035.tmp' (no such file), '/Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/   jna7580519500437583035.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64'))
            at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
            at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
            at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
            at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
            at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
            at java.base/java.lang.Runtime.load0(Runtime.java:768)
            at java.base/java.lang.System.load(System.java:1837)
            at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
            at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
            at com.sun.jna.Native.<clinit>(Native.java:195)
            at com.intellij.jna.JnaLoader.load(JnaLoader.java:17)
            at com.intellij.idea.StartupUtil.loadSystemLibraries(StartupUtil.java:640)
            at com.intellij.idea.StartupUtil.lambda$prepareApp$4(StartupUtil.java:232)
            at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216)
            at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27)
            at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195)
            at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:187)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
            at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
            at java.base/java.security.AccessController.doPrivileged(Native Method)
            at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
            at java.base/java.lang.Thread.run(Thread.java:834)
    Starting searchable options index builder
    Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable    the "Times" font to remove this warning.
    2023-03-20 15:07:27,820 [   2262]   WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: com.intellij] 
    2023-03-20 15:07:27,922 [   2364]  ERROR - openapi.options.ConfigurableEP - Cannot create configurable 
    com.intellij.diagnostic.PluginException: Cannot create class com.intellij.application.options.editor.GutterIconsConfigurable [Plugin: com.intellij]
            at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:725)
            at com.intellij.serviceContainer.ComponentManagerImpl.instantiateExtensionWithPicoContainerOnlyIfNeeded(ComponentManagerImpl.kt:754)
            at com.intellij.openapi.options.ConfigurableEP$ClassProducer.createElement(ConfigurableEP.java:425)
            at com.intellij.openapi.options.ConfigurableEP.createConfigurable(ConfigurableEP.java:332)
            at com.intellij.openapi.options.ex.ConfigurableWrapper.createConfigurable(ConfigurableWrapper.java:45)
            at com.intellij.openapi.options.ex.ConfigurableWrapper.wrapConfigurable(ConfigurableWrapper.java:39)
            at com.intellij.openapi.options.ex.ConfigurableWrapper.wrapConfigurable(ConfigurableWrapper.java:27)
            at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:313)
            at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:71)
            at com.intellij.ide.ui.search.SearchUtil.processProjectConfigurables(SearchUtil.java:52)
            at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:98)
            at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:81)
            at com.intellij.idea.ApplicationLoader$startApp$8$1$1.run(ApplicationLoader.kt:245)
            at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95)
            at com.intellij.idea.ApplicationLoader$startApp$8$1.run(ApplicationLoader.kt:244)
            at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:216)
            at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:24)
            at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:199)
            at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
            at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:324)
            at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:85)
            at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:134)
            at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
            at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:190)
            at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
            at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
            at java.base/java.security.AccessController.doPrivileged(Native Method)
            at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
            at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
            at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976)
            at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:843)
            at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454)
            at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)
            at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453)
            at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
            at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:501)
            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.lang.reflect.InvocationTargetException
            at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
            at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:684)
            ... 43 more
    Caused by: java.lang.AssertionError: JNA library is not available
            at com.intellij.ui.mac.foundation.Foundation.<clinit>(Foundation.java:32)
            at com.intellij.ui.mac.foundation.Foundation$NSAutoreleasePool.<init>(Foundation.java:489)
            at com.intellij.ui.components.MacScrollBarUI.callMac(MacScrollBarUI.java:200)
            at com.intellij.ui.components.MacScrollBarUI$Native.<init>(MacScrollBarUI.java:300)
            at com.intellij.ui.components.MacScrollBarUI$Style$1.<init>(MacScrollBarUI.java:251)
            at com.intellij.ui.components.MacScrollBarUI$Style.<clinit>(MacScrollBarUI.java:251)
            at com.intellij.ui.components.MacScrollBarUI.installUI(MacScrollBarUI.java:103)
            at java.desktop/javax.swing.JComponent.setUI(JComponent.java:688)
            at java.desktop/javax.swing.JScrollBar.setUI(JScrollBar.java:210)
            at com.intellij.ui.components.JBScrollBar.updateUI(JBScrollBar.java:88)
            at java.desktop/javax.swing.JScrollBar.<init>(JScrollBar.java:165)
            at com.intellij.ui.components.JBScrollBar.<init>(JBScrollBar.java:68)
            at com.intellij.ui.components.JBScrollBar.<init>(JBScrollBar.java:64)
            at com.intellij.ui.components.JBScrollPane.createVerticalScrollBar(JBScrollPane.java:305)
            at java.desktop/javax.swing.JScrollPane.<init>(JScrollPane.java:300)
            at java.desktop/javax.swing.JScrollPane.<init>(JScrollPane.java:352)
            at com.intellij.ui.components.JBScrollPane.<init>(JBScrollPane.java:92)
            at com.intellij.application.options.editor.GutterIconsConfigurable.$$$setupUI$$$(GutterIconsConfigurable.java)
            at com.intellij.application.options.editor.GutterIconsConfigurable.<init>(GutterIconsConfigurable.java:48)
            ... 48 more
    2023-03-20 15:07:27,923 [   2365]  ERROR - openapi.options.ConfigurableEP - IntelliJ IDEA 2020.3.1  Build #IC-203.6682.168 
    2023-03-20 15:07:27,924 [   2366]  ERROR - openapi.options.ConfigurableEP - JDK: 11.0.9.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
    2023-03-20 15:07:27,924 [   2366]  ERROR - openapi.options.ConfigurableEP - OS: Mac OS X 
    2023-03-20 15:07:27,924 [   2366]  ERROR - openapi.options.ConfigurableEP - Last Action:  
    Searchable options index builder failed
    java.lang.NoClassDefFoundError: Could not initialize class com.intellij.ui.components.MacScrollBarUI$Style
            at com.intellij.ui.components.MacScrollBarUI.installUI(MacScrollBarUI.java:103)
            at java.desktop/javax.swing.JComponent.setUI(JComponent.java:688)
            at java.desktop/javax.swing.JScrollBar.setUI(JScrollBar.java:210)
            at com.intellij.ui.components.JBScrollBar.updateUI(JBScrollBar.java:88)
            at java.desktop/javax.swing.JScrollBar.<init>(JScrollBar.java:165)
            at com.intellij.ui.components.JBScrollBar.<init>(JBScrollBar.java:68)
            at com.intellij.ui.components.JBScrollBar.<init>(JBScrollBar.java:64)
            at com.intellij.ui.components.JBScrollPane.createVerticalScrollBar(JBScrollPane.java:305)
            at java.desktop/javax.swing.JScrollPane.<init>(JScrollPane.java:300)
            at java.desktop/javax.swing.JScrollPane.<init>(JScrollPane.java:324)
            at com.intellij.ui.components.JBScrollPane.<init>(JBScrollPane.java:97)
            at com.intellij.ui.ToolbarDecorator$1.<init>(ToolbarDecorator.java:406)
            at com.intellij.ui.ToolbarDecorator.createPanel(ToolbarDecorator.java:406)
            at com.intellij.openapi.vcs.configurable.IssueNavigationConfigurationPanel.<init>(IssueNavigationConfigurationPanel.java:140)
            at com.intellij.openapi.vcs.configurable.VcsManagerConfigurable.buildConfigurables(VcsManagerConfigurable.java:118)
            at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:96)
            at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:288)
            at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:71)
            at com.intellij.ide.ui.search.SearchUtil.processProjectConfigurables(SearchUtil.java:52)
            at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:98)
            at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:81)
            at com.intellij.idea.ApplicationLoader$startApp$8$1$1.run(ApplicationLoader.kt:245)
            at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95)
            at com.intellij.idea.ApplicationLoader$startApp$8$1.run(ApplicationLoader.kt:244)
            at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:216)
            at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:24)
            at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:199)
            at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
            at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:324)
            at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:85)
            at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:134)
            at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
            at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:190)
            at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
            at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
            at java.base/java.security.AccessController.doPrivileged(Native Method)
            at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
            at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
            at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976)
            at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:843)
            at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454)
            at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)
            at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453)
            at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
            at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:501)
            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)
    
    > Task :buildSearchableOptions FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':buildSearchableOptions'.
    > Process 'command '/Users/brice.dutheil/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr_jcef-11_0_9_1-osx-aarch64-b1145.63/extracted/jbr/   Contents/Home/bin/java'' finished with non-zero exit value 255
    
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    With 203.8084.24
    > Task :buildSearchableOptions
    OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
    2023-03-20 14:59:46,991 [    115]   WARN -        #com.intellij.idea.Main - Unable to load JNA library (OS: Mac OS X 13.2.1) 
    java.lang.UnsatisfiedLinkError: /Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/jna14786198943767984420.tmp: dlopen(/Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/jna14786198943767984420.tmp, 0x0001): tried: '/Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/jna14786198943767984420.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/jna14786198943767984420.tmp' (no such file), '/Users/brice.dutheil/opensource/idea-conventional-commit/build/idea-sandbox/system/tmp/   jna14786198943767984420.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64'))
            at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
            at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
            at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
            at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
            at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
            at java.base/java.lang.Runtime.load0(Runtime.java:768)
            at java.base/java.lang.System.load(System.java:1837)
            at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
            at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
            at com.sun.jna.Native.<clinit>(Native.java:195)
            at com.intellij.jna.JnaLoader.load(JnaLoader.java:17)
            at com.intellij.idea.StartupUtil.loadSystemLibraries(StartupUtil.java:640)
            at com.intellij.idea.StartupUtil.lambda$prepareApp$4(StartupUtil.java:232)
            at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216)
            at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27)
            at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195)
            at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:187)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
            at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
            at java.base/java.security.AccessController.doPrivileged(Native Method)
            at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
            at java.base/java.lang.Thread.run(Thread.java:834)
    Starting searchable options index builder
    Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable    the "Times" font to remove this warning.
    2023-03-20 14:59:48,152 [   1276]   WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: com.intellij] 
    2023-03-20 14:59:48,241 [   1365]  ERROR - openapi.options.ConfigurableEP - Cannot create configurable 
    com.intellij.diagnostic.PluginException: Cannot create class com.intellij.application.options.editor.GutterIconsConfigurable [Plugin: com.intellij]
            at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:725)
            at com.intellij.serviceContainer.ComponentManagerImpl.instantiateExtensionWithPicoContainerOnlyIfNeeded(ComponentManagerImpl.kt:754)
            at com.intellij.openapi.options.ConfigurableEP$ClassProducer.createElement(ConfigurableEP.java:425)
            at com.intellij.openapi.options.ConfigurableEP.createConfigurable(ConfigurableEP.java:332)
            at com.intellij.openapi.options.ex.ConfigurableWrapper.createConfigurable(ConfigurableWrapper.java:45)
            at com.intellij.openapi.options.ex.ConfigurableWrapper.wrapConfigurable(ConfigurableWrapper.java:39)
            at com.intellij.openapi.options.ex.ConfigurableWrapper.wrapConfigurable(ConfigurableWrapper.java:27)
            at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:313)
            at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:71)
            at com.intellij.ide.ui.search.SearchUtil.processProjectConfigurables(SearchUtil.java:52)
            at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:98)
            at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:81)
            at com.intellij.idea.ApplicationLoader$startApp$8$1$1.run(ApplicationLoader.kt:245)
            at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95)
            at com.intellij.idea.ApplicationLoader$startApp$8$1.run(ApplicationLoader.kt:244)
            at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:216)
            at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:24)
            at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:199)
            at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
            at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:324)
            at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:85)
            at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:134)
            at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
            at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:190)
            at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
            at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
            at java.base/java.security.AccessController.doPrivileged(Native Method)
            at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
            at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
            at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976)
            at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:843)
            at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454)
            at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)
            at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453)
            at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
            at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:501)
            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.lang.reflect.InvocationTargetException
            at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
            at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:684)
            ... 43 more
    Caused by: java.lang.AssertionError: JNA library is not available
            at com.intellij.ui.mac.foundation.Foundation.<clinit>(Foundation.java:32)
            at com.intellij.ui.mac.foundation.Foundation$NSAutoreleasePool.<init>(Foundation.java:489)
            at com.intellij.ui.components.MacScrollBarUI.callMac(MacScrollBarUI.java:200)
            at com.intellij.ui.components.MacScrollBarUI$Native.<init>(MacScrollBarUI.java:300)
            at com.intellij.ui.components.MacScrollBarUI$Style$1.<init>(MacScrollBarUI.java:251)
            at com.intellij.ui.components.MacScrollBarUI$Style.<clinit>(MacScrollBarUI.java:251)
            at com.intellij.ui.components.MacScrollBarUI.installUI(MacScrollBarUI.java:103)
            at java.desktop/javax.swing.JComponent.setUI(JComponent.java:688)
            at java.desktop/javax.swing.JScrollBar.setUI(JScrollBar.java:210)
            at com.intellij.ui.components.JBScrollBar.updateUI(JBScrollBar.java:88)
            at java.desktop/javax.swing.JScrollBar.<init>(JScrollBar.java:165)
            at com.intellij.ui.components.JBScrollBar.<init>(JBScrollBar.java:68)
            at com.intellij.ui.components.JBScrollBar.<init>(JBScrollBar.java:64)
            at com.intellij.ui.components.JBScrollPane.createVerticalScrollBar(JBScrollPane.java:305)
            at java.desktop/javax.swing.JScrollPane.<init>(JScrollPane.java:300)
            at java.desktop/javax.swing.JScrollPane.<init>(JScrollPane.java:352)
            at com.intellij.ui.components.JBScrollPane.<init>(JBScrollPane.java:92)
            at com.intellij.application.options.editor.GutterIconsConfigurable.$$$setupUI$$$(GutterIconsConfigurable.java)
            at com.intellij.application.options.editor.GutterIconsConfigurable.<init>(GutterIconsConfigurable.java:48)
            ... 48 more
    2023-03-20 14:59:48,242 [   1366]  ERROR - openapi.options.ConfigurableEP - IntelliJ IDEA 2020.3.4  Build #IC-203.8084.24 
    2023-03-20 14:59:48,243 [   1367]  ERROR - openapi.options.ConfigurableEP - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
    2023-03-20 14:59:48,243 [   1367]  ERROR - openapi.options.ConfigurableEP - OS: Mac OS X 
    2023-03-20 14:59:48,243 [   1367]  ERROR - openapi.options.ConfigurableEP - Last Action:  
    Searchable options index builder failed
    java.lang.NoClassDefFoundError: Could not initialize class com.intellij.ui.components.MacScrollBarUI$Style
            at com.intellij.ui.components.MacScrollBarUI.installUI(MacScrollBarUI.java:103)
            at java.desktop/javax.swing.JComponent.setUI(JComponent.java:688)
            at java.desktop/javax.swing.JScrollBar.setUI(JScrollBar.java:210)
            at com.intellij.ui.components.JBScrollBar.updateUI(JBScrollBar.java:88)
            at java.desktop/javax.swing.JScrollBar.<init>(JScrollBar.java:165)
            at com.intellij.ui.components.JBScrollBar.<init>(JBScrollBar.java:68)
            at com.intellij.ui.components.JBScrollBar.<init>(JBScrollBar.java:64)
            at com.intellij.ui.components.JBScrollPane.createVerticalScrollBar(JBScrollPane.java:305)
            at java.desktop/javax.swing.JScrollPane.<init>(JScrollPane.java:300)
            at java.desktop/javax.swing.JScrollPane.<init>(JScrollPane.java:324)
            at com.intellij.ui.components.JBScrollPane.<init>(JBScrollPane.java:97)
            at com.intellij.ui.ToolbarDecorator$1.<init>(ToolbarDecorator.java:406)
            at com.intellij.ui.ToolbarDecorator.createPanel(ToolbarDecorator.java:406)
            at com.intellij.openapi.vcs.configurable.IssueNavigationConfigurationPanel.<init>(IssueNavigationConfigurationPanel.java:140)
            at com.intellij.openapi.vcs.configurable.VcsManagerConfigurable.buildConfigurables(VcsManagerConfigurable.java:118)
            at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:96)
            at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:288)
            at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:71)
            at com.intellij.ide.ui.search.SearchUtil.processProjectConfigurables(SearchUtil.java:52)
            at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:98)
            at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:81)
            at com.intellij.idea.ApplicationLoader$startApp$8$1$1.run(ApplicationLoader.kt:245)
            at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95)
            at com.intellij.idea.ApplicationLoader$startApp$8$1.run(ApplicationLoader.kt:244)
            at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:216)
            at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:24)
            at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:199)
            at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
            at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:324)
            at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:85)
            at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:134)
            at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
            at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:190)
            at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
            at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
            at java.base/java.security.AccessController.doPrivileged(Native Method)
            at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
            at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
            at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976)
            at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:843)
            at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454)
            at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)
            at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453)
            at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
            at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:501)
            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)
    
    > Task :buildSearchableOptions FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':buildSearchableOptions'.
    > Process 'command '/Users/brice.dutheil/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr_jcef-11_0_10-osx-aarch64-b1145.96/extracted/jbr/   Contents/Home/bin/java'' finished with non-zero exit value 255
    
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    

    With 211.6693.111 the build completes.

Thanks! So basically 211.6693.111 would be the only option, but specifying IC instead of IU is still required?

I've read the linked issue. I think we can switch to IC if it's necessary. The issue won't be resolved in a short time imo.

I'm ok with switching to 211.6693.111 in 0.22.1 btw.
I'd like to release 0.22.0 in the current state so that 2020.2 gets all the latest fixes too.

bric3 commented

I posted a workaround in the gradle-intellij-plugin issue, on the bright side IC is less heavy than IU to download. Something like might work, but might be required to be removed when ever this plugin bumps it platform version to a more recent version like 2022.1.

  runIde {
+    providers.gradleProperty("platformType").get().let {
+     if (it == "IU") {
+       systemProperty("idea.platform.prefix", "")
+     }
+   }
  }
bric3 commented

The Resource not found issue is fixed, now waiting for a release. So that fits with the proposed schedule.

That sounds perfect. I'll publish 0.22.0 tomorrow or Wednesday, and then bump to 0.22.1 and set the minimum version to 211.6693.111.

bric3 commented

Fix is released in 1.13.3, see