Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Exception in Lombok plugin (0.28-2019.3) #713

Closed
n4v4j0 opened this issue Dec 5, 2019 · 4 comments
Closed

Exception in Lombok plugin (0.28-2019.3) #713

n4v4j0 opened this issue Dec 5, 2019 · 4 comments

Comments

@n4v4j0
Copy link

n4v4j0 commented Dec 5, 2019

Version information

  • IDEA Version: IntelliJ IDEA 2019.3 (Ultimate Edition)
    Build #IU-193.5233.102, built on November 27, 2019
    Licensed to *****
    Subscription is active until *****
    Runtime version: 11.0.4+10-b520.11 amd64
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    Windows 10 10.0
    GC: ParNew, ConcurrentMarkSweep
    Memory: 1957M
    Cores: 8
    Registry:
    Non-Bundled Plugins: Create Jira Ticket, JFormDesigner, Jira Browser, Key Promoter X, Lombook Plugin, PlantUML integration, com.kukido.eclipser, com.przemyslawj.mockito.generator, org.mapstruct.intellij, org.pmesmeur.sketchit, org.zalando.intellij.swagger

  • JDK Version: java version "1.8.0_211"
    Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

  • OS Type & Version: Windows 10 Pro, Version: 1803, OS build: 18134.1009

  • Lombok Plugin Version: 0.28-2019.3

  • Lombok Dependency Version: Gradle: org.projectlombok.lombok:lombok-1.18.8.jar

Stacktrace


com.intellij.diagnostic.PluginException: class de.plushnikov.intellij.plugin.psi.LombokLightParameter; valid=true; method.valid=true [Plugin: Lombook Plugin]
	at com.intellij.ide.plugins.PluginManagerCore.createPluginException(PluginManagerCore.java:399)
	at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:12)
	at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:58)
	at com.intellij.codeInsight.daemon.impl.quickfix.ChangeMethodSignatureFromUsageFix.getNewParametersInfo(ChangeMethodSignatureFromUsageFix.java:328)
	at com.intellij.codeInsight.daemon.impl.quickfix.ChangeMethodSignatureFromUsageFix.isAvailable(ChangeMethodSignatureFromUsageFix.java:150)
	at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.addAvailableFixesForGroups(ShowIntentionsPass.java:149)
	at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.lambda$getAvailableFixes$0(ShowIntentionsPass.java:82)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
	at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getAvailableFixes(ShowIntentionsPass.java:82)
	at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:291)
	at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doCollectInformation(ShowIntentionsPass.java:220)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:55)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:429)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:997)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:422)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:421)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:397)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:167)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:157)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:395)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:161)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
Caused by: com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl #JAVA  because: different providers: com.intellij.psi.DummyHolderViewProvider{myVirtualFile=LightVirtualFile: \DummyHolder, content=VirtualFileContent{size=0}}(39284922); com.intellij.psi.SingleRootFileViewProvider{myVirtualFile=LightVirtualFile: \DummyHolder, content=VirtualFileContent{size=0}}(6e41ffa)
invalidated at: see attachment; Type element reference of class com.intellij.psi.impl.source.PsiFieldImpl #PsiFieldImpl #Language: JAVA; augmenters=[com.intellij.psi.impl.source.JShellPsiAugmentProvider@6d27a6b4, de.plushnikov.intellij.plugin.provider.LombokAugmentProvider@5c7a37b0, com.intellij.lang.aspectj.augment.AjPsiAugmentProvider@52dba0cd]
	at com.intellij.psi.impl.source.PsiClassReferenceType.resolveGenerics(PsiClassReferenceType.java:177)
	at com.intellij.psi.impl.source.PsiClassReferenceType.resolve(PsiClassReferenceType.java:124)
	at com.intellij.psi.util.PsiUtil.ensureValidType(PsiUtil.java:1268)
	at com.intellij.psi.util.PsiUtil.ensureValidType(PsiUtil.java:1257)
	at com.intellij.codeInsight.daemon.impl.quickfix.ChangeMethodSignatureFromUsageFix.getNewParametersInfo(ChangeMethodSignatureFromUsageFix.java:322)
	... 25 more

@NCNecros
Copy link

NCNecros commented Dec 5, 2019

I confirm this bug on:
IntelliJ IDEA 2019.3 (Community Edition)
Build #IC-193.5233.102, built on November 28, 2019
Runtime version: 11.0.4+10-b520.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 982M
Cores: 4
Registry:

Plugin version: 0.15.17.2
Lib version: lombok-1.18.10.jar
Stacktrace:


java.util.concurrent.CompletionException: com.intellij.ide.plugins.StartupAbortedException: Fatal error initializing plugin Lombook Plugin
	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$UniApply.tryFire(CompletableFuture.java:645)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
	at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
	at com.intellij.idea.ApplicationLoader.initApplication(ApplicationLoader.kt:383)
	at com.intellij.idea.MainImpl.start(MainImpl.java:19)
	at com.intellij.idea.StartupUtil.lambda$startApp$5(StartupUtil.java:248)
	at com.intellij.util.ui.EdtInvocationManager.executeWithCustomManager(EdtInvocationManager.java:73)
	at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:243)
	at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:215)
	at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:39)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.intellij.ide.plugins.StartupAbortedException: Fatal error initializing plugin Lombook Plugin
	at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:55)
	at com.intellij.serviceContainer.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.kt:247)
	at com.intellij.serviceContainer.PlatformComponentManagerImpl.registerComponents(PlatformComponentManagerImpl.kt:113)
	at com.intellij.idea.ApplicationLoader$registerAppComponents$1.apply(ApplicationLoader.kt:115)
	at com.intellij.idea.ApplicationLoader$registerAppComponents$1.apply(ApplicationLoader.kt)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
	... 10 more
Caused by: com.intellij.diagnostic.PluginException: While loading class de.plushnikov.intellij.plugin.LombokPluginApplicationComponent$1: class de.plushnikov.intellij.plugin.LombokPluginApplicationComponent$1 overrides final method com.intellij.serviceContainer.BaseKeyedLazyInstance.getInstance()Ljava/lang/Object; [Plugin: Lombook Plugin] [Plugin: Lombook Plugin]
	... 16 more
Caused by: com.intellij.diagnostic.PluginException: While loading class de.plushnikov.intellij.plugin.LombokPluginApplicationComponent$1: class de.plushnikov.intellij.plugin.LombokPluginApplicationComponent$1 overrides final method com.intellij.serviceContainer.BaseKeyedLazyInstance.getInstance()Ljava/lang/Object; [Plugin: Lombook Plugin]
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:223)
	at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:167)
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:75)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:398)
	at com.intellij.serviceContainer.PlatformComponentManagerImpl.registerComponent(PlatformComponentManagerImpl.kt:203)
	at com.intellij.serviceContainer.PlatformComponentManagerImpl.registerComponents(PlatformComponentManagerImpl.kt:109)
	... 13 more
Caused by: java.lang.VerifyError: class de.plushnikov.intellij.plugin.LombokPluginApplicationComponent$1 overrides final method com.intellij.serviceContainer.BaseKeyedLazyInstance.getInstance()Ljava/lang/Object;
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:877)
	at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:359)
	at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:355)
	at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:319)
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:220)
	... 20 more ```

@mplushnikov
Copy link
Owner

mplushnikov commented Dec 5, 2019

@NCNecros your plugin version is very old. Please update to a new one : 0.28-2019.3

@mplushnikov
Copy link
Owner

@n4v4j0 Your exception is duplicate of #649. Do you have some reproducible example for it? It would help a lot to find out some solution!

@n4v4j0
Copy link
Author

n4v4j0 commented Dec 9, 2019

This Exception seems to be not critical. I have not expirienced any limitation of usability of lombok-plugin. I noticed this Exception in my IntelliJ-Report-Window, and dont know its first occurence. So I can not give you example how to reproduce it.
@NCNecros : my plugin-version IS the latest available : 0.28-2019.3
Lombok-Version is also new: 1.18.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants