IntelliJ can't show diff viewer for files among historical commits

Answered

Hi team,

 

I posted this question on stackoverflow but i thought it may draws wider attention if i post here since it's dedicated for this.

 

Recently my IntelliJ Idea is not able to show diff view for files committed already to SVN server as illustrated below.

enter image description here

I checked the logs of IntelliJ Idea and found out below call stacks

2019-03-11 15:42:31,482 [875155708]   INFO - baba.tala.ui.diff.TalaDiffTool - creating SimpleTalaDiffViewer
2019-03-11 15:42:31,518 [875155744]   INFO - tools.util.base.DiffViewerBase - SimpleTalaDiffViewer onInit
2019-03-11 15:42:38,531 [875162757]  ERROR - diff.impl.DiffRequestProcessor - cannot add an action twice: Leave comments (Submit PullRequst comments based on current commits) 
com.intellij.openapi.actionSystem.DefaultActionGroup$ActionDuplicationException: cannot add an action twice: Leave comments (Submit PullRequst comments based on current commits) 
    at com.intellij.openapi.actionSystem.DefaultActionGroup.addAction(DefaultActionGroup.java:141)
    at com.intellij.openapi.actionSystem.DefaultActionGroup.addAction(DefaultActionGroup.java:129)
    at com.intellij.openapi.actionSystem.DefaultActionGroup.add(DefaultActionGroup.java:98)
    at com.intellij.diff.util.DiffUtil.addActionBlock(DiffUtil.java:397)
    at com.intellij.diff.impl.DiffRequestProcessor.collectToolbarActions(DiffRequestProcessor.java:452)
    at com.intellij.diff.impl.DiffRequestProcessor.buildToolbar(DiffRequestProcessor.java:482)
    at com.intellij.diff.impl.DiffRequestProcessor$WrapperState.init(DiffRequestProcessor.java:1230)
    at com.intellij.diff.impl.DiffRequestProcessor.lambda$doApplyRequest$1(DiffRequestProcessor.java:325)
    at com.intellij.diff.util.DiffUtil.runPreservingFocus(DiffUtil.java:678)
    at com.intellij.diff.impl.DiffRequestProcessor.doApplyRequest(DiffRequestProcessor.java:310)
    at com.intellij.diff.impl.DiffRequestProcessor.lambda$applyRequest$0(DiffRequestProcessor.java:299)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown$3(FocusManagerImpl.java:188)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:3048)
    at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:172)
    at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:124)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:179)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:185)
    at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:63)
    at com.intellij.diff.impl.DiffRequestProcessor.applyRequest(DiffRequestProcessor.java:297)
    at com.intellij.diff.impl.CacheDiffRequestProcessor.lambda$null$0(CacheDiffRequestProcessor.java:114)
    at com.intellij.openapi.progress.util.BackgroundTaskUtil.finish(BackgroundTaskUtil.java:120)
    at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$null$0(BackgroundTaskUtil.java:100)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:435)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:419)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:403)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    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.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:668)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
    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)
2019-03-11 15:42:38,532 [875162758]  ERROR - diff.impl.DiffRequestProcessor - IntelliJ IDEA 2018.3.4  Build #IC-183.5429.30
2019-03-11 15:42:38,532 [875162758]  ERROR - diff.impl.DiffRequestProcessor - JDK: 1.8.0_152-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-03-11 15:42:38,532 [875162758]  ERROR - diff.impl.DiffRequestProcessor - OS: Mac OS X

There is no problems with GIT repository when checking the difference view of files in previous commit. Please help!

Regards,

Balin

1
1 comment

Looks like some plugin incorrectly adds actions to Diff toolbar. 

Do you use any third-party plugins, especially some plugins that allow working with pull requests comments? Try disabling them.

0

Please sign in to leave a comment.