JetBrains / intellij-platform-gradle-plugin

Gradle plugin for building plugins for IntelliJ-based IDEs
https://plugins.jetbrains.com/docs/intellij/gradle-prerequisites.html
Apache License 2.0
1.43k stars 272 forks source link

Adding of "com.jetbrains.rust" dependency leads to TestCargoProjectsServiceImpl ClassNotFoundException for LightPlatformCodeInsightTestCase run #1819

Open clutcher opened 4 days ago

clutcher commented 4 days ago

What happened?

All tests, which extends LightPlatformCodeInsightTestCase, are failing with ClassNotFoundException for org.rust.cargo.project.model.impl.TestCargoProjectsServiceImpl, when plugin depends on com.jetbrains.rust plugin.

Relevant log output or stack trace

Configuration file for j.u.l.LogManager does not exist: /home/clutcher/.gradle/caches/transforms-4/1a535f9444d483d2f099d62a6f1eb05e/transformed/ideaIU-2024.2.4/test-log.properties
SLF4J: Class path contains multiple SLF4J providers.
SLF4J: Found provider [com.intellij.clouds.docker.devcontainers.cli.logging.SLF4JServiceProviderImpl@526443e0]
SLF4J: Found provider [org.slf4j.jul.JULServiceProvider@17b15579]
SLF4J: See https://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual provider is of type [com.intellij.clouds.docker.devcontainers.cli.logging.SLF4JServiceProviderImpl@526443e0]
{"type":"LogRecord","content":{"level":"DEBUG","message":"Using Log4J2 as the default logging framework","stackTrace":null}}
{"type":"LogRecord","content":{"level":"DEBUG","message":"-Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024","stackTrace":null}}
{"type":"LogRecord","content":{"level":"DEBUG","message":"-Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096","stackTrace":null}}
ERROR: Exception at Workspace Model event handling
java.lang.RuntimeException: Cannot invoke (class=LegacyProjectModelListenersBridge, method=changed, topic=WorkspaceModelChangeListener)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:699)
    at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
    at com.intellij.util.messages.impl.MessagePublisher.publish$intellij_platform_core(MessageBusImpl.kt:494)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
    at jdk.proxy3/jdk.proxy3.$Proxy42.changed(Unknown Source)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$onChanged$3$1.invoke(WorkspaceModelImpl.kt:430)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$onChanged$3$1.invoke(WorkspaceModelImpl.kt:429)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.logErrorOnEventHandling(WorkspaceModelImpl.kt:470)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.onChanged(WorkspaceModelImpl.kt:429)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.access$onChanged(WorkspaceModelImpl.kt:44)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$updateProjectModel$generalTime$1$7.invoke(WorkspaceModelImpl.kt:181)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$updateProjectModel$generalTime$1$7.invoke(WorkspaceModelImpl.kt:181)
    at com.intellij.platform.workspace.storage.impl.VersionedEntityStorageImpl.replace(VersionedEntityStorageImpl.kt:247)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.updateProjectModel(WorkspaceModelImpl.kt:181)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.ModifiableModuleModelBridgeImpl.commit(ModifiableModuleModelBridgeImpl.kt:239)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.ModuleManagerBridgeImpl.newModule(ModuleManagerBridgeImpl.kt:277)
    at com.intellij.openapi.module.ModuleManager.newModule(ModuleManager.kt:46)
    at com.intellij.testFramework.LightProjectDescriptor.lambda$createModule$1(LightProjectDescriptor.java:83)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:900)
    at com.intellij.openapi.application.WriteAction.compute(WriteAction.java:95)
    at com.intellij.testFramework.LightProjectDescriptor.createModule(LightProjectDescriptor.java:82)
    at com.intellij.testFramework.LightProjectDescriptor.createMainModule(LightProjectDescriptor.java:66)
    at com.intellij.testFramework.LightProjectDescriptor.lambda$setUpProject$0(LightProjectDescriptor.java:44)
    at com.intellij.openapi.application.WriteAction.lambda$run$1(WriteAction.java:85)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:900)
    at com.intellij.openapi.application.WriteAction.run(WriteAction.java:84)
    at com.intellij.testFramework.LightProjectDescriptor.setUpProject(LightProjectDescriptor.java:43)
    at com.intellij.testFramework.LightPlatformTestCase.initProject(LightPlatformTestCase.java:182)
    at com.intellij.testFramework.LightPlatformTestCase.lambda$doSetup$3(LightPlatformTestCase.java:261)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread$lambda$1(AnyThreadWriteThreadingSupport.kt:184)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread(AnyThreadWriteThreadingSupport.kt:183)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:836)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:403)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:436)
    at com.intellij.testFramework.LightPlatformTestCase.doSetup(LightPlatformTestCase.java:252)
    at com.intellij.testFramework.LightPlatformTestCase.lambda$setUp$2(LightPlatformTestCase.java:224)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$1(EdtTestUtil.java:51)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:910)
    at com.intellij.testFramework.EdtTestUtil.runInEdtAndWait(EdtTestUtil.java:50)
    at com.intellij.testFramework.EdtTestUtil.runInEdtAndWait(EdtTestUtil.java:40)
    at com.intellij.testFramework.LightPlatformTestCase.setUp(LightPlatformTestCase.java:219)
    at com.intellij.testFramework.LightPlatformCodeInsightTestCase.setUp(LightPlatformCodeInsightTestCase.java:308)
    at com.intellij.testFramework.UsefulTestCase.invokeSetUp(UsefulTestCase.java:433)
    at com.intellij.testFramework.UsefulTestCase.defaultRunBare(UsefulTestCase.java:425)
    at com.intellij.testFramework.UsefulTestCase.lambda$runBare$12(UsefulTestCase.java:494)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$3(EdtTestUtil.java:80)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$4(EdtTestUtil.java:79)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:320)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.ClassNotFoundException: org.rust.cargo.project.model.impl.TestCargoProjectsServiceImpl
    at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:233)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass(ComponentManagerImpl.kt:1468)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass$default(ComponentManagerImpl.kt:1460)
    at com.intellij.serviceContainer.ServiceDescriptorInstanceInitializer.loadInstanceClass(ServiceInstanceInitializer.kt:91)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:117)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext$suspendImpl(LazyInstanceHolder.kt:87)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext(LazyInstanceHolder.kt)
    at com.intellij.serviceContainer.ComponentManagerImplKt$doGetOrCreateInstanceBlocking$1.invokeSuspend(ComponentManagerImpl.kt:1568)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:111)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$BuildersKt__BuildersKt(Builders.kt:84)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:52)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
    at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1686)
    at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1677)
    at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:85)
    at com.intellij.serviceContainer.ComponentManagerImplKt.runBlockingInitialization(ComponentManagerImpl.kt:1677)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doGetOrCreateInstanceBlocking(ComponentManagerImpl.kt:1567)
    at com.intellij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1562)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
    at org.rust.cargo.project.model.CargoProjectServiceKt.getCargoProjects(CargoProjectService.kt:336)
    at org.rust.cargo.project.workspace.RsAdditionalLibraryRootsProvider.getAdditionalProjectLibraries(RsAdditionalLibraryRootsProvider.kt:68)
    at org.rust.cargo.project.workspace.RsAdditionalLibraryRootsProvider.getRootsToWatch(RsAdditionalLibraryRootsProvider.kt:71)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.collectWatchRoots(ProjectRootManagerComponent.kt:284)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.addRootsToWatch(ProjectRootManagerComponent.kt:207)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.fireRootsChangedEvent(ProjectRootManagerComponent.kt:266)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.fireRootsChanged(ProjectRootManagerImpl.kt:496)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.access$fireRootsChanged(ProjectRootManagerImpl.kt:38)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$rootsChanged$1.fireRootsChanged(ProjectRootManagerImpl.kt:148)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$rootsChanged$1.fireRootsChanged(ProjectRootManagerImpl.kt:146)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.rootsChanged(ProjectRootManagerImpl.kt:122)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.project.ModuleRootListenerBridgeImpl.fireRootsChanged(ModuleRootListenerBridgeImpl.kt:68)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.LegacyProjectModelListenersBridge.changed(LegacyProjectModelListenersBridge.kt:92)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:686)
    ... 67 more

Exception at Workspace Model event handling
com.intellij.testFramework.TestLoggerFactory$TestLoggerAssertionError: Exception at Workspace Model event handling
    at com.intellij.testFramework.TestLoggerFactory$TestLogger.error(TestLoggerFactory.java:407)
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:423)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.logErrorOnEventHandling(WorkspaceModelImpl.kt:480)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.onChanged(WorkspaceModelImpl.kt:429)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.access$onChanged(WorkspaceModelImpl.kt:44)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$updateProjectModel$generalTime$1$7.invoke(WorkspaceModelImpl.kt:181)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$updateProjectModel$generalTime$1$7.invoke(WorkspaceModelImpl.kt:181)
    at com.intellij.platform.workspace.storage.impl.VersionedEntityStorageImpl.replace(VersionedEntityStorageImpl.kt:247)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.updateProjectModel(WorkspaceModelImpl.kt:181)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.ModifiableModuleModelBridgeImpl.commit(ModifiableModuleModelBridgeImpl.kt:239)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.ModuleManagerBridgeImpl.newModule(ModuleManagerBridgeImpl.kt:277)
    at com.intellij.openapi.module.ModuleManager.newModule(ModuleManager.kt:46)
    at com.intellij.testFramework.LightProjectDescriptor.lambda$createModule$1(LightProjectDescriptor.java:83)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:900)
    at com.intellij.openapi.application.WriteAction.compute(WriteAction.java:95)
    at com.intellij.testFramework.LightProjectDescriptor.createModule(LightProjectDescriptor.java:82)
    at com.intellij.testFramework.LightProjectDescriptor.createMainModule(LightProjectDescriptor.java:66)
    at com.intellij.testFramework.LightProjectDescriptor.lambda$setUpProject$0(LightProjectDescriptor.java:44)
    at com.intellij.openapi.application.WriteAction.lambda$run$1(WriteAction.java:85)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:900)
    at com.intellij.openapi.application.WriteAction.run(WriteAction.java:84)
    at com.intellij.testFramework.LightProjectDescriptor.setUpProject(LightProjectDescriptor.java:43)
    at com.intellij.testFramework.LightPlatformTestCase.initProject(LightPlatformTestCase.java:182)
    at com.intellij.testFramework.LightPlatformTestCase.lambda$doSetup$3(LightPlatformTestCase.java:261)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread$lambda$1(AnyThreadWriteThreadingSupport.kt:184)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread(AnyThreadWriteThreadingSupport.kt:183)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:836)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:403)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:436)
    at com.intellij.testFramework.LightPlatformTestCase.doSetup(LightPlatformTestCase.java:252)
    at com.intellij.testFramework.LightPlatformTestCase.lambda$setUp$2(LightPlatformTestCase.java:224)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$1(EdtTestUtil.java:51)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:910)
    at com.intellij.testFramework.EdtTestUtil.runInEdtAndWait(EdtTestUtil.java:50)
    at com.intellij.testFramework.EdtTestUtil.runInEdtAndWait(EdtTestUtil.java:40)
    at com.intellij.testFramework.LightPlatformTestCase.setUp(LightPlatformTestCase.java:219)
    at com.intellij.testFramework.LightPlatformCodeInsightTestCase.setUp(LightPlatformCodeInsightTestCase.java:308)
    at com.intellij.testFramework.UsefulTestCase.invokeSetUp(UsefulTestCase.java:433)
    at com.intellij.testFramework.UsefulTestCase.defaultRunBare(UsefulTestCase.java:425)
    at com.intellij.testFramework.UsefulTestCase.lambda$runBare$12(UsefulTestCase.java:494)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$3(EdtTestUtil.java:80)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$4(EdtTestUtil.java:79)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:320)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
    Suppressed: java.lang.NullPointerException: Cannot invoke "com.intellij.openapi.module.Module.getProject()" because "com.intellij.testFramework.LightPlatformTestCase.ourModule" is null
        at com.intellij.testFramework.LightPlatformTestCase.closeAndDeleteProject(LightPlatformTestCase.java:598)
        at com.intellij.testFramework.LightPlatformTestCase.initProject(LightPlatformTestCase.java:198)
        ... 36 more
Caused by: java.lang.RuntimeException: Cannot invoke (class=LegacyProjectModelListenersBridge, method=changed, topic=WorkspaceModelChangeListener)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:699)
    at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
    at com.intellij.util.messages.impl.MessagePublisher.publish$intellij_platform_core(MessageBusImpl.kt:494)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
    at jdk.proxy3/jdk.proxy3.$Proxy42.changed(Unknown Source)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$onChanged$3$1.invoke(WorkspaceModelImpl.kt:430)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$onChanged$3$1.invoke(WorkspaceModelImpl.kt:429)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.logErrorOnEventHandling(WorkspaceModelImpl.kt:470)
    ... 60 more
Caused by: java.lang.ClassNotFoundException: org.rust.cargo.project.model.impl.TestCargoProjectsServiceImpl
    at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:233)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass(ComponentManagerImpl.kt:1468)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass$default(ComponentManagerImpl.kt:1460)
    at com.intellij.serviceContainer.ServiceDescriptorInstanceInitializer.loadInstanceClass(ServiceInstanceInitializer.kt:91)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:117)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext$suspendImpl(LazyInstanceHolder.kt:87)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext(LazyInstanceHolder.kt)
    at com.intellij.serviceContainer.ComponentManagerImplKt$doGetOrCreateInstanceBlocking$1.invokeSuspend(ComponentManagerImpl.kt:1568)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:111)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$BuildersKt__BuildersKt(Builders.kt:84)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:52)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
    at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1686)
    at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1677)
    at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:85)
    at com.intellij.serviceContainer.ComponentManagerImplKt.runBlockingInitialization(ComponentManagerImpl.kt:1677)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doGetOrCreateInstanceBlocking(ComponentManagerImpl.kt:1567)
    at com.intellij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1562)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
    at org.rust.cargo.project.model.CargoProjectServiceKt.getCargoProjects(CargoProjectService.kt:336)
    at org.rust.cargo.project.workspace.RsAdditionalLibraryRootsProvider.getAdditionalProjectLibraries(RsAdditionalLibraryRootsProvider.kt:68)
    at org.rust.cargo.project.workspace.RsAdditionalLibraryRootsProvider.getRootsToWatch(RsAdditionalLibraryRootsProvider.kt:71)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.collectWatchRoots(ProjectRootManagerComponent.kt:284)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.addRootsToWatch(ProjectRootManagerComponent.kt:207)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.fireRootsChangedEvent(ProjectRootManagerComponent.kt:266)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.fireRootsChanged(ProjectRootManagerImpl.kt:496)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.access$fireRootsChanged(ProjectRootManagerImpl.kt:38)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$rootsChanged$1.fireRootsChanged(ProjectRootManagerImpl.kt:148)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$rootsChanged$1.fireRootsChanged(ProjectRootManagerImpl.kt:146)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.rootsChanged(ProjectRootManagerImpl.kt:122)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.project.ModuleRootListenerBridgeImpl.fireRootsChanged(ModuleRootListenerBridgeImpl.kt:68)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.LegacyProjectModelListenersBridge.changed(LegacyProjectModelListenersBridge.kt:92)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:686)
    ... 67 more

Cannot invoke (class=LegacyProjectModelListenersBridge, method=changed, topic=WorkspaceModelChangeListener)
java.lang.RuntimeException: Cannot invoke (class=LegacyProjectModelListenersBridge, method=changed, topic=WorkspaceModelChangeListener)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:699)
    at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
    at com.intellij.util.messages.impl.MessagePublisher.publish$intellij_platform_core(MessageBusImpl.kt:494)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
    at jdk.proxy3/jdk.proxy3.$Proxy42.changed(Unknown Source)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$onChanged$3$1.invoke(WorkspaceModelImpl.kt:430)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$onChanged$3$1.invoke(WorkspaceModelImpl.kt:429)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.logErrorOnEventHandling(WorkspaceModelImpl.kt:470)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.onChanged(WorkspaceModelImpl.kt:429)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.access$onChanged(WorkspaceModelImpl.kt:44)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$updateProjectModel$generalTime$1$7.invoke(WorkspaceModelImpl.kt:181)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$updateProjectModel$generalTime$1$7.invoke(WorkspaceModelImpl.kt:181)
    at com.intellij.platform.workspace.storage.impl.VersionedEntityStorageImpl.replace(VersionedEntityStorageImpl.kt:247)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.updateProjectModel(WorkspaceModelImpl.kt:181)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.ModifiableModuleModelBridgeImpl.commit(ModifiableModuleModelBridgeImpl.kt:239)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.ModuleManagerBridgeImpl.newModule(ModuleManagerBridgeImpl.kt:277)
    at com.intellij.openapi.module.ModuleManager.newModule(ModuleManager.kt:46)
    at com.intellij.testFramework.LightProjectDescriptor.lambda$createModule$1(LightProjectDescriptor.java:83)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:900)
    at com.intellij.openapi.application.WriteAction.compute(WriteAction.java:95)
    at com.intellij.testFramework.LightProjectDescriptor.createModule(LightProjectDescriptor.java:82)
    at com.intellij.testFramework.LightProjectDescriptor.createMainModule(LightProjectDescriptor.java:66)
    at com.intellij.testFramework.LightProjectDescriptor.lambda$setUpProject$0(LightProjectDescriptor.java:44)
    at com.intellij.openapi.application.WriteAction.lambda$run$1(WriteAction.java:85)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:900)
    at com.intellij.openapi.application.WriteAction.run(WriteAction.java:84)
    at com.intellij.testFramework.LightProjectDescriptor.setUpProject(LightProjectDescriptor.java:43)
    at com.intellij.testFramework.LightPlatformTestCase.initProject(LightPlatformTestCase.java:182)
    at com.intellij.testFramework.LightPlatformTestCase.lambda$doSetup$3(LightPlatformTestCase.java:261)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread$lambda$1(AnyThreadWriteThreadingSupport.kt:184)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread(AnyThreadWriteThreadingSupport.kt:183)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:836)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:403)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:436)
    at com.intellij.testFramework.LightPlatformTestCase.doSetup(LightPlatformTestCase.java:252)
    at com.intellij.testFramework.LightPlatformTestCase.lambda$setUp$2(LightPlatformTestCase.java:224)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$1(EdtTestUtil.java:51)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:910)
    at com.intellij.testFramework.EdtTestUtil.runInEdtAndWait(EdtTestUtil.java:50)
    at com.intellij.testFramework.EdtTestUtil.runInEdtAndWait(EdtTestUtil.java:40)
    at com.intellij.testFramework.LightPlatformTestCase.setUp(LightPlatformTestCase.java:219)
    at com.intellij.testFramework.LightPlatformCodeInsightTestCase.setUp(LightPlatformCodeInsightTestCase.java:308)
    at com.intellij.testFramework.UsefulTestCase.invokeSetUp(UsefulTestCase.java:433)
    at com.intellij.testFramework.UsefulTestCase.defaultRunBare(UsefulTestCase.java:425)
    at com.intellij.testFramework.UsefulTestCase.lambda$runBare$12(UsefulTestCase.java:494)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$3(EdtTestUtil.java:80)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$4(EdtTestUtil.java:79)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:320)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.ClassNotFoundException: org.rust.cargo.project.model.impl.TestCargoProjectsServiceImpl
    at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:233)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass(ComponentManagerImpl.kt:1468)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass$default(ComponentManagerImpl.kt:1460)
    at com.intellij.serviceContainer.ServiceDescriptorInstanceInitializer.loadInstanceClass(ServiceInstanceInitializer.kt:91)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:117)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext$suspendImpl(LazyInstanceHolder.kt:87)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext(LazyInstanceHolder.kt)
    at com.intellij.serviceContainer.ComponentManagerImplKt$doGetOrCreateInstanceBlocking$1.invokeSuspend(ComponentManagerImpl.kt:1568)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:111)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$BuildersKt__BuildersKt(Builders.kt:84)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:52)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
    at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1686)
    at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1677)
    at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:85)
    at com.intellij.serviceContainer.ComponentManagerImplKt.runBlockingInitialization(ComponentManagerImpl.kt:1677)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doGetOrCreateInstanceBlocking(ComponentManagerImpl.kt:1567)
    at com.intellij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1562)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
    at org.rust.cargo.project.model.CargoProjectServiceKt.getCargoProjects(CargoProjectService.kt:336)
    at org.rust.cargo.project.workspace.RsAdditionalLibraryRootsProvider.getAdditionalProjectLibraries(RsAdditionalLibraryRootsProvider.kt:68)
    at org.rust.cargo.project.workspace.RsAdditionalLibraryRootsProvider.getRootsToWatch(RsAdditionalLibraryRootsProvider.kt:71)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.collectWatchRoots(ProjectRootManagerComponent.kt:284)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.addRootsToWatch(ProjectRootManagerComponent.kt:207)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.fireRootsChangedEvent(ProjectRootManagerComponent.kt:266)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.fireRootsChanged(ProjectRootManagerImpl.kt:496)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.access$fireRootsChanged(ProjectRootManagerImpl.kt:38)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$rootsChanged$1.fireRootsChanged(ProjectRootManagerImpl.kt:148)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$rootsChanged$1.fireRootsChanged(ProjectRootManagerImpl.kt:146)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.rootsChanged(ProjectRootManagerImpl.kt:122)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.project.ModuleRootListenerBridgeImpl.fireRootsChanged(ModuleRootListenerBridgeImpl.kt:68)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.LegacyProjectModelListenersBridge.changed(LegacyProjectModelListenersBridge.kt:92)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:686)
    ... 67 more

org.rust.cargo.project.model.impl.TestCargoProjectsServiceImpl
java.lang.ClassNotFoundException: org.rust.cargo.project.model.impl.TestCargoProjectsServiceImpl
    at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:233)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass(ComponentManagerImpl.kt:1468)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass$default(ComponentManagerImpl.kt:1460)
    at com.intellij.serviceContainer.ServiceDescriptorInstanceInitializer.loadInstanceClass(ServiceInstanceInitializer.kt:91)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:117)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext$suspendImpl(LazyInstanceHolder.kt:87)
    at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext(LazyInstanceHolder.kt)
    at com.intellij.serviceContainer.ComponentManagerImplKt$doGetOrCreateInstanceBlocking$1.invokeSuspend(ComponentManagerImpl.kt:1568)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:111)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$BuildersKt__BuildersKt(Builders.kt:84)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:52)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
    at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1686)
    at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1677)
    at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:85)
    at com.intellij.serviceContainer.ComponentManagerImplKt.runBlockingInitialization(ComponentManagerImpl.kt:1677)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doGetOrCreateInstanceBlocking(ComponentManagerImpl.kt:1567)
    at com.intellij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1562)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
    at org.rust.cargo.project.model.CargoProjectServiceKt.getCargoProjects(CargoProjectService.kt:336)
    at org.rust.cargo.project.workspace.RsAdditionalLibraryRootsProvider.getAdditionalProjectLibraries(RsAdditionalLibraryRootsProvider.kt:68)
    at org.rust.cargo.project.workspace.RsAdditionalLibraryRootsProvider.getRootsToWatch(RsAdditionalLibraryRootsProvider.kt:71)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.collectWatchRoots(ProjectRootManagerComponent.kt:284)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.addRootsToWatch(ProjectRootManagerComponent.kt:207)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.fireRootsChangedEvent(ProjectRootManagerComponent.kt:266)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.fireRootsChanged(ProjectRootManagerImpl.kt:496)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.access$fireRootsChanged(ProjectRootManagerImpl.kt:38)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$rootsChanged$1.fireRootsChanged(ProjectRootManagerImpl.kt:148)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$rootsChanged$1.fireRootsChanged(ProjectRootManagerImpl.kt:146)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.rootsChanged(ProjectRootManagerImpl.kt:122)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.project.ModuleRootListenerBridgeImpl.fireRootsChanged(ModuleRootListenerBridgeImpl.kt:68)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.LegacyProjectModelListenersBridge.changed(LegacyProjectModelListenersBridge.kt:92)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:686)
    at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
    at com.intellij.util.messages.impl.MessagePublisher.publish$intellij_platform_core(MessageBusImpl.kt:494)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
    at jdk.proxy3/jdk.proxy3.$Proxy42.changed(Unknown Source)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$onChanged$3$1.invoke(WorkspaceModelImpl.kt:430)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$onChanged$3$1.invoke(WorkspaceModelImpl.kt:429)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.logErrorOnEventHandling(WorkspaceModelImpl.kt:470)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.onChanged(WorkspaceModelImpl.kt:429)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.access$onChanged(WorkspaceModelImpl.kt:44)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$updateProjectModel$generalTime$1$7.invoke(WorkspaceModelImpl.kt:181)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$updateProjectModel$generalTime$1$7.invoke(WorkspaceModelImpl.kt:181)
    at com.intellij.platform.workspace.storage.impl.VersionedEntityStorageImpl.replace(VersionedEntityStorageImpl.kt:247)
    at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.updateProjectModel(WorkspaceModelImpl.kt:181)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.ModifiableModuleModelBridgeImpl.commit(ModifiableModuleModelBridgeImpl.kt:239)
    at com.intellij.workspaceModel.ide.impl.legacyBridge.module.ModuleManagerBridgeImpl.newModule(ModuleManagerBridgeImpl.kt:277)
    at com.intellij.openapi.module.ModuleManager.newModule(ModuleManager.kt:46)
    at com.intellij.testFramework.LightProjectDescriptor.lambda$createModule$1(LightProjectDescriptor.java:83)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:900)
    at com.intellij.openapi.application.WriteAction.compute(WriteAction.java:95)
    at com.intellij.testFramework.LightProjectDescriptor.createModule(LightProjectDescriptor.java:82)
    at com.intellij.testFramework.LightProjectDescriptor.createMainModule(LightProjectDescriptor.java:66)
    at com.intellij.testFramework.LightProjectDescriptor.lambda$setUpProject$0(LightProjectDescriptor.java:44)
    at com.intellij.openapi.application.WriteAction.lambda$run$1(WriteAction.java:85)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:900)
    at com.intellij.openapi.application.WriteAction.run(WriteAction.java:84)
    at com.intellij.testFramework.LightProjectDescriptor.setUpProject(LightProjectDescriptor.java:43)
    at com.intellij.testFramework.LightPlatformTestCase.initProject(LightPlatformTestCase.java:182)
    at com.intellij.testFramework.LightPlatformTestCase.lambda$doSetup$3(LightPlatformTestCase.java:261)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread$lambda$1(AnyThreadWriteThreadingSupport.kt:184)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread(AnyThreadWriteThreadingSupport.kt:183)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:836)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:403)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:436)
    at com.intellij.testFramework.LightPlatformTestCase.doSetup(LightPlatformTestCase.java:252)
    at com.intellij.testFramework.LightPlatformTestCase.lambda$setUp$2(LightPlatformTestCase.java:224)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$1(EdtTestUtil.java:51)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:910)
    at com.intellij.testFramework.EdtTestUtil.runInEdtAndWait(EdtTestUtil.java:50)
    at com.intellij.testFramework.EdtTestUtil.runInEdtAndWait(EdtTestUtil.java:40)
    at com.intellij.testFramework.LightPlatformTestCase.setUp(LightPlatformTestCase.java:219)
    at com.intellij.testFramework.LightPlatformCodeInsightTestCase.setUp(LightPlatformCodeInsightTestCase.java:308)
    at com.intellij.testFramework.UsefulTestCase.invokeSetUp(UsefulTestCase.java:433)
    at com.intellij.testFramework.UsefulTestCase.defaultRunBare(UsefulTestCase.java:425)
    at com.intellij.testFramework.UsefulTestCase.lambda$runBare$12(UsefulTestCase.java:494)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$3(EdtTestUtil.java:80)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
    at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$4(EdtTestUtil.java:79)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:320)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

Steps to reproduce

  1. Add plugin("com.jetbrains.rust:${rustPluginVersion}") dependency
  2. Create a test, which extends LightPlatformCodeInsightTestCase
  3. Run test

Relevant part of build.gradle.kts:

val luaPluginVersion = "1.4.14-IDEA242"
val phpPluginVersion = "242.23726.107"
val pythonPluginVersion = "242.23726.103"
val rubyPluginVersion = "242.23726.38"
val goPluginVersion = "242.23726.16"
val dartPluginVersion = "242.22855.32"
val rustPluginVersion = "242.23726.110"

dependencies {
    intellijPlatform {
        intellijIdeaUltimate("2024.2.4")

        bundledPlugin("com.intellij.java")
        bundledPlugin("org.jetbrains.kotlin")
        bundledPlugin("JavaScript")

        bundledPlugin("org.intellij.plugins.markdown")
        bundledPlugin("org.toml.lang")
        bundledPlugin("org.jetbrains.plugins.yaml")

//        plugin("Pythonid:${pythonPluginVersion}")
        plugin("PythonCore:${pythonPluginVersion}")

        plugin("com.jetbrains.php:${phpPluginVersion}")
        plugin("org.jetbrains.plugins.go:${goPluginVersion}")
        plugin("Dart:${dartPluginVersion}")
        plugin("org.jetbrains.plugins.ruby:${rubyPluginVersion}")

        plugin("com.jetbrains.rust:${rustPluginVersion}")

        plugin("com.tang:${luaPluginVersion}")

//        plugin("com.jetbrains.hackathon.indices.viewer:1.27")

        pluginVerifier()
        zipSigner()
        instrumentationTools()

        testFramework(TestFrameworkType.Platform)
    }

    testImplementation("junit:junit:4.13.2")
    testImplementation("org.mockito:mockito-core:5.10.0")
}

Gradle IntelliJ Plugin version

2.1.0

Gradle version

8.7

Operating System

Linux

Link to build, i.e. failing GitHub Action job

No response

AlexanderBartash commented 4 days ago

You can try with my changes in https://github.com/JetBrains/intellij-platform-gradle-plugin/pull/1818 it may help. You can do that by pulling the branch and adding includeBuiid in settings.gradle.