IDEA is not showing compilation errors

已回答

Suddenly my IDEA stopped showing compilation errors and it is kind of "Analyzing..." the code forever (as you can see on the top right)

 

- Power Safe mode is off

- Source folder is properly set

- JDK is set

 

Any idea what might be happening?


Intellij Version:

0

Please perform three base troubleshooting steps: 

- clear caches (**File | Invalidate caches and Restart**)

- disable all custom plugins: https://www.jetbrains.com/help/idea/managing-plugins.html#disable-plugin

- remove/rename .idea directory in the project's root and re-import the project.

If it does not help, quit IntelliJ IDEA, clean [logs folder](https://intellij-support.jetbrains.com/hc/en-us/articles/207241085), reproduce the issue and share the newly generated logs compressed after that.

 

 

0
Avatar
Permanently deleted user

Hi Konstantin Annikov, next post you can find the logs after restarting IDEA

0
Avatar
Permanently deleted user
2020-12-15 22:33:32,729 [ 62085] INFO - rationStore.ComponentStoreImpl - Saving appFileTypeManager took 12 ms 
2020-12-15 22:33:32,850 [ 62206] INFO - rationStore.ComponentStoreImpl - Saving Project(name=plugin-test, containerState=COMPONENT_CREATED, componentStore=/home/user1/dev/plugin-test)KotlinCompilerSettings took 17 ms, VcsDirectoryMappings took 31 ms
2020-12-15 22:33:33,129 [ 62485] ERROR - ction.ex.InspectionToolWrapper - Short name not matched for class com.android.tools.idea.lint.AndroidLintMissingClassInspection: getShortName() = #AndroidLintMissingRegistered; ep.shortName = #AndroidLintMissingClass [Plugin: org.jetbrains.android]
com.intellij.diagnostic.PluginException: Short name not matched for class com.android.tools.idea.lint.AndroidLintMissingClassInspection: getShortName() = #AndroidLintMissingRegistered; ep.shortName = #AndroidLintMissingClass [Plugin: org.jetbrains.android]
at com.intellij.codeInspection.ex.InspectionToolWrapper.getTool(InspectionToolWrapper.java:78)
at com.intellij.codeInspection.ex.GlobalInspectionToolWrapper.getSharedLocalInspectionToolWrapper(GlobalInspectionToolWrapper.java:72)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.getInspectionTools(LocalInspectionsPass.java:734)
at com.intellij.codeInsight.daemon.impl.WholeFileLocalInspectionsPassFactory$2.getInspectionTools(WholeFileLocalInspectionsPassFactory.java:101)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:115)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:400)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1137)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:393)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:392)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:368)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:172)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:183)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:366)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:188)
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:183)
2020-12-15 22:33:33,131 [ 62487] ERROR - ction.ex.InspectionToolWrapper - IntelliJ IDEA 2020.3 Build #IC-203.5981.155
2020-12-15 22:33:33,131 [ 62487] ERROR - ction.ex.InspectionToolWrapper - JDK: 11.0.9; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2020-12-15 22:33:33,132 [ 62488] ERROR - ction.ex.InspectionToolWrapper - OS: Linux
2020-12-15 22:33:33,132 [ 62488] ERROR - ction.ex.InspectionToolWrapper - Last Action: ShowLog
2020-12-15 22:33:33,179 [ 62535] ERROR - aemon.impl.PassExecutorService - Cannot create class com.android.tools.idea.lint.AndroidLintAssertInspection [Plugin: org.jetbrains.android]
com.intellij.diagnostic.PluginException: Cannot create class com.android.tools.idea.lint.AndroidLintAssertInspection [Plugin: org.jetbrains.android]
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:725)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateExtensionWithPicoContainerOnlyIfNeeded(ComponentManagerImpl.kt:754)
at com.intellij.serviceContainer.LazyExtensionInstance.createInstance(LazyExtensionInstance.java:43)
at com.intellij.openapi.extensions.CustomLoadingExtensionPointBean.createInstance(CustomLoadingExtensionPointBean.java:29)
at com.intellij.codeInspection.InspectionEP.instantiateTool(InspectionEP.java:206)
at com.intellij.codeInspection.ex.InspectionToolWrapper.getTool(InspectionToolWrapper.java:76)
at com.intellij.codeInspection.ex.GlobalInspectionToolWrapper.getSharedLocalInspectionToolWrapper(GlobalInspectionToolWrapper.java:72)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.getInspectionTools(LocalInspectionsPass.java:734)
at com.intellij.codeInsight.daemon.impl.WholeFileLocalInspectionsPassFactory$2.getInspectionTools(WholeFileLocalInspectionsPassFactory.java:101)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:115)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:400)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1137)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:393)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:392)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:368)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:172)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:183)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:366)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:188)
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:183)
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)
... 28 more
Caused by: java.lang.NoSuchFieldError: DISABLED
at com.android.tools.idea.lint.AndroidLintAssertInspection.<init>(AndroidLintAssertInspection.java:24)
... 33 more
2020-12-15 22:33:33,186 [ 62542] ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA 2020.3 Build #IC-203.5981.155
2020-12-15 22:33:33,187 [ 62543] ERROR - aemon.impl.PassExecutorService - JDK: 11.0.9; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2020-12-15 22:33:33,188 [ 62544] ERROR - aemon.impl.PassExecutorService - OS: Linux
2020-12-15 22:33:33,188 [ 62544] ERROR - aemon.impl.PassExecutorService - Last Action: ShowLog
2020-12-15 22:33:33,189 [ 62545] ERROR - aemon.impl.PassExecutorService - Cannot create class com.android.tools.idea.lint.AndroidLintAssertInspection [Plugin: org.jetbrains.android]
com.intellij.diagnostic.PluginException: Cannot create class com.android.tools.idea.lint.AndroidLintAssertInspection [Plugin: org.jetbrains.android]
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:725)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateExtensionWithPicoContainerOnlyIfNeeded(ComponentManagerImpl.kt:754)
at com.intellij.serviceContainer.LazyExtensionInstance.createInstance(LazyExtensionInstance.java:43)
at com.intellij.openapi.extensions.CustomLoadingExtensionPointBean.createInstance(CustomLoadingExtensionPointBean.java:29)
at com.intellij.codeInspection.InspectionEP.instantiateTool(InspectionEP.java:206)
at com.intellij.codeInspection.ex.InspectionToolWrapper.getTool(InspectionToolWrapper.java:76)
at com.intellij.codeInspection.ex.GlobalInspectionToolWrapper.getSharedLocalInspectionToolWrapper(GlobalInspectionToolWrapper.java:72)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.getInspectionTools(LocalInspectionsPass.java:734)
at com.intellij.codeInsight.daemon.impl.WholeFileLocalInspectionsPassFactory$2.getInspectionTools(WholeFileLocalInspectionsPassFactory.java:101)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:115)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:400)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1137)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:393)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:392)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:368)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:172)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:183)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:366)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:188)
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:183)
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)
... 28 more
Caused by: java.lang.NoSuchFieldError: DISABLED
at com.android.tools.idea.lint.AndroidLintAssertInspection.<init>(AndroidLintAssertInspection.java:24)
... 33 more
2020-12-15 22:33:33,195 [ 62551] ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA 2020.3 Build #IC-203.5981.155
2020-12-15 22:33:33,195 [ 62551] ERROR - aemon.impl.PassExecutorService - JDK: 11.0.9; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2020-12-15 22:33:33,195 [ 62551] ERROR - aemon.impl.PassExecutorService - OS: Linux
2020-12-15 22:33:33,195 [ 62551] ERROR - aemon.impl.PassExecutorService - Last Action: ShowLog
0

Does it help to disable android plugin? 

Please share the whole log from the IDE start, not just a snippet when the error is reproduced. 

0
Avatar
Permanently deleted user

yes, it helped. It turns out Android plugin was messing around. Disabling and enabling it again fixed the problem.

Thanks Konstantin Annikov

 

0

This just happened to me.  Turns out it was a dodgy Java plugin update:  https://youtrack.jetbrains.com/articles/SUPPORT-A-2388

0

请先登录再写评论。