Git Product home page Git Product logo

Comments (3)

ting-yuan avatar ting-yuan commented on May 8, 2024

Besides testJavaModifiers, testAllFunctions is also failing when running the whole test suite.

from ksp.

ting-yuan avatar ting-yuan commented on May 8, 2024
Element: class com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl #JAVA  because: project is disposed: com.intellij.mock.MockProject@341eec3b
invalidated at: see attachment; Type element reference of class com.intellij.psi.impl.source.PsiMethodImpl #PsiMethodImpl, invalid; augmenters=[]
com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl #JAVA  because: project is disposed: com.intellij.mock.MockProject@341eec3b
invalidated at: see attachment; Type element reference of class com.intellij.psi.impl.source.PsiMethodImpl #PsiMethodImpl, invalid; augmenters=[]
	at com.intellij.psi.impl.source.PsiClassReferenceType.resolveGenerics(PsiClassReferenceType.java:177)
	at com.intellij.psi.PsiClassType.equals(PsiClassType.java:110)
	at java.util.HashMap.getNode(HashMap.java:572)
	at java.util.LinkedHashMap.get(LinkedHashMap.java:440)
	at org.jetbrains.kotlin.ksp.symbol.impl.java.KSTypeReferenceJavaImpl$Companion.getCached(KSTypeReferenceJavaImpl.kt:79)
	at org.jetbrains.kotlin.ksp.symbol.impl.java.KSFunctionDeclarationJavaImpl$returnType$2.invoke(KSFunctionDeclarationJavaImpl.kt:83)
	at org.jetbrains.kotlin.ksp.symbol.impl.java.KSFunctionDeclarationJavaImpl$returnType$2.invoke(KSFunctionDeclarationJavaImpl.kt:23)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at org.jetbrains.kotlin.ksp.symbol.impl.java.KSFunctionDeclarationJavaImpl.getReturnType(KSFunctionDeclarationJavaImpl.kt)
	at org.jetbrains.kotlin.ksp.processor.AllFunctionsProcessor$AllFunctionsVisitor.toSignature(AllFunctionsProcessor.kt:39)
	at org.jetbrains.kotlin.ksp.processor.AllFunctionsProcessor$AllFunctionsVisitor.visitFunctionDeclaration(AllFunctionsProcessor.kt:48)
	at org.jetbrains.kotlin.ksp.processor.AllFunctionsProcessor$AllFunctionsVisitor.visitFunctionDeclaration(AllFunctionsProcessor.kt:28)
	at org.jetbrains.kotlin.ksp.symbol.impl.java.KSFunctionDeclarationJavaImpl.accept(KSFunctionDeclarationJavaImpl.kt:98)
	at org.jetbrains.kotlin.ksp.processor.AllFunctionsProcessor$AllFunctionsVisitor.visitClassDeclaration(AllFunctionsProcessor.kt:44)
	at org.jetbrains.kotlin.ksp.processor.AllFunctionsProcessor$AllFunctionsVisitor.visitClassDeclaration(AllFunctionsProcessor.kt:28)
	at org.jetbrains.kotlin.ksp.symbol.impl.kotlin.KSClassDeclarationImpl.accept(KSClassDeclarationImpl.kt:115)
	at org.jetbrains.kotlin.ksp.processor.AllFunctionsProcessor$AllFunctionsVisitor.visitFile(AllFunctionsProcessor.kt:52)
	at org.jetbrains.kotlin.ksp.processor.AllFunctionsProcessor$AllFunctionsVisitor.visitFile(AllFunctionsProcessor.kt:28)
	at org.jetbrains.kotlin.ksp.symbol.impl.kotlin.KSFileImpl.accept(KSFileImpl.kt:38)
	at org.jetbrains.kotlin.ksp.processor.AllFunctionsProcessor.process(AllFunctionsProcessor.kt:25)
	at org.jetbrains.kotlin.ksp.AbstractKotlinSymbolProcessingExtension.doAnalysis(KotlinSymbolProcessingExtension.kt:63)
	at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:114)
	at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:91)
	at org.jetbrains.kotlin.resolve.lazy.JvmResolveUtil.analyze(JvmResolveUtil.kt:110)
	at org.jetbrains.kotlin.resolve.lazy.JvmResolveUtil.analyzeAndCheckForErrors(JvmResolveUtil.kt:77)
	at org.jetbrains.kotlin.codegen.GenerationUtils.compileFilesUsingStandardMode(GenerationUtils.kt:169)
	at org.jetbrains.kotlin.codegen.GenerationUtils.compileFiles(GenerationUtils.kt:91)
	at org.jetbrains.kotlin.codegen.GenerationUtils.compileFiles(GenerationUtils.kt:76)
	at org.jetbrains.kotlin.codegen.GenerationUtils.compileFiles$default(GenerationUtils.kt:74)
	at org.jetbrains.kotlin.ksp.test.AbstractKotlinKSPTest.doMultiFileTest(AbstractKotlinKSPTest.kt:42)
	at org.jetbrains.kotlin.codegen.CodegenTestCase.doTest(CodegenTestCase.java:821)
	at org.jetbrains.kotlin.test.KotlinTestUtils.lambda$testWithCustomIgnoreDirective$6(KotlinTestUtils.java:791)
	at org.jetbrains.kotlin.test.MuteWithFileKt$testWithMuteInFile$1.invoke(muteWithFile.kt:41)
	at org.jetbrains.kotlin.test.KotlinTestUtils.runTestImpl(KotlinTestUtils.java:774)
	at org.jetbrains.kotlin.test.KotlinTestUtils.runTest(KotlinTestUtils.java:712)
	at org.jetbrains.kotlin.ksp.test.KotlinKSPTestGenerated.runTest(KotlinKSPTestGenerated.java:24)
	at org.jetbrains.kotlin.ksp.test.KotlinKSPTestGenerated.testAllFunctions(KotlinKSPTestGenerated.java:33)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase.lambda$runTest$6(KtUsefulTestCase.java:256)
	at org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase.lambda$invokeTestRunnable$7(KtUsefulTestCase.java:297)
	at com.intellij.testFramework.EdtTestUtilKt.runInEdtAndWait(EdtTestUtil.kt:63)
	at org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase.invokeTestRunnable(KtUsefulTestCase.java:296)
	at org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase.runTest(KtUsefulTestCase.java:276)
	at org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase.defaultRunBare(KtUsefulTestCase.java:311)
	at com.intellij.testFramework.EdtTestUtil$Companion$runInEdtAndWait$1.invoke(EdtTestUtil.kt:18)
	at com.intellij.testFramework.EdtTestUtil$Companion$runInEdtAndWait$1.invoke(EdtTestUtil.kt:13)
	at com.intellij.testFramework.EdtTestUtilKt$runInEdtAndWait$3.run(EdtTestUtil.kt:67)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:398)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

from ksp.

ting-yuan avatar ting-yuan commented on May 8, 2024

Fixed in android/kotlin#63.

from ksp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.