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

Designer cannot be opened after switching Flow projects #1603

Closed
stefanuebe opened this issue Mar 8, 2018 · 1 comment
Closed

Designer cannot be opened after switching Flow projects #1603

stefanuebe opened this issue Mar 8, 2018 · 1 comment
Labels

Comments

@stefanuebe
Copy link

stefanuebe commented Mar 8, 2018

Steps to reproduce

  1. Open a flow project.
  2. Edit a flow template inside this project.
  3. Switch to another flow project.
  4. Try to create a new flow template or edit an existing file.

Actual behavior

An error occurs: Already disposed: Project (Disposed) test-project-10.
Stack trace at bottom. test-project-10 is the name of the previous project.

Expected behavior

Error should not occur.

Workaround

Restart IDE.

IDE, Designer and OS version

IntelliJ 2017.3.4, Designer 3.0.0 beta1, Windows 10

Stack trace

Already disposed: Project (Disposed) test-project-10
java.lang.AssertionError: Already disposed: Project (Disposed) test-project-10
at com.intellij.openapi.components.impl.ComponentManagerImpl.lambda$getPicoContainer$2(ComponentManagerImpl.java:261)
at com.intellij.openapi.application.ReadAction.run(ReadAction.java:37)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getPicoContainer(ComponentManagerImpl.java:259)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getPicoContainer(ComponentManagerImpl.java:57)
at com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java:48)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:43)
at com.intellij.util.indexing.FileBasedIndexScanRunnableCollector.getInstance(FileBasedIndexScanRunnableCollector.java:30)
at com.intellij.util.indexing.FileBasedIndexImpl.collectScanRootRunnables(FileBasedIndexImpl.java:2310)
at com.intellij.util.indexing.FileBasedIndexImpl.iterateIndexableFiles(FileBasedIndexImpl.java:2303)
at com.intellij.util.indexing.FileBasedIndexImpl.projectIndexableFiles(FileBasedIndexImpl.java:1081)
at com.intellij.util.indexing.FileBasedIndexImpl.processValuesInScope(FileBasedIndexImpl.java:931)
at com.intellij.util.indexing.FileBasedIndexImpl.processValues(FileBasedIndexImpl.java:818)
at com.intellij.psi.search.FileNameIndexServiceImpl.getVirtualFilesByName(FileNameIndexServiceImpl.java:40)
at com.intellij.psi.search.FilenameIndex.processFilesByName(FilenameIndex.java:100)
at com.intellij.psi.search.FilenameIndex.processFilesByName(FilenameIndex.java:87)
at com.intellij.psi.search.FilenameIndex.getFilesByName(FilenameIndex.java:158)
at com.vaadin.designer2.intellij.service.FlowImportService.getFilesOrFoldersInProject(FlowImportService.java:205)
at com.vaadin.designer2.intellij.service.FlowImportService.findFileInWebapp(FlowImportService.java:184)
at com.vaadin.designer2.intellij.service.FlowImportService.lambda$getPolymerHtml$0(FlowImportService.java:91)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923)
at com.vaadin.designer2.intellij.service.FlowImportService.getPolymerHtml(FlowImportService.java:90)
at com.vaadin.designer2.intellij.actions.flow.CreateFlowDialog.(CreateFlowDialog.java:108)
at com.vaadin.designer2.intellij.actions.flow.CreateFlowAction.createDialog(CreateFlowAction.java:143)
at com.vaadin.designer2.intellij.actions.AbstractCreationAction.showDialog(AbstractCreationAction.java:55)
at com.vaadin.designer2.intellij.actions.AbstractCreationAction.showCreateDesignDialog(AbstractCreationAction.java:50)
at com.vaadin.designer2.intellij.actions.flow.CreateFlowAction.actionPerformed(CreateFlowAction.java:137)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:321)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:911)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:136)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:311)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:130)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:130)
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:521)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:48)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:541)
at java.awt.Component.processMouseEvent(Component.java:6541)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6306)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
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)

@ripla
Copy link
Contributor

ripla commented Mar 28, 2018

After some discussion we found out this is actually the same issue as #1593. These will be fixed at the same time.

@ripla ripla closed this as completed Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants