6.179 & singletons (object classes)


#1

There seems to be a problem with 6.179 and singletons.

Eg:

I have a singleton called Aborted:

public object Aborted {

  public fun get(): Boolean {
  …
  }

}

And I am getting tons of AssertionErrors in Idea:

Object for property not found: Aborted: Object for property not found: Aborted
java.lang.AssertionError: Object for property not found: Aborted
  at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.createPropertyDescriptor(DescriptorDeserializer.java:204)
  at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.loadProperty(DescriptorDeserializer.java:138)
  at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.loadCallable(DescriptorDeserializer.java:129)
  at org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedMemberScope.computeMembersByName(DeserializedMemberScope.java:126)
  at org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedMemberScope.computeProperties(DeserializedMemberScope.java:151)
  at org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedMemberScope.access$100(DeserializedMemberScope.java:38)
  at org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedMemberScope$4.fun(DeserializedMemberScope.java:85)
  at org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedMemberScope$4.fun(DeserializedMemberScope.java:82)
  at org.jetbrains.jet.lang.resolve.lazy.storage.LockBasedStorageManager$MapBasedMemoizedFunction.fun(LockBasedStorageManager.java:197)
  at org.jetbrains.jet.lang.resolve.lazy.storage.LockBasedStorageManager$MapBasedMemoizedFunctionToNotNull.fun(LockBasedStorageManager.java:226)
  at org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedMemberScope.getProperties(DeserializedMemberScope.java:163)
  at org.jetbrains.jet.lang.resolve.scopes.WritableScopeWithImports.getProperties(WritableScopeWithImports.java:129)
  at org.jetbrains.jet.lang.resolve.scopes.WritableScopeImpl.getProperties(WritableScopeImpl.java:242)
  at org.jetbrains.jet.lang.resolve.scopes.WritableScopeImpl.getProperties(WritableScopeImpl.java:30)
  at org.jetbrains.jet.lang.resolve.QualifiedExpressionResolver.lookupSimpleNameReference(QualifiedExpressionResolver.java:270)
  at org.jetbrains.jet.lang.resolve.QualifiedExpressionResolver.lookupSelectorDescriptors(QualifiedExpressionResolver.java:208)
  at org.jetbrains.jet.lang.resolve.QualifiedExpressionResolver.lookupDescriptorsForQualifiedExpression(QualifiedExpressionResolver.java:197)
  at org.jetbrains.jet.lang.resolve.QualifiedExpressionResolver.processImportReference(QualifiedExpressionResolver.java:78)
  at org.jetbrains.jet.lang.resolve.ImportsResolver.processImportsInFile(ImportsResolver.java:125)
  at org.jetbrains.jet.lang.resolve.ImportsResolver.processImportsInFile(ImportsResolver.java:94)
  at org.jetbrains.jet.lang.resolve.ImportsResolver.processImports(ImportsResolver.java:85)
  at org.jetbrains.jet.lang.resolve.ImportsResolver.processMembersImports(ImportsResolver.java:79)
  at org.jetbrains.jet.lang.resolve.DeclarationResolver.process(DeclarationResolver.java:97)
  at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.doProcess(TopDownAnalyzer.java:126)
  at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.analyzeFiles(TopDownAnalyzer.java:261)
  at org.jetbrains.jet.lang.resolve.java.AnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(AnalyzerFacadeForJVM.java:196)
  at org.jetbrains.jet.plugin.caches.resolve.JvmDeclarationsCacheProvider$1.compute(JvmDeclarationsCacheProvider.java:65)
  at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
  at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:200)
  at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
  at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:81)
  at org.jetbrains.jet.plugin.caches.resolve.JvmDeclarationsCacheProvider.getDeclarations(JvmDeclarationsCacheProvider.java:102)
  at org.jetbrains.jet.plugin.caches.resolve.KotlinCacheManager.getPossiblyIncompleteDeclarationsForLightClassGeneration(KotlinCacheManager.java:70)
  at org.jetbrains.jet.plugin.caches.resolve.IDELightClassGenerationSupport.analyzeRelevantCode(IDELightClassGenerationSupport.java:66)
  at org.jetbrains.jet.asJava.KotlinJavaFileStubProvider.compute(KotlinJavaFileStubProvider.java:137)
  at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
  at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:200)
  at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
  at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:81)
  at org.jetbrains.jet.asJava.KotlinLightClassForExplicitDeclaration.getJavaFileStub(KotlinLightClassForExplicitDeclaration.java:150)
  at org.jetbrains.jet.asJava.KotlinLightClassForExplicitDeclaration.getDelegate(KotlinLightClassForExplicitDeclaration.java:132)
  at com.intellij.psi.impl.light.AbstractLightClass.isInheritor(AbstractLightClass.java:298)
  at com.intellij.psi.search.searches.ClassInheritorsSearch$InheritanceChecker$1.checkInheritance(ClassInheritorsSearch.java:92)
  at com.intellij.psi.search.searches.ClassInheritorsSearch$4$1.run(ClassInheritorsSearch.java:225)
  at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:937)
  at com.intellij.psi.search.searches.ClassInheritorsSearch$4.process(ClassInheritorsSearch.java:220)
  at com.intellij.psi.search.searches.ClassInheritorsSearch$4.process(ClassInheritorsSearch.java:213)
  at com.intellij.util.UniqueResultsQuery$MyProcessor.process(UniqueResultsQuery.java:112)
  at com.intellij.openapi.application.QueryExecutorBase$1.process(QueryExecutorBase.java:33)
  at org.jetbrains.jet.plugin.search.KotlinDirectInheritorsSearcher$1.run(KotlinDirectInheritorsSearcher.java:75)
  at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:937)
  at org.jetbrains.jet.plugin.search.KotlinDirectInheritorsSearcher.processQuery(KotlinDirectInheritorsSearcher.java:50)
  at org.jetbrains.jet.plugin.search.KotlinDirectInheritorsSearcher.processQuery(KotlinDirectInheritorsSearcher.java:40)
  at com.intellij.openapi.application.QueryExecutorBase$2.run(QueryExecutorBase.java:44)
  at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:937)
  at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:42)
  at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:43)
  at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:77)
  at com.intellij.util.UniqueResultsQuery.process(UniqueResultsQuery.java:66)
  at com.intellij.util.UniqueResultsQuery.forEach(UniqueResultsQuery.java:56)
  at com.intellij.psi.search.searches.ClassInheritorsSearch.processInheritors(ClassInheritorsSearch.java:278)
  at com.intellij.psi.search.searches.ClassInheritorsSearch.access$100(ClassInheritorsSearch.java:46)
  at com.intellij.psi.search.searches.ClassInheritorsSearch$1.execute(ClassInheritorsSearch.java:75)
  at com.intellij.psi.search.searches.ClassInheritorsSearch$1.execute(ClassInheritorsSearch.java:53)
  at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:43)
  at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:77)
  at com.intellij.util.AbstractQuery.findFirst(AbstractQuery.java:54)
  at org.jetbrains.jet.plugin.highlighter.JetLineMarkerProvider.collectInheritingClasses(JetLineMarkerProvider.java:404)
  at org.jetbrains.jet.plugin.highlighter.JetLineMarkerProvider.collectSlowLineMarkers(JetLineMarkerProvider.java:377)
  at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.addLineMarkers(SlowLineMarkersPass.java:78)
  at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.doCollectInformation(SlowLineMarkersPass.java:65)
  at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
  at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
  at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1190)
  at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
  at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:207)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
  at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:345)
  at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
  at com.intellij.concurrency.JobLauncherImpl$2.call(JobLauncherImpl.java:139)
  at com.intellij.concurrency.JobLauncherImpl$2.call(JobLauncherImpl.java:135)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:32)
  at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:72)
  at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:115)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)


#2

Thanks for the report, we'll investigate