Multi-Module Gradle Import Psi Issues

In my plugin I am creating multi-module Gradle project skeleton, and then telling the Gradle plugin to import it. This does work fine, and I generally have no issues with it, however I think There may be an IntelliJ error popping up that my plugin is somehow indirectly causing. I haven't created an issue yet, because I'm not sure if it's really an IntelliJ issue, or an issue with my plugins, even though my plugin still works fine and nothing appears to break, and my code is not listed anywhere in the stack traces. This is the error I get in the console:

[  79025]  ERROR - codeStyle.CodeStyleManagerImpl - Assertion failed: File name: TestBungeecord.java , class: PsiJavaFileImpl 
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:156)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:195)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:173)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:164)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:133)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:113)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1$1.run(AbstractLayoutCodeProcessor.java:237)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1009)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:234)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:226)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$3.run(AbstractLayoutCodeProcessor.java:343)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8$1$1.run(AbstractLayoutCodeProcessor.java:453)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8$1.run(AbstractLayoutCodeProcessor.java:448)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:345)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:329)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)
[ 79026] ERROR - codeStyle.CodeStyleManagerImpl - IntelliJ IDEA 2016.1 Build #IC-145.258.11
[ 79026] ERROR - codeStyle.CodeStyleManagerImpl - JDK: 1.8.0_92
[ 79026] ERROR - codeStyle.CodeStyleManagerImpl - VM: Java HotSpot(TM) 64-Bit Server VM
[ 79026] ERROR - codeStyle.CodeStyleManagerImpl - Vendor: Oracle Corporation
[ 79026] ERROR - codeStyle.CodeStyleManagerImpl - OS: Linux
[ 79026] ERROR - codeStyle.CodeStyleManagerImpl - Last Action:
[ 79026] ERROR - codeStyle.CodeStyleManagerImpl - Current Command: Reformat Code
[ 79026] ERROR - codeStyle.CodeStyleManagerImpl - start=PsiKeyword:package; file=PsiJavaFile:TestBungeecord.java
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:127)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:216)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:173)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:164)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:133)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:113)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1$1.run(AbstractLayoutCodeProcessor.java:237)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1009)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:234)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:226)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$3.run(AbstractLayoutCodeProcessor.java:343)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8$1$1.run(AbstractLayoutCodeProcessor.java:453)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8$1.run(AbstractLayoutCodeProcessor.java:448)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:345)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:329)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)
[ 79027] ERROR - codeStyle.CodeStyleManagerImpl - IntelliJ IDEA 2016.1 Build #IC-145.258.11
[ 79027] ERROR - codeStyle.CodeStyleManagerImpl - JDK: 1.8.0_92
[ 79027] ERROR - codeStyle.CodeStyleManagerImpl - VM: Java HotSpot(TM) 64-Bit Server VM
[ 79027] ERROR - codeStyle.CodeStyleManagerImpl - Vendor: Oracle Corporation
[ 79027] ERROR - codeStyle.CodeStyleManagerImpl - OS: Linux
[ 79027] ERROR - codeStyle.CodeStyleManagerImpl - Last Action:
[ 79027] ERROR - codeStyle.CodeStyleManagerImpl - Current Command: Reformat Code
[ 79030] ERROR - ns.AbstractLayoutCodeProcessor - java.util.concurrent.ExecutionException: com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.tree.java.PsiKeywordImpl because: different providers: SingleRootFileViewProvider{myVirtualFile=file:///home/demonwav/IdeaProjects/test/test-bungeecord/src/main/java/com/demonwav/test/TestBungeecord.java, content=VirtualFileContent{size=290}}(37f0e405); SingleRootFileViewProvider{myVirtualFile=file:///home/demonwav/IdeaProjects/test/test-bungeecord/src/main/java/com/demonwav/test/TestBungeecord.java, content=VirtualFileContent{size=290}}(68786b7b)
invalidated at: see attachment; com.intellij.psi.impl.source.tree.java.PsiKeywordImpl:PACKAGE_KEYWORD / com.intellij.psi.impl.source.tree.java.PsiPackageStatementImpl:PACKAGE_STATEMENT / com.intellij.psi.impl.source.tree.java.JavaFileElement:java.FILE
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.tree.java.PsiKeywordImpl because: different providers: SingleRootFileViewProvider{myVirtualFile=file:///home/demonwav/IdeaProjects/test/test-bungeecord/src/main/java/com/demonwav/test/TestBungeecord.java, content=VirtualFileContent{size=290}}(37f0e405); SingleRootFileViewProvider{myVirtualFile=file:///home/demonwav/IdeaProjects/test/test-bungeecord/src/main/java/com/demonwav/test/TestBungeecord.java, content=VirtualFileContent{size=290}}(68786b7b)
invalidated at: see attachment; com.intellij.psi.impl.source.tree.java.PsiKeywordImpl:PACKAGE_KEYWORD / com.intellij.psi.impl.source.tree.java.PsiPackageStatementImpl:PACKAGE_STATEMENT / com.intellij.psi.impl.source.tree.java.JavaFileElement:java.FILE
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$3.run(AbstractLayoutCodeProcessor.java:345)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8$1$1.run(AbstractLayoutCodeProcessor.java:453)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8$1.run(AbstractLayoutCodeProcessor.java:448)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:345)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:329)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)
Caused by: java.util.concurrent.ExecutionException: com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.tree.java.PsiKeywordImpl because: different providers: SingleRootFileViewProvider{myVirtualFile=file:///home/demonwav/IdeaProjects/test/test-bungeecord/src/main/java/com/demonwav/test/TestBungeecord.java, content=VirtualFileContent{size=290}}(37f0e405); SingleRootFileViewProvider{myVirtualFile=file:///home/demonwav/IdeaProjects/test/test-bungeecord/src/main/java/com/demonwav/test/TestBungeecord.java, content=VirtualFileContent{size=290}}(68786b7b)
invalidated at: see attachment; com.intellij.psi.impl.source.tree.java.PsiKeywordImpl:PACKAGE_KEYWORD / com.intellij.psi.impl.source.tree.java.PsiPackageStatementImpl:PACKAGE_STATEMENT / com.intellij.psi.impl.source.tree.java.JavaFileElement:java.FILE
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:241)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:226)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$3.run(AbstractLayoutCodeProcessor.java:343)
... 24 more
Caused by: com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.tree.java.PsiKeywordImpl because: different providers: SingleRootFileViewProvider{myVirtualFile=file:///home/demonwav/IdeaProjects/test/test-bungeecord/src/main/java/com/demonwav/test/TestBungeecord.java, content=VirtualFileContent{size=290}}(37f0e405); SingleRootFileViewProvider{myVirtualFile=file:///home/demonwav/IdeaProjects/test/test-bungeecord/src/main/java/com/demonwav/test/TestBungeecord.java, content=VirtualFileContent{size=290}}(68786b7b)
invalidated at: see attachment; com.intellij.psi.impl.source.tree.java.PsiKeywordImpl:PACKAGE_KEYWORD / com.intellij.psi.impl.source.tree.java.PsiPackageStatementImpl:PACKAGE_STATEMENT / com.intellij.psi.impl.source.tree.java.JavaFileElement:java.FILE
at com.intellij.psi.impl.source.tree.LeafPsiElement.invalid(LeafPsiElement.java:109)
at com.intellij.psi.impl.source.tree.LeafPsiElement.getContainingFile(LeafPsiElement.java:93)
at com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.createSmartPsiElementPointer(SmartPointerManagerImpl.java:97)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:224)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:173)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatText(CodeStyleManagerImpl.java:164)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:133)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:113)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1$1.run(AbstractLayoutCodeProcessor.java:237)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1009)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:234)
... 27 more
[ 79031] ERROR - ns.AbstractLayoutCodeProcessor - IntelliJ IDEA 2016.1 Build #IC-145.258.11
[ 79031] ERROR - ns.AbstractLayoutCodeProcessor - JDK: 1.8.0_92
[ 79031] ERROR - ns.AbstractLayoutCodeProcessor - VM: Java HotSpot(TM) 64-Bit Server VM
[ 79031] ERROR - ns.AbstractLayoutCodeProcessor - Vendor: Oracle Corporation
[ 79031] ERROR - ns.AbstractLayoutCodeProcessor - OS: Linux
[ 79031] ERROR - ns.AbstractLayoutCodeProcessor - Last Action:
[ 79031] ERROR - ns.AbstractLayoutCodeProcessor - Current Command: Reformat Code

 

 

1 comment
Comment actions Permalink

And this happens on 2013.1 to 2013.1.3.

0

Please sign in to leave a comment.