Closed toth-istvan-zoltan closed 2 months ago
When there are multiple classes with the same name the plugin throws an error.
Reproduce: copy a file multiple times with different name.
When creating a new adat class and typing a new field:
java.lang.IllegalStateException: not identifier: <no name provided>
at org.jetbrains.kotlin.name.Name.getIdentifier(Name.java:40)
at fun.adaptive.kotlin.adat.fir.AdatDeclarationGenerator.generateFunctions(AdatDeclarationGenerator.kt:251)
at org.jetbrains.kotlin.fir.scopes.impl.FirGeneratedMemberDeclarationsStorage$CallableStorage.generateMemberFunctions(FirGeneratedScopes.kt:198)
at org.jetbrains.kotlin.fir.scopes.impl.FirGeneratedMemberDeclarationsStorage$CallableStorage.access$generateMemberFunctions(FirGeneratedScopes.kt:175)
at org.jetbrains.kotlin.fir.scopes.impl.FirGeneratedMemberDeclarationsStorage$CallableStorage$special$$inlined$createCache$1.invoke(FirCachesFactory.kt:73)
at org.jetbrains.kotlin.fir.scopes.impl.FirGeneratedMemberDeclarationsStorage$CallableStorage$special$$inlined$createCache$1.invoke(FirCachesFactory.kt:71)
at org.jetbrains.kotlin.analysis.low.level.api.fir.fir.caches.FirThreadSafeCache.getValue(FirThreadSafeCache.kt:27)
at org.jetbrains.kotlin.fir.scopes.impl.FirGeneratedClassDeclaredMemberScope.processFunctionsByName(FirGeneratedScopes.kt:281)
at org.jetbrains.kotlin.fir.scopes.FirCompositeScope.processFunctionsByName(FirCompositeScope.kt:55)
at org.jetbrains.kotlin.fir.scopes.FirNameAwareCompositeScope.processFunctionsByName(FirCompositeScope.kt:82)
at org.jetbrains.kotlin.analysis.api.fir.scopes.FirScopeUtilsKt$getCallableSymbols$1.invokeSuspend(firScopeUtils.kt:24)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:129)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassUtilsKt.createMethods(symbolLightClassUtils.kt:741)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassUtilsKt.createMethods$default(symbolLightClassUtils.kt:207)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForClassOrObject$getOwnMethods$$inlined$cachedValue$1.compute(symbolLightUtils.kt:386)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:173)
at com.intellij.psi.impl.PsiCachedValueImpl$Direct.doCompute(PsiCachedValueImpl.kt:77)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236)
at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl$Direct.getValue(PsiCachedValueImpl.kt:81)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:83)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:170)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:136)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForClassOrObject.getOwnMethods(SymbolLightClassForClassOrObject.kt:314)
at org.jetbrains.kotlin.asJava.classes.ClassInnerStuffCache.calcMethods(ClassInnerStuffCache.java:221)
at org.jetbrains.kotlin.asJava.classes.ClassInnerStuffCache.lambda$getMethods$2(ClassInnerStuffCache.java:94)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:173)
at com.intellij.psi.impl.PsiCachedValueImpl$Direct.doCompute(PsiCachedValueImpl.kt:77)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236)
at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl$Direct.getValue(PsiCachedValueImpl.kt:81)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:83)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:170)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:136)
at org.jetbrains.kotlin.asJava.classes.ClassInnerStuffCache.getMethods(ClassInnerStuffCache.java:91)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassBase.getMethods(SymbolLightClassBase.kt:51)
at org.jetbrains.kotlin.asJava.LightClassUtil.getPsiMethodWrappers$lambda$6(LightClassUtil.kt:169)
at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:315)
at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at org.jetbrains.kotlin.asJava.LightClassUtil.extractPropertyAccessors(LightClassUtil.kt:339)
at org.jetbrains.kotlin.asJava.LightClassUtil.getLightClassPropertyMethods(LightClassUtil.kt:138)
at org.jetbrains.uast.kotlin.BaseKotlinConverter.convertParameter(BaseKotlinConverter.kt:420)
at org.jetbrains.uast.kotlin.BaseKotlinConverter.convertDeclaration(BaseKotlinConverter.kt:233)
at org.jetbrains.uast.kotlin.BaseKotlinConverter.convertDeclarationOrElement(BaseKotlinConverter.kt:294)
at org.jetbrains.uast.kotlin.FirKotlinUastLanguagePlugin.convertElementWithParent(FirKotlinUastLanguagePlugin.kt:66)
at org.jetbrains.uast.kotlin.KotlinConvertParentUtilsKt.convertParentImpl(kotlinConvertParentUtils.kt:174)
at org.jetbrains.uast.kotlin.KotlinConvertParentUtilsKt.convertParentImpl(kotlinConvertParentUtils.kt:135)
at org.jetbrains.uast.kotlin.BaseKotlinUastResolveProviderService.convertParent(BaseKotlinUastResolveProviderService.kt:25)
at org.jetbrains.uast.kotlin.KotlinAbstractUElement.convertParent(KotlinAbstractUElement.kt:41)
at org.jetbrains.uast.kotlin.KotlinAbstractUElement.getUastParent(KotlinAbstractUElement.kt:34)
at com.intellij.microservices.jvm.url.UastUrlPathInlayLanguagesProvider.hasFieldOrExpressionParent(UastUrlPathInlayLanguagesProvider.kt:69)
at com.intellij.microservices.jvm.url.UastUrlPathInlayLanguagesProvider.getPotentialElementsWithHintsProviders(UastUrlPathInlayLanguagesProvider.kt:49)
at com.intellij.microservices.url.inlay.UrlPathInlayHintsProvider$Companion.inlaysInElement$intellij_microservices(UrlPathInlayHintsProvider.kt:134)
at com.intellij.microservices.url.inlay.UrlPathInlayHintsProvider$getCollectorFor$1$collect$1.invoke(UrlPathInlayHintsProvider.kt:37)
at com.intellij.microservices.url.inlay.UrlPathInlayHintsProvider$getCollectorFor$1$collect$1.invoke(UrlPathInlayHintsProvider.kt:36)
at com.intellij.microservices.url.references.UrlPathContextKt.forbidExpensiveUrlContext(UrlPathContext.kt:248)
at com.intellij.microservices.url.inlay.UrlPathInlayHintsProvider$getCollectorFor$1.collect(UrlPathInlayHintsProvider.kt:36)
at com.intellij.codeInsight.hints.CollectorWithSettings.collectHints(InlayHintsUtils.kt:97)
at com.intellij.codeInsight.hints.InlayHintsPass.doCollectInformation$lambda$1(InlayHintsPass.kt:60)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:139)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:152)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:152)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:291)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:965)
at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:96)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:108)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:89)
at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:759)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1491)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2073)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2035)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
This is something else, I was typing descriptor properties:
@Adat
class IntTest(
val someInt : Int
) {
override fun descriptor() {
properties {
someInt minimum 23 maximum 100 default 12
}
}
}
class IntValidation {
}
org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments: Cannot compute containing PSI for unknown source kind 'org.jetbrains.kotlin.KtFakeSourceElementKind$DataClassGeneratedMembers@5da21d66' (KtParameter)
at org.jetbrains.kotlin.analysis.api.fir.components.KaFirSymbolRelationProvider.getContainingPsi(KaFirSymbolRelationProvider.kt:503)
at org.jetbrains.kotlin.analysis.api.fir.components.KaFirSymbolRelationProvider.getContainingDeclarationByPsi(KaFirSymbolRelationProvider.kt:183)
at org.jetbrains.kotlin.analysis.api.fir.components.KaFirSymbolRelationProvider.getContainingDeclaration(KaFirSymbolRelationProvider.kt:93)
at org.jetbrains.kotlin.analysis.api.impl.base.KaBaseSession.getContainingDeclaration(KaBaseSession.kt)
at org.jetbrains.kotlin.analysis.api.fir.symbols.KaFirNamedFunctionSymbol.createPointer(KaFirNamedFunctionSymbol.kt:438)
at org.jetbrains.kotlin.light.classes.symbol.methods.SymbolLightMethod.<init>(SymbolLightMethod.kt:59)
at org.jetbrains.kotlin.light.classes.symbol.methods.SymbolLightSimpleMethod.<init>(SymbolLightSimpleMethod.kt:43)
at org.jetbrains.kotlin.light.classes.symbol.methods.SymbolLightSimpleMethod.<init>(SymbolLightSimpleMethod.kt:34)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassUtilsKt.createMethods$handleDeclaration(symbolLightClassUtils.kt:226)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassUtilsKt.createMethods(symbolLightClassUtils.kt:265)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassUtilsKt.createMethods$default(symbolLightClassUtils.kt:207)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForClassOrObject.addMethodsFromDataClass(SymbolLightClassForClassOrObject.kt:186)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForClassOrObject.access$addMethodsFromDataClass(SymbolLightClassForClassOrObject.kt:45)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForClassOrObject$getOwnMethods$$inlined$cachedValue$1.compute(symbolLightUtils.kt:393)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:173)
at com.intellij.psi.impl.PsiCachedValueImpl$Direct.doCompute(PsiCachedValueImpl.kt:77)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236)
at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl$Direct.getValue(PsiCachedValueImpl.kt:81)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:83)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:170)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:136)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassForClassOrObject.getOwnMethods(SymbolLightClassForClassOrObject.kt:314)
at org.jetbrains.kotlin.asJava.classes.ClassInnerStuffCache.calcMethods(ClassInnerStuffCache.java:221)
at org.jetbrains.kotlin.asJava.classes.ClassInnerStuffCache.lambda$getMethods$2(ClassInnerStuffCache.java:94)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:173)
at com.intellij.psi.impl.PsiCachedValueImpl$Direct.doCompute(PsiCachedValueImpl.kt:77)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236)
at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl$Direct.getValue(PsiCachedValueImpl.kt:81)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:83)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:170)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:136)
at org.jetbrains.kotlin.asJava.classes.ClassInnerStuffCache.getMethods(ClassInnerStuffCache.java:91)
at org.jetbrains.kotlin.light.classes.symbol.classes.SymbolLightClassBase.getMethods(SymbolLightClassBase.kt:51)
at org.jetbrains.kotlin.asJava.LightClassUtil.getPsiMethodWrappers$lambda$6(LightClassUtil.kt:169)
at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:315)
at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.SequencesKt___SequencesKt.firstOrNull(_Sequences.kt:168)
at org.jetbrains.kotlin.asJava.LightClassUtil.getPsiMethodWrapper(LightClassUtil.kt:161)
at org.jetbrains.kotlin.asJava.LightClassUtil.getLightClassMethod(LightClassUtil.kt:142)
at org.jetbrains.uast.kotlin.BaseKotlinConverter.convertDeclaration(BaseKotlinConverter.kt:201)
at org.jetbrains.uast.kotlin.BaseKotlinConverter.convertDeclarationOrElement(BaseKotlinConverter.kt:294)
at org.jetbrains.uast.kotlin.FirKotlinUastLanguagePlugin.convertElementWithParent(FirKotlinUastLanguagePlugin.kt:66)
at org.jetbrains.uast.kotlin.KotlinConvertParentUtilsKt.convertParentImpl(kotlinConvertParentUtils.kt:174)
at org.jetbrains.uast.kotlin.KotlinConvertParentUtilsKt.convertParentImpl(kotlinConvertParentUtils.kt:135)
at org.jetbrains.uast.kotlin.BaseKotlinUastResolveProviderService.convertParent(BaseKotlinUastResolveProviderService.kt:25)
at org.jetbrains.uast.kotlin.KotlinAbstractUElement.convertParent(KotlinAbstractUElement.kt:41)
at org.jetbrains.uast.kotlin.KotlinUFunctionCallExpression.convertParent(KotlinUFunctionCallExpression.kt:276)
at org.jetbrains.uast.kotlin.KotlinAbstractUElement.getUastParent(KotlinAbstractUElement.kt:34)
at org.jetbrains.uast.UastUtils__UastUtilsKt.getParentOfType(UastUtils.kt:28)
at org.jetbrains.uast.UastUtils.getParentOfType(Unknown Source)
at org.jetbrains.uast.UastUtils__UastUtilsKt.getParentOfType$default(UastUtils.kt:21)
at org.jetbrains.uast.UastUtils.getParentOfType$default(Unknown Source)
at com.intellij.cdi.highlighting.CdiInjectPostfixTemplate.getExpression(CdiInjectPostfixTemplate.kt:55)
at com.intellij.cdi.highlighting.CdiInjectPostfixTemplate.isApplicable(CdiInjectPostfixTemplate.kt:21)
at com.intellij.codeInsight.template.postfix.templates.PostfixLiveTemplate.lambda$createIsApplicationTemplateFunction$4(PostfixLiveTemplate.java:302)
at com.intellij.codeInsight.template.postfix.templates.PostfixLiveTemplate.getLookupElements(PostfixLiveTemplate.java:223)
at com.intellij.codeInsight.template.CustomLiveTemplateBase.addCompletions(CustomLiveTemplateBase.java:39)
at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor.showCustomLiveTemplates(LiveTemplateCompletionContributor.java:170)
at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$1.addCompletions(LiveTemplateCompletionContributor.java:96)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:23)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:156)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributor(CompletionService.java:81)
at com.intellij.codeInsight.completion.impl.CompletionServiceImpl.getVariantsFromContributor(CompletionServiceImpl.kt:220)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:73)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:56)
at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:130)
at com.intellij.codeInsight.completion.BaseCompletionService.performCompletion(BaseCompletionService.java:48)
at com.intellij.codeInsight.completion.impl.CompletionServiceImpl.performCompletion(CompletionServiceImpl.kt:235)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.lambda$calculateItems$12(CompletionProgressIndicator.java:974)
at com.intellij.util.indexing.FileBasedIndex.lambda$ignoreDumbMode$0(FileBasedIndex.java:225)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111)
at com.intellij.util.indexing.FileBasedIndexEx.ignoreDumbMode(FileBasedIndexEx.java:645)
at com.intellij.util.indexing.FileBasedIndex.ignoreDumbMode(FileBasedIndex.java:224)
at com.intellij.util.indexing.DumbModeAccessType.ignoreDumbMode(DumbModeAccessType.java:41)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.calculateItems(CompletionProgressIndicator.java:970)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.runContributors(CompletionProgressIndicator.java:958)
at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$startContributorThread$7(CodeCompletionHandlerBase.java:383)
at io.opentelemetry.context.Context.lambda$wrap$1(Context.java:212)
at com.intellij.codeInsight.completion.CompletionThreadingKt.tryReadOrCancel$lambda$0(CompletionThreading.kt:76)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:291)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:965)
at com.intellij.codeInsight.completion.CompletionThreadingKt.tryReadOrCancel(CompletionThreading.kt:74)
at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$startContributorThread$8(CodeCompletionHandlerBase.java:375)
at io.opentelemetry.context.Context.lambda$wrap$1(Context.java:212)
at com.intellij.codeInsight.completion.AsyncCompletion.startThread$lambda$1$lambda$0(CompletionThreading.kt:98)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:217)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
at com.intellij.codeInsight.completion.AsyncCompletion.startThread$lambda$1(CompletionThreading.kt:93)
at com.intellij.codeInsight.completion.AsyncCompletion$startThread$future$1.invokeSuspend(CompletionThreading.kt:104)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
- symbolForContainingPsi:
Class: org.jetbrains.kotlin.analysis.api.fir.symbols.KaFirNamedFunctionSymbol
Value:
KaNamedFunctionSymbol:
annotations: []
callableId: fun/adaptive/adat/metadata/AdatDescriptorMetadata.component1
compilerVisibility: Public
contextReceivers: []
contractEffects: []
hasStableParameterNames: true
isActual: false
isBuiltinFunctionInvoke: false
isExpect: false
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: true
isOverride: false
isStatic: false
isSuspend: false
isTailRec: false
location: CLASS
modality: FINAL
name: component1
origin: SOURCE_MEMBER_GENERATED
receiverParameter: null
returnType: KaUsualClassType:
annotations: []
typeArguments: []
type: kotlin/String
typeParameters: []
valueParameters: []
visibility: PUBLIC
getDispatchReceiver(): KaUsualClassType:
annotations: []
typeArguments: []
type: fun/adaptive/adat/metadata/AdatDescriptorMetadata
getContainingFileSymbol: KaFileSymbol(AdatDescriptorMetadata.kt)
getContainingJvmClassName: fun.adaptive.adat.metadata.AdatDescriptorMetadata
getContainingModule: KaSourceModule "Sources of adaptive-core.commonMain"
deprecationStatus: null
========
- symbolForContainingPsiPsi:
Class: org.jetbrains.kotlin.psi.KtParameter
Value:
<File name: AdatDescriptorMetadata.kt, Physical: false>
(
<ELEMENT>val name: String</ELEMENT>,
val parameters: String
)
========
- symbolForContainingPsiPsiModule:
Class: org.jetbrains.kotlin.analysis.api.platform.projectStructure.KaDanglingFileModuleImpl
Value:
Temporary file
========
- symbolForContainingPsiFir:
Class: org.jetbrains.kotlin.fir.declarations.impl.FirSimpleFunctionImpl
Value:
public final operator [ResolvedTo(CONTRACTS)] [ExpectForActualAttributeKey={}] fun component1(): R|kotlin/String|
========
- symbolForContainingPsiFirElementKind:
DataClassGeneratedMembers
========
- symbolForContainingPsiFirModuleData:
Class: org.jetbrains.kotlin.analysis.low.level.api.fir.projectStructure.LLFirModuleData
Value:
Name: <Temporary file>, Platform: JS/JVM (11)/Native (general)
========
- symbolForContainingPsiFirSource:
Class: org.jetbrains.kotlin.KtFakeSourceElement
Value:
<File name: AdatDescriptorMetadata.kt, Physical: false>
(
<ELEMENT>val name: String</ELEMENT>,
val parameters: String
)
========
Fixed the first two, I don't really know what to do with the third. I'll close this for now and see if it comes up again in 0.7.0.
Adaptive version: 0.6.1