Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when typing code #522

Open
hasanelfalakiy opened this issue Mar 26, 2024 · 0 comments
Open

crash when typing code #522

hasanelfalakiy opened this issue Mar 26, 2024 · 0 comments

Comments

@hasanelfalakiy
Copy link

crash when writing import com.......

java.lang.IllegalArgumentException: Equal objects must have equal hashcodes. During rehashing, Trove discovered that the following two objects claim to be equal (as in java.lang.Object.equals() or TObjectHashingStrategy.equals()) but their hashCodes (or those calculated by your TObjectHashingStrategy) are not equal.This violates the general contract of java.lang.Object.hashCode(). See bullet point two in that method's documentation. object #1 = (class java.lang.String), hashCode=0; object #2 = (class java.lang.String), hashCode=0
at gnu.trove.TObjectHash.throwObjectContractViolation(TObjectHash.java:331)
at gnu.trove.THashMap.rehash(THashMap.java:347)
at gnu.trove.THash.postInsertHook(THash.java:285)
at gnu.trove.THashMap.put(THashMap.java:174)
at org.jetbrains.kotlin.cli.jvm.index.JvmDependenciesIndexImpl.travelPath(JvmDependenciesIndexImpl.kt:260)
at org.jetbrains.kotlin.cli.jvm.index.JvmDependenciesIndexImpl.search(JvmDependenciesIndexImpl.kt:129)
at org.jetbrains.kotlin.cli.jvm.index.JvmDependenciesIndexImpl.traverseDirectoriesInPackage(JvmDependenciesIndexImpl.kt:77)
at org.jetbrains.kotlin.cli.jvm.index.JvmDependenciesDynamicCompoundIndex.traverseDirectoriesInPackage(JvmDependenciesDynamicCompoundIndex.kt:59)
at org.jetbrains.kotlin.cli.jvm.index.JvmDependenciesIndex.traverseDirectoriesInPackage$default(JvmDependenciesIndex.kt:35)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.findPackage(KotlinCliJavaFileManagerImpl.kt:211)
at org.jetbrains.kotlin.resolve.jvm.KotlinJavaPsiFacade$CliFinder.findPackage(KotlinJavaPsiFacade.java:543)
at org.jetbrains.kotlin.resolve.jvm.KotlinJavaPsiFacade.findPackage(KotlinJavaPsiFacade.java:376)
at org.jetbrains.kotlin.load.java.JavaClassFinderImpl.findPackage(JavaClassFinderImpl.kt:52)
at org.jetbrains.kotlin.load.java.JavaClassFinder.findPackage$default(JavaClassFinder.kt:36)
at org.jetbrains.kotlin.load.java.lazy.LazyJavaPackageFragmentProvider.isEmpty(LazyJavaPackageFragmentProvider.kt:51)
at org.jetbrains.kotlin.descriptors.PackageFragmentProviderKt.isEmpty(PackageFragmentProvider.kt:49)
at org.jetbrains.kotlin.descriptors.impl.CompositePackageFragmentProvider.isEmpty(CompositePackageFragmentProvider.kt:51)
at org.jetbrains.kotlin.descriptors.PackageFragmentProviderKt.isEmpty(PackageFragmentProvider.kt:49)
at org.jetbrains.kotlin.descriptors.impl.CompositePackageFragmentProvider.isEmpty(CompositePackageFragmentProvider.kt:51)
at org.jetbrains.kotlin.descriptors.PackageFragmentProviderKt.isEmpty(PackageFragmentProvider.kt:49)
at org.jetbrains.kotlin.descriptors.impl.LazyPackageViewDescriptorImpl$empty$2.invoke(LazyPackageViewDescriptorImpl.kt:39)
at org.jetbrains.kotlin.descriptors.impl.LazyPackageViewDescriptorImpl$empty$2.invoke(LazyPackageViewDescriptorImpl.kt:38)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:408)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedNotNullLazyValue.invoke(LockBasedStorageManager.java:527)
at org.jetbrains.kotlin.storage.StorageKt.getValue(storage.kt:42)
at org.jetbrains.kotlin.descriptors.impl.LazyPackageViewDescriptorImpl.getEmpty(LazyPackageViewDescriptorImpl.kt:38)
at org.jetbrains.kotlin.descriptors.impl.LazyPackageViewDescriptorImpl.isEmpty(LazyPackageViewDescriptorImpl.kt:42)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.tryResolveDescriptorsWhichCannotBeImported(QualifiedExpressionResolver.kt:374)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.access$tryResolveDescriptorsWhichCannotBeImported(QualifiedExpressionResolver.kt:53)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver$processSingleImport$1.invoke(QualifiedExpressionResolver.kt:355)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver$processSingleImport$1.invoke(QualifiedExpressionResolver.kt:344)
at org.jetbrains.kotlin.utils.CallOnceFunction.invoke(CallOnceFunction.kt:13)
at org.jetbrains.kotlin.resolve.LazyExplicitImportScope.storeReferencesToDescriptors$frontend(LazyExplicitImportScope.kt:120)
at org.jetbrains.kotlin.resolve.lazy.LazyImportResolverForKtImportDirective$forceResolveImportDirective$1.invoke(LazyImportScope.kt:172)
at org.jetbrains.kotlin.resolve.lazy.LazyImportResolverForKtImportDirective$forceResolveImportDirective$1.invoke(LazyImportScope.kt:169)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunction.invoke(LockBasedStorageManager.java:578)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunctionToNotNull.invoke(LockBasedStorageManager.java:651)
at org.jetbrains.kotlin.resolve.lazy.LazyImportResolverForKtImportDirective.forceResolveImport(LazyImportScope.kt:231)
at org.jetbrains.kotlin.resolve.lazy.LazyImportResolverForKtImportDirective$forceResolveNonDefaultImportsTask$1.invoke(LazyImportScope.kt:184)
at org.jetbrains.kotlin.resolve.lazy.LazyImportResolverForKtImportDirective$forceResolveNonDefaultImportsTask$1.invoke(LazyImportScope.kt:181)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:408)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedNotNullLazyValue.invoke(LockBasedStorageManager.java:527)
at org.jetbrains.kotlin.resolve.lazy.LazyImportResolverForKtImportDirective.forceResolveNonDefaultImports(LazyImportScope.kt:214)
at org.jetbrains.kotlin.resolve.lazy.FileScopeFactory$FilesScopesBuilder$importResolver$1.forceResolveNonDefaultImports(FileScopeFactory.kt:170)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.resolveImportsInFile(LazyTopDownAnalyzer.kt:252)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.resolveImportsInAllFiles(LazyTopDownAnalyzer.kt:247)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.analyzeDeclarations(LazyTopDownAnalyzer.kt:229)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.analyzeDeclarations$default(LazyTopDownAnalyzer.kt:58)
at com.tyron.kotlin.completion.KotlinEnvironment.analysisOf$lambda$22$lambda$20(KotlinEnvironment.kt:376)
at com.tyron.kotlin.completion.KotlinEnvironment.$r8$lambda$gml1dgV1M8_Urkq5Zl-E4H4XF54(Unknown Source:0)
at com.tyron.kotlin.completion.KotlinEnvironment$$ExternalSyntheticLambda4.invoke(D8$$SyntheticClass:0)
at com.tyron.kotlin.completion.util.StopWatchKt.logTime(StopWatch.kt:30)
at com.tyron.kotlin.completion.KotlinEnvironment.analysisOf$lambda$22(KotlinEnvironment.kt:373)
at com.tyron.kotlin.completion.KotlinEnvironment.$r8$lambda$yKjUV9iYDJJ8ZNE6rts8bfau850(Unknown Source:0)
at com.tyron.kotlin.completion.KotlinEnvironment$$ExternalSyntheticLambda5.invoke(D8$$SyntheticClass:0)
at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:115)
at com.tyron.kotlin.completion.KotlinEnvironment.analysisOf(KotlinEnvironment.kt:357)
at com.tyron.kotlin.completion.KotlinEnvironment$complete$1.invokeSuspend(KotlinEnvironment.kt:205)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@c45d90e, Dispatchers.IO]

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

No branches or pull requests

1 participant