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

java.lang.Throwable: Light files should have PSI only in one project, existing=com.intellij.psi.SingleRootFileViewProvider{vFile=LightVirtualFile: \Dummy.txt, content=VirtualFileContent{size=0}, eventSystemEnabled=true} in Project(name=quarkus-demo, containerState=COMPONENT_CREATED, componentStore=Z:\Cinaval\test\quarkus\quarkus-demo), requested in Project(name=graphSQL-demo, containerState=COMPONENT_CREATED, componentStore=Z:\Cinaval\test\graphsql\graphSQL-demo); psiFiles: class com.intellij.psi.impl.source.PsiPlainTextFileImpl [Language: TEXT] #33

Open
liu1084 opened this issue Jan 4, 2023 · 0 comments

Comments

@liu1084
Copy link

liu1084 commented Jan 4, 2023

Bug description

Please include steps to reproduce (like go to.../click on... etc.) + expected and actual behaviour.

For non-trivial issues, we would also appreciate if you included the following details (if not filled in automatically):

Running environment

  • Graph Buddy plugin version - 1.0.1
  • IDE - IntelliJ IDEA 2022.2.1
  • Operating system - Windows 10 10.0

IDEA - Stack trace

java.lang.Throwable: Light files should have PSI only in one project,com.intellij.psi.impl.source.PsiPlainTextFileImpl [Language: TEXT]
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:184)
at com.intellij.psi.impl.file.impl.FileManagerImpl.checkLightFileHasNoOtherPsi(FileManagerImpl.java:207)
at com.intellij.psi.impl.file.impl.FileManagerImpl.findViewProvider(FileManagerImpl.java:195)
at com.intellij.psi.impl.file.impl.FileManagerImpl.findFile(FileManagerImpl.java:362)
at com.intellij.psi.impl.PsiDocumentManagerBase.getPsiFile(PsiDocumentManagerBase.java:148)
at com.intellij.psi.impl.PsiDocumentManagerBase.getPsiFile(PsiDocumentManagerBase.java:97)
at com.intellij.psi.impl.PsiDocumentManagerImpl.getPsiFile(PsiDocumentManagerImpl.java:64)
at com.virtuslab.semanticgraphs.intellijplugin.changelistener.DocumentEditListener.getPathOfDocument$$anonfun$1$$anonfun$1(DocumentEditListener.scala:43)
at scala.util.Try$.apply(Try.scala:210)
at com.virtuslab.semanticgraphs.intellijplugin.changelistener.DocumentEditListener.getPathOfDocument$$anonfun$1(DocumentEditListener.scala:43)
at com.virtuslab.semanticgraphs.intellijplugin.util.Computable$.apply$$anonfun$2(ThreadingUtils.scala:33)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:928)
at com.virtuslab.semanticgraphs.intellijplugin.util.ThreadingUtils$.computeAsReadAction$$anonfun$1$$anonfun$1(ThreadingUtils.scala:25)
at com.virtuslab.semanticgraphs.intellijplugin.util.ThreadingUtils$.computeAction$$anonfun$1$$anonfun$1(ThreadingUtils.scala:20)
at scala.util.Try$.apply(Try.scala:210)
at com.virtuslab.semanticgraphs.intellijplugin.util.ThreadingUtils$.computeAction$$anonfun$1(ThreadingUtils.scala:20)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:95)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
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)

IDEA - additional info

N/A

Screenshots

If applicable, add screenshots (or screen recordings, see Peek on Linux)
to help explain your problem.

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