Code parsing gets "Stuck"?
Since the 8.0 production release (including the latest 9144 build), IDEA seems to get stuck sometimes with it's code parsing.
Basically, it will start saying some class class does not exist, but it exists on the source path (the last time this happened, IDEA was denying the existing of a class that was actually right there in the same package).
It seems like IDEA's metadata repository about the source base gets corrupted, and then it can't get it clean again.
A full rebuild doesn't fix the problem, neither does a re-start of the IDE.
When it happens (once every day or two so far), the only way I've found to get IDEA working properly again is to shutdown IDEA, delete the system/index and cache directories, then restart IDEA. This leads to a full parse of the source and libraries, which is very annoying.
I can't reproduce it reliably yet, it seems like it happens often when some other error has occurred with the IDE.
Anyone else getting this issue?
Please sign in to leave a comment.
I have seen this too. clearing the cache has not solved the problem though (even temporarily)
Hi.
I've encountered something that may be similar. One file got into a strange state, all hints, inspections, intellisenses stopped working, displayed empty list or did nothing. Even ctrlc and ctrlf9 (compile) didn't work. In other files it was OK. After huge editing of the file (removing parts and putting them to notepad to see what's going to happen) it started to work. This happened to me three times at least.
Aleš
I don't know if this is related to the problem, but I see a lot of this in the log.
2008-11-21 10:16:06,315 ERROR - aemon.impl.PassExecutorService -
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.lang.ClassLoader.defineClass(ClassLoader.java:520)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:119)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:115)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:91)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:78)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:41)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadClass(ExtensionComponentAdapter.java:140)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentImplementation(ExtensionComponentAdapter.java:61)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:67)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:106)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:202)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:151)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:98)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:86)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.a(ReferenceProvidersRegistry.java:85)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.java:76)
at com.intellij.psi.impl.source.javadoc.PsiDocTagImpl.getReferences(PsiDocTagImpl.java:22)
at com.intellij.psi.impl.search.CachesBasedRefSearcher$3.execute(CachesBasedRefSearcher.java:3)
at com.intellij.psi.impl.search.LowLevelSearchUtil.a(LowLevelSearchUtil.java:23)
at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsContainingWordInElement(LowLevelSearchUtil.java:72)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.compute(PsiSearchHelperImpl.java:4)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.compute(PsiSearchHelperImpl.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl$11.run(ApplicationImpl.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:339)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:139)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.a(PsiSearchHelperImpl.java:79)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.processElementsWithWord(PsiSearchHelperImpl.java:59)
at com.intellij.psi.impl.search.CachesBasedRefSearcher.execute(CachesBasedRefSearcher.java:7)
at com.intellij.psi.impl.search.CachesBasedRefSearcher.execute(CachesBasedRefSearcher.java:4)
at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:35)
at com.intellij.util.AbstractExecutorsQuery.forEach(AbstractExecutorsQuery.java:66)
at com.intellij.util.UniqueResultsQuery.doForEach(UniqueResultsQuery.java:54)
at com.intellij.util.UniqueResultsQuery.forEach(UniqueResultsQuery.java:62)
at com.intellij.psi.util.PsiUtil.isAssigned(PsiUtil.java:696)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightControlFlowUtil.isReassigned(HighlightControlFlowUtil.java:229)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitVariable(HighlightVisitorImpl.java:393)
at com.intellij.psi.JavaElementVisitor.visitParameter(JavaElementVisitor.java:211)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitParameter(HighlightVisitorImpl.java:118)
at com.intellij.psi.impl.source.PsiParameterImpl.accept(PsiParameterImpl.java:73)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visit(HighlightVisitorImpl.java:505)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$6.run(GeneralHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.RefCountHolder.analyze(RefCountHolder.java:122)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:359)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:8)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:109)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:15)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:28)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:339)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:12)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:613)
2008-11-21 10:16:06,315 ERROR - aemon.impl.PassExecutorService -
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.lang.ClassLoader.defineClass(ClassLoader.java:520)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:119)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:115)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:91)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:78)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:41)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadClass(ExtensionComponentAdapter.java:140)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentImplementation(ExtensionComponentAdapter.java:61)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:67)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:106)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:202)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:151)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:98)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:86)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.a(ReferenceProvidersRegistry.java:85)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.java:76)
at com.intellij.psi.impl.source.javadoc.PsiDocTagImpl.getReferences(PsiDocTagImpl.java:22)
at com.intellij.psi.impl.search.CachesBasedRefSearcher$3.execute(CachesBasedRefSearcher.java:3)
at com.intellij.psi.impl.search.LowLevelSearchUtil.a(LowLevelSearchUtil.java:23)
at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsContainingWordInElement(LowLevelSearchUtil.java:72)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.compute(PsiSearchHelperImpl.java:4)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.compute(PsiSearchHelperImpl.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl$11.run(ApplicationImpl.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:339)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:139)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.a(PsiSearchHelperImpl.java:79)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.processElementsWithWord(PsiSearchHelperImpl.java:59)
at com.intellij.psi.impl.search.CachesBasedRefSearcher.execute(CachesBasedRefSearcher.java:7)
at com.intellij.psi.impl.search.CachesBasedRefSearcher.execute(CachesBasedRefSearcher.java:4)
at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:35)
at com.intellij.util.AbstractExecutorsQuery.forEach(AbstractExecutorsQuery.java:66)
at com.intellij.util.UniqueResultsQuery.doForEach(UniqueResultsQuery.java:54)
at com.intellij.util.UniqueResultsQuery.forEach(UniqueResultsQuery.java:62)
at com.intellij.psi.util.PsiUtil.isAssigned(PsiUtil.java:696)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightControlFlowUtil.isReassigned(HighlightControlFlowUtil.java:229)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitVariable(HighlightVisitorImpl.java:393)
at com.intellij.psi.JavaElementVisitor.visitParameter(JavaElementVisitor.java:211)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitParameter(HighlightVisitorImpl.java:118)
at com.intellij.psi.impl.source.PsiParameterImpl.accept(PsiParameterImpl.java:73)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visit(HighlightVisitorImpl.java:505)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$6.run(GeneralHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:402)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:8)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:109)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:15)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:28)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:339)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:12)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:613)
2008-11-21 10:16:06,316 ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA 8.0 Build #9013
2008-11-21 10:16:06,316 ERROR - aemon.impl.PassExecutorService - JDK: 1.5.0_13
2008-11-21 10:16:06,316 ERROR - aemon.impl.PassExecutorService - VM: Java HotSpot(TM) Server VM
2008-11-21 10:16:06,316 ERROR - aemon.impl.PassExecutorService - Vendor: Apple Inc.
2008-11-21 10:16:06,317 ERROR - aemon.impl.PassExecutorService - OS: Mac OS X
2008-11-21 10:16:06,317 ERROR - aemon.impl.PassExecutorService - Last Action: EditorBackSpace
2008-11-21 10:16:06,316 ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA 8.0 Build #9013
2008-11-21 10:16:06,317 ERROR - aemon.impl.PassExecutorService - JDK: 1.5.0_13
2008-11-21 10:16:06,317 ERROR - aemon.impl.PassExecutorService - VM: Java HotSpot(TM) Server VM
2008-11-21 10:16:06,317 ERROR - aemon.impl.PassExecutorService - Vendor: Apple Inc.
2008-11-21 10:16:06,317 ERROR - aemon.impl.PassExecutorService - OS: Mac OS X
2008-11-21 10:16:06,317 ERROR - aemon.impl.PassExecutorService - Last Action: EditorBackSpace
Hello Dennis,
Yes, this is related. You have an incompatible plugin installed (the plugin
was compiled for JDK 6 and you're running IDEA with JDK 5).
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
It turns out IntelliStripes is the culprit. I should have read the WHOLE log :)
com.intellij.diagnostic.PluginException: Bad version number in .class file
This is *still* happening in 8.0.1
New install of 8.0.1 - no funny plugins that I know of; it should be a fairly clean install since 8.0.1 goes into a differnet place than 8.0
Was working along fine, did an update of the codebase from within IDEA - bang!
Good code (that compiles fine) marked red all over the place and syntax highlighting not updating anymore.
This is really getting annoying.
Is this currently an open issue? Because I really think it needs addressing.
One of our developers has just switched back to Eclipse, because of this.
Hello Shorn,
Please file a JIRA issue with your idea.log attached.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"