注意,此错误为idea插件开发编译启动时报的错 错误信息: ERROR - llij.ide.plugins.PluginManager - org.picocontainer.PicoRegistrationException: Key top.zqlweb.plugin.setting.app.AppSettingsState duplicated java.util.concurrent.CompletionException: org.picocontainer.PicoRegistrationException: Key top.zqlweb.plugin.setting.app.AppSettingsState duplicated at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604) at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962) at com.intellij.idea.ApplicationLoader$initApplication$2.accept(ApplicationLoader.kt:379) at com.intellij.idea.ApplicationLoader$initApplication$2.accept(ApplicationLoader.kt) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture$AsyncSupply.run$$$capture(CompletableFuture.java:1595) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.picocontainer.PicoRegistrationException: Key top.zqlweb.plugin.setting.app.AppSettingsState duplicated at com.intellij.util.pico.DefaultPicoContainer.registerComponent(DefaultPicoContainer.java:119) at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:320) at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:186) at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:157) at com.intellij.idea.ApplicationLoader$registerAppComponents$1.apply(ApplicationLoader.kt:93) at com.intellij.idea.ApplicationLoader$registerAppComponents$1.apply(ApplicationLoader.kt) at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602) ... 13 more
原因:idea多个插件项目同时启动导致识别临时插件包出现问题。
解决方法:选择菜单File>Project Structure,打开后,找到SDKs配置的Sandbox Home,进入该路径,删除启动报错的临时插件包
删除报错的插件包,重新编译启动插件即可。
|