Build Intellij plugin in IDEA 2019.1 & 2020.3

Answered

Building for IDEA 2019.1 works like a charm! I thought that building for 2020.3 would be just a matter of pointing to 2020.3 installation folder and that's it, but it is not being even close to it.

That's my gradle.build

=========
group 'com.test.plugin'
version '1.0-SNAPSHOT'

buildscript {
   repositories {  
      maven {
          url "https://mydomain/repository/public-maven/"
      }
}

dependencies {
   classpath group: 'org.jetbrains.intellij.plugins', name: 'gradle-intellij-plugin', version: '0.6.5'
}
}

apply plugin: 'java'
apply plugin: 'org.jetbrains.intellij'

intellij {
   localPath 'C:/Program Files/JetBrains/IntelliJ IDEA 2019.1.3'
}

sourceCompatibility = 1.8

repositories {
   maven {
      url "https://mydomain/repository/public-maven/"
   }
}

dependencies {
   testCompile group: 'junit', name: 'junit', version: '4.12'
   runtime group: 'com.google.guava', name: 'guava', version: '23.0'
   runtime group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
}

=========

It is important to mention that since I'm working behind a restricted company proxy and can't just set the Intellij version in order to get the necessary distribution files to the build (Intellij.localPath)

Building it on IDEA 2019.1, JDK 1.8 works fine. In order to build the same code for a IDEA 2020.3 I just replaced the Intellij distribution path:

=========

intellij {
   //localPath 'C:/Program Files/JetBrains/IntelliJ IDEA 2019.1.3'
   localPath 'C:/Dev/apps/ideaIU-2020.3'
}

=========

Trying to build it now immediately throws it:

=========

error: cannot access AnAction
bad class file: C:\Dev\apps\ideaIU-2020.3\lib\platform-api.jar(com/intellij/openapi/actionSystem/AnAction.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.

=========

What I understand form it is that AnAction class was built using Java 11. So, I replaced the project JDK to use also JDK11 and from that moment I started facing compilation errors, like *com.intellij.psi.PsiJavaFile* cannot be found.

I might be missing some conceptual point here.

9 comments
Comment actions Permalink

Yann Cebron - thanks for the answer, however I'm still facing problems:

This is my JDK configuration:

IMPLEMENTOR="AdoptOpenJDK"
IMPLEMENTOR_VERSION="AdoptOpenJDK"
JAVA_VERSION="11.0.7"
JAVA_VERSION_DATE="2020-04-14"

And that's the error I'm facing running gradle build


 

0
Comment actions Permalink

Ok, that was caused by a misconfiguration on gradle, now it is really using Java 11.

The problem seems to be now with the localPath. This is the path to my regular IntelliJ installation

=========
intellij {   
   localPath 'C:/dev/apps/ideaIU-2020.3'
}

=========

Error:

=========

C:\dev\projects\intellij-test-plugin\src\main\java\com\abc\intellij\plugins\action\DefinitionFilesAction.java:16: error: cannot find symbol
import com.intellij.psi.PsiJavaFile;
^
symbol: class PsiJavaFile
location: package com.intellij.psi

=========

 

0
Comment actions Permalink

According to Project Structure screenshot, you setup a Plugin Devkit SDK instead of plain Java SDK required when working with Gradle setup.

0
Comment actions Permalink

Does it explain why PsiJavaFIle is not being found?

I can see java-api.jar is not in /ideaUI-2020.3/lib folder (as it used to be in /idea-2019.1/lib), but in /ideaUI-2020.3/plugins/java/lib. Seems that gradle plugin is not loading this lib.

What am I doing wrong?

0
Comment actions Permalink

Thanks Yann Cebron, adding plugins = ['com.intellij.java'] and removing apply plugin: java solved the issue. Plugin is being generated and it is working fine after installing it, however buildSearchableOptions task is outputting a lot of disturbing messages:

===============

WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil

===============

As it asked me to let you guys know, here comes the output:


=============================

> Task :compileJava
> Task :patchPluginXml
> Task :processResources
> Task :classes
> Task :instrumentCode
> Task :postInstrumentCode
> Task :jar
> Task :prepareSandbox

> Task :buildSearchableOptions
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to method java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-12-17 12:25:56,528 [ 2601] WARN - pi.util.registry.RegistryValue - Attempt to load key 'ide.prioritize.threads' for not yet loaded registry
java.lang.Throwable
at com.intellij.openapi.util.registry.RegistryValue._get(RegistryValue.java:226)
at com.intellij.openapi.util.registry.RegistryValue.get(RegistryValue.java:203)
at com.intellij.openapi.util.registry.RegistryValue.calcBoolean(RegistryValue.java:69)
at com.intellij.openapi.util.registry.RegistryValue.asBoolean(RegistryValue.java:62)
at com.intellij.openapi.util.registry.Registry.is(Registry.java:63)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:761)
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)
2020-12-17 12:25:56,653 [ 2726] WARN - j.internal.DebugAttachDetector - Unable to start DebugAttachDetector, please add `--add-exports java.base/jdk.internal.vm=ALL-UNNAMED` to VM options
Starting searchable options index builder
2020-12-17 12:26:08,489 [ 14562] WARN - arketplace.MarketplaceRequests - Can not get broken plugins file from Marketplace:C:\Abc\Dev\projects\xyz\xyz-intellij-plugin\build\idea-sandbox\plugins\brokenPlugins.json (The system cannot find the file specified)
2020-12-17 12:26:08,571 [ 14644] ERROR - plication.impl.ApplicationImpl - C:\Abc\Dev\projects\xyz\xyz-intellij-plugin\build\idea-sandbox\plugins\pluginsXMLIds.json (The system cannot find the file specified)
java.io.FileNotFoundException: C:\Abc\Dev\projects\xyz\xyz-intellij-plugin\build\idea-sandbox\plugins\pluginsXMLIds.json (The system cannot find the file specified)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:125)
at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:125)
at com.intellij.ide.plugins.marketplace.MarketplaceRequests$readOrUpdateFile$2.process(MarketplaceRequests.kt:283)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:541)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:523)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:355)
at com.intellij.ide.plugins.marketplace.MarketplaceRequests.readOrUpdateFile(MarketplaceRequests.kt:261)
at com.intellij.ide.plugins.marketplace.MarketplaceRequests.getMarketplacePlugins(MarketplaceRequests.kt:130)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.validateCompatibleUpdatesForCurrentPlugins(UpdateChecker.kt:349)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.updateDescriptorsForInstalledPlugins(UpdateChecker.kt:334)
at com.intellij.ide.plugins.CustomPluginRepositoryService.lambda$getCustomRepositoryPluginMap$0(CustomPluginRepositoryService.java:63)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:270)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
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)
2020-12-17 12:26:08,571 [ 14644] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 2020.3 Build #IU-203.5981.155
2020-12-17 12:26:08,577 [ 14650] ERROR - plication.impl.ApplicationImpl - JDK: 11.0.7; VM: OpenJDK Client VM; Vendor: AdoptOpenJDK
2020-12-17 12:26:08,577 [ 14650] ERROR - plication.impl.ApplicationImpl - OS: Windows 7
2020-12-17 12:26:08,578 [ 14651] ERROR - plication.impl.ApplicationImpl - Last Action:
2020-12-17 12:26:11,432 [ 17505] ERROR - JSXHtmlCodeStylePanelExtension - Grid Layout expected for customizing jsx attribute extension
java.lang.Throwable: Grid Layout expected for customizing jsx attribute extension
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:159)
at com.intellij.lang.javascript.formatter.JSXHtmlCodeStylePanelExtension$1.customizeSettingsPanel(JSXHtmlCodeStylePanelExtension.java:43)
at com.intellij.application.options.CodeStyleHtmlPanel.lambda$new$0(CodeStyleHtmlPanel.java:92)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at com.intellij.application.options.CodeStyleHtmlPanel.<init>(CodeStyleHtmlPanel.java:92)
at com.intellij.application.options.HtmlCodeStyleMainPanel.initTabs(HtmlCodeStyleMainPanel.java:19)
at com.intellij.application.options.TabbedLanguageCodeStylePanel.ensureTabs(TabbedLanguageCodeStylePanel.java:162)
at com.intellij.application.options.TabbedLanguageCodeStylePanel.getPreviewText(TabbedLanguageCodeStylePanel.java:265)
at com.intellij.application.options.CodeStyleAbstractPanel.createEditor(CodeStyleAbstractPanel.java:139)
at com.intellij.application.options.CodeStyleAbstractPanel.<init>(CodeStyleAbstractPanel.java:99)
at com.intellij.application.options.TabbedLanguageCodeStylePanel.<init>(TabbedLanguageCodeStylePanel.java:67)
at com.intellij.application.options.HtmlCodeStyleMainPanel.<init>(HtmlCodeStyleMainPanel.java:13)
at com.intellij.application.options.HtmlLanguageCodeStyleSettingsProvider$HtmlLanguageCodeStyleConfigurable.createPanel(HtmlLanguageCodeStyleSettingsProvider.java:77)
at com.intellij.application.options.CodeStyleAbstractConfigurable.createComponent(CodeStyleAbstractConfigurable.java:36)
at com.intellij.application.options.codeStyle.NewCodeStyleSettingsPanel.<init>(NewCodeStyleSettingsPanel.java:30)
at com.intellij.ConfigurableFactory$createCodeStyleConfigurable$codeStyleConfigurableWrapper$1.createPanel(ConfigurableFactory.kt:32)
at com.intellij.application.options.codeStyle.CodeStyleMainPanel.ensurePanel(CodeStyleMainPanel.java:250)
at com.intellij.application.options.codeStyle.CodeStyleMainPanel.ensureCurrentPanel(CodeStyleMainPanel.java:235)
at com.intellij.application.options.codeStyle.CodeStyleMainPanel.lambda$onCurrentSchemeChanged$0(CodeStyleMainPanel.java:175)
at com.intellij.application.options.codeStyle.CodeStyleMainPanel.onCurrentSchemeChanged(CodeStyleMainPanel.java:182)
at com.intellij.application.options.codeStyle.CodeStyleMainPanel.<init>(CodeStyleMainPanel.java:142)
at com.intellij.application.options.CodeStyleConfigurableWrapper.createComponent(CodeStyleConfigurableWrapper.java:50)
at com.intellij.ide.ui.search.SearchUtil.processConfigurables(SearchUtil.java:81)
at com.intellij.ide.ui.search.SearchUtil.processProjectConfigurables(SearchUtil.java:51)
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: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(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
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)
2020-12-17 12:26:11,433 [ 17506] ERROR - JSXHtmlCodeStylePanelExtension - IntelliJ IDEA 2020.3 Build #IU-203.5981.155
2020-12-17 12:26:11,433 [ 17506] ERROR - JSXHtmlCodeStylePanelExtension - JDK: 11.0.7; VM: OpenJDK Client VM; Vendor: AdoptOpenJDK
2020-12-17 12:26:11,433 [ 17506] ERROR - JSXHtmlCodeStylePanelExtension - OS: Windows 7
2020-12-17 12:26:11,433 [ 17506] ERROR - JSXHtmlCodeStylePanelExtension - Last Action:
Searchable options index builder completed
2020-12-17 12:26:24,219 [ 30292] ERROR - tellij.openapi.util.ObjectTree - Cannot create ServiceAdapter(descriptor=ServiceDescriptor(interface=com.intellij.psi.impl.source.tree.injected.EditorWindowTracker, implementation=com.intellij.psi.impl.source.tree.injected.EditorWindowTrackerImpl), pluginDescriptor=PluginDescriptor(name=IDEA CORE, id=com.intellij, path=C:\Abc\Dev\apps\ideaIU-2020.3, version=203.5981.155)) because container is already disposed (container=Application (containerState=DISPOSED) (Internal) (Headless) (Command line))
com.intellij.serviceContainer.AlreadyDisposedException: Cannot create ServiceAdapter(descriptor=ServiceDescriptor(interface=com.intellij.psi.impl.source.tree.injected.EditorWindowTracker, implementation=com.intellij.psi.impl.source.tree.injected.EditorWindowTrackerImpl), pluginDescriptor=PluginDescriptor(name=IDEA CORE, id=com.intellij, path=C:\Abc\Dev\apps\ideaIU-2020.3, version=203.5981.155)) because container is already disposed (container=Application (containerState=DISPOSED) (Internal) (Headless) (Command line))
at com.intellij.serviceContainer.BaseComponentAdapter.throwAlreadyDisposedError$intellij_platform_serviceContainer(BaseComponentAdapter.kt:155)
at com.intellij.serviceContainer.BaseComponentAdapter.checkContainerIsActive(BaseComponentAdapter.kt:139)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:72)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:457)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:440)
at com.intellij.psi.impl.source.tree.injected.EditorWindowTracker.getInstance(EditorWindowTracker.java:12)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.disposeInvalidEditors(InjectedLanguageManagerImpl.java:82)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.dispose(InjectedLanguageManagerImpl.java:71)
at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:138)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:168)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:142)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:130)
at com.intellij.serviceContainer.ComponentManagerImpl.dispose(ComponentManagerImpl.kt:952)
at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:138)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:168)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:142)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:130)
at com.intellij.openapi.project.impl.ProjectManagerImpl.dispose(ProjectManagerImpl.java:149)
at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:138)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:168)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:142)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:130)
at com.intellij.serviceContainer.ComponentManagerImpl.dispose(ComponentManagerImpl.kt:952)
at com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:363)
at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:138)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:168)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:142)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:130)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$disposeContainer$3(ApplicationImpl.java:196)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1000)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeContainer(ApplicationImpl.java:194)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeSelf(ApplicationImpl.java:215)
at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:621)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:580)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:569)
at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:82)
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: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(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
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)
2020-12-17 12:26:24,220 [ 30293] ERROR - tellij.openapi.util.ObjectTree - IntelliJ IDEA 2020.3 Build #IU-203.5981.155
2020-12-17 12:26:24,220 [ 30293] ERROR - tellij.openapi.util.ObjectTree - JDK: 11.0.7; VM: OpenJDK Client VM; Vendor: AdoptOpenJDK
2020-12-17 12:26:24,220 [ 30293] ERROR - tellij.openapi.util.ObjectTree - OS: Windows 7
2020-12-17 12:26:24,301 [ 30374] ERROR - tellij.openapi.util.ObjectTree - Memory leak detected: 'org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab@1f0265b' of class org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab
See the cause for the corresponding Disposer.register() stacktrace:

java.lang.RuntimeException: Memory leak detected: 'org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab@1f0265b' of class org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab
See the cause for the corresponding Disposer.register() stacktrace:

at com.intellij.openapi.util.ObjectTree.assertIsEmpty(ObjectTree.java:223)
at com.intellij.openapi.util.Disposer.assertIsEmpty(Disposer.java:156)
at com.intellij.openapi.util.Disposer.assertIsEmpty(Disposer.java:151)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeContainer(ApplicationImpl.java:198)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeSelf(ApplicationImpl.java:215)
at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:621)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:580)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:569)
at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:82)
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: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(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
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.Throwable
at com.intellij.openapi.util.ObjectNode.<init>(ObjectNode.java:31)
at com.intellij.openapi.util.ObjectTree.createNodeFor(ObjectTree.java:99)
at com.intellij.openapi.util.ObjectTree.register(ObjectTree.java:60)
at com.intellij.openapi.util.Disposer.register(Disposer.java:73)
at com.intellij.openapi.ui.ComponentValidator.installOn(ComponentValidator.java:154)
at org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab.createVersionValidator(KotlinCompilerConfigurableTab.java:776)
at org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab.createUIComponents(KotlinCompilerConfigurableTab.java:751)
at org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab.$$$setupUI$$$(KotlinCompilerConfigurableTab.java)
at org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab.<init>(KotlinCompilerConfigurableTab.java:131)
at org.jetbrains.kotlin.idea.compiler.configuration.KotlinCompilerConfigurableTab.<init>(KotlinCompilerConfigurableTab.java:174)
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:704)
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.getConfigurable(ConfigurableWrapper.java:119)
at com.intellij.openapi.options.ex.ConfigurableWrapper.createComponent(ConfigurableWrapper.java:171)
at com.intellij.ide.ui.search.SearchUtil.processConfigurables(SearchUtil.java:81)
at com.intellij.ide.ui.search.SearchUtil.processProjectConfigurables(SearchUtil.java:51)
at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:98)
at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:81)
... 32 more
2020-12-17 12:26:24,302 [ 30375] ERROR - tellij.openapi.util.ObjectTree - IntelliJ IDEA 2020.3 Build #IU-203.5981.155
2020-12-17 12:26:24,302 [ 30375] ERROR - tellij.openapi.util.ObjectTree - JDK: 11.0.7; VM: OpenJDK Client VM; Vendor: AdoptOpenJDK
2020-12-17 12:26:24,302 [ 30375] ERROR - tellij.openapi.util.ObjectTree - OS: Windows 7
2020-12-17 12:26:24,303 [ 30376] ERROR - tellij.openapi.util.ObjectTree - Plugin to blame: Kotlin version: 203-1.4.10-release-IJ5981.133

> Task :jarSearchableOptions
> Task :buildPlugin

BUILD SUCCESSFUL in 39s
10 actionable tasks: 10 executed
12:26:25 PM: Task execution finished 'buildPlugin'.

===================================

0
Comment actions Permalink

You can ignore these warnings or simply disable building searchable options in your plugin https://github.com/JetBrains/gradle-intellij-plugin/blob/master/FAQ.md#how-to-disable-building-searchable-options

0
Comment actions Permalink

I think that's all for this topic.

Thanks a lot for all the help. You guys are doing a great job!

0

Please sign in to leave a comment.