ehmkah / imgdiff

ImgDiff is a plugin for IntelliJ which shows the diff between two images in IntelliJ's diff screen
Apache License 2.0
17 stars 1 forks source link

Diff fails with Error: can't show diff - Reload #61

Closed elliepi closed 3 years ago

elliepi commented 3 years ago

MicrosoftTeams-image (2) colleague tries to compare local branch with remote branch - via Project - Git - Compare with Branch ... other attempts also failed ( local with local etc.)

IDE : IntelliJ Ultimate 2020.2.3(Ulitmate Edition) Build #IU-202.7660.26

java.lang.IllegalStateException: baseFile.parent must not be null at de.ehmkah.projects.imgdiff.ImgDiffVirtualFile.getParent(ImgDiffVirtualFile.kt:62)at com.intellij.facet.impl.FacetFinderImpl.findFacets(FacetFinderImpl.java:116)at com.intellij.facet.impl.FacetFinderImpl.findFacet(FacetFinderImpl.java:101)at com.intellij.javaee.facet.JavaeeFacetUtilImpl.getJavaeeFacet(JavaeeFacetUtilImpl.java:87)at com.intellij.javaee.module.view.AbstractJavaeeFileEditorProvider.getEditedElement(AbstractJavaeeFileEditorProvider.java:54)at com.intellij.javaee.module.view.AbstractJavaeeFileEditorProvider.accept(AbstractJavaeeFileEditorProvider.java:68)at com.intellij.openapi.fileEditor.impl.FileEditorProviderManagerImpl.lambda$getProviders$0(FileEditorProviderManagerImpl.java:48)at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:865)at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61)at com.intellij.openapi.fileEditor.impl.FileEditorProviderManagerImpl.getProviders(FileEditorProviderManagerImpl.java:44)at com.intellij.diff.tools.holders.BinaryEditorHolder$BinaryEditorHolderFactory.create(BinaryEditorHolder.java:106)at com.intellij.diff.tools.holders.BinaryEditorHolder$BinaryEditorHolderFactory.create(BinaryEditorHolder.java:95)at com.intellij.diff.tools.util.side.ThreesideDiffViewer.createEditorHolders(ThreesideDiffViewer.java:109)at com.intellij.diff.tools.util.side.ThreesideDiffViewer.(ThreesideDiffViewer.java:63)at com.intellij.diff.tools.binary.ThreesideBinaryDiffViewer.(ThreesideBinaryDiffViewer.java:42)at de.ehmkah.projects.imgdiff.ImgDiffBaseBinaryDiffTool.createImgDiffDiffViewer(ImgDiffBaseBinaryDiffTool.kt:59)at de.ehmkah.projects.imgdiff.ImgDiffBaseBinaryDiffTool.createComponent(ImgDiffBaseBinaryDiffTool.kt:28)at de.ehmkah.projects.imgdiff.ImgDiffBaseBinaryDiffTool.createComponent(ImgDiffBaseBinaryDiffTool.kt:19)at com.intellij.diff.impl.DiffRequestProcessor.createState(DiffRequestProcessor.java:276)at com.intellij.diff.impl.DiffRequestProcessor.lambda$doApplyRequest$4(DiffRequestProcessor.java:351)at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:192)at com.intellij.diff.impl.DiffRequestProcessor.lambda$doApplyRequest$5(DiffRequestProcessor.java:349)at com.intellij.diff.util.DiffUtil.runPreservingFocus(DiffUtil.java:756)at com.intellij.diff.impl.DiffRequestProcessor.doApplyRequest(DiffRequestProcessor.java:335)at com.intellij.diff.impl.DiffRequestProcessor.lambda$applyRequest$3(DiffRequestProcessor.java:317)at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown$3(FocusManagerImpl.java:187)at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2254)at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:188)at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:140)at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:178)at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:184)at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:41)at com.intellij.diff.impl.DiffRequestProcessor.applyRequest(DiffRequestProcessor.java:325)at com.intellij.diff.impl.DiffRequestProcessor.applyRequest(DiffRequestProcessor.java:304)at com.intellij.diff.impl.CacheDiffRequestProcessor.updateRequest(CacheDiffRequestProcessor.java:106)at com.intellij.diff.impl.CacheDiffRequestProcessor.updateRequest(CacheDiffRequestProcessor.java:89)at com.intellij.diff.impl.DiffRequestProcessor.updateRequest(DiffRequestProcessor.java:187)at com.intellij.diff.impl.DiffRequestProcessor$DiffToolToggleAction.actionPerformed(DiffRequestProcessor.java:654)at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:282)at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:276)at com.intellij.ui.popup.ActionPopupStep.performAction(ActionPopupStep.java:224)at com.intellij.ui.popup.ActionPopupStep.performAction(ActionPopupStep.java:214)at com.intellij.ui.popup.ActionPopupStep.lambda$onChosen$2(ActionPopupStep.java:208)at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)at com.intellij.ui.popup.AbstractPopup.lambda$dispose$16(AbstractPopup.java:1464)at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2254)at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:188)at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:140)at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:178)at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:36)at com.intellij.ui.popup.AbstractPopup.dispose(AbstractPopup.java:1460)at com.intellij.ui.popup.WizardPopup.dispose(WizardPopup.java:158)at com.intellij.ui.popup.list.ListPopupImpl.dispose(ListPopupImpl.java:326)at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.dispose(PopupFactoryImpl.java:304)at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:111)at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:193)at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:141)at com.intellij.openapi.util.Disposer.dispose(Disposer.java:130)at com.intellij.openapi.util.Disposer.dispose(Disposer.java:120)at com.intellij.ui.popup.WizardPopup.disposeAllParents(WizardPopup.java:261)at com.intellij.ui.popup.list.ListPopupImpl.handleNextStep(ListPopupImpl.java:461)at com.intellij.ui.popup.list.ListPopupImpl._handleSelect(ListPopupImpl.java:415)at com.intellij.ui.popup.list.ListPopupImpl.handleSelect(ListPopupImpl.java:361)at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.handleSelect(PopupFactoryImpl.java:324)at com.intellij.ui.popup.list.ListPopupImpl$MyMouseListener.mouseReleased(ListPopupImpl.java:526)at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)at java.desktop/java.awt.Component.processMouseEvent(Component.java:6654)at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)at com.intellij.ui.popup.list.ListPopupImpl$MyList.processMouseEvent(ListPopupImpl.java:583)at java.desktop/java.awt.Component.processEvent(Component.java:6419)at java.desktop/java.awt.Container.processEvent(Container.java:2263)at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)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.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)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:748)at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:971)at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:906)at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:838)at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:452)at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:451)at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:505)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)

ehmkah commented 3 years ago

Do you have the latest version of the plugin? Latest version is 1.8.0 Issue should have been fixed with https://github.com/ehmkah/imgdiff/issues/56

ehmkah commented 3 years ago

closed because problem seams to be not existing anymore. please reopen issue if problem still occurs.