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=everest, containerState=COMPONENT_CREATED, componentStore=/Users/mvandervoort/Work/everest-service), requested in Project(name=graphbuddy, containerState=COMPONENT_CREATED, componentStore=/Users/mvandervoort/Work/graphbuddy); psiFiles: class com.intellij.psi.impl.source.PsiPlainTextFileImpl [Language: TEXT] #37

Open
MarkVanDerVoort opened this issue Apr 15, 2023 · 0 comments

Comments

@MarkVanDerVoort
Copy link

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 2021.3.2
  • Operating system - Mac OS X 13.3.1

IDEA - Stack trace

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=everest, containerState=COMPONENT_CREATED, componentStore=/Users/mvandervoort/Work/everest-service), requested in Project(name=graphbuddy, containerState=COMPONENT_CREATED, componentStore=/Users/mvandervoort/Work/graphbuddy); psiFiles: class com.intellij.psi.impl.source.PsiPlainTextFileImpl [Language: TEXT]
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
at com.intellij.psi.impl.file.impl.FileManagerImpl.checkHasNoOtherPsi(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:361)
at com.intellij.psi.impl.PsiDocumentManagerBase.getPsiFile(PsiDocumentManagerBase.java:147)
at com.intellij.psi.impl.PsiDocumentManagerBase.getPsiFile(PsiDocumentManagerBase.java:96)
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:852)
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:214)
at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:196)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeAndWait$7(ApplicationImpl.java:450)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:134)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:82)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:131)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:187)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:492)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

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