ClearCase Plugin: small state issue

Hey Jacques,

I was playing with ClearCase Plugin 1.30 on 1113 and I had
an issue with a cancel operation not working properly.

1. I started with a fresh projects, no checkouts, marked "as current"
2. I checked out a source file, modified it, saved it
3. ClearCase->Check In
4. From the little checkin dialog, I pressed "cancel".

The operation cancelled properly, but from there IDEA believed
the file was in synch with the VCS system. The plugin wouldn't
give me the check-in menu option anymore and Ctrl-K wouldn't
see the file as having been modified.

The file is still checked out and modifiable by IDEA.

(note that the reason that I'm going through Check-in instead
of Ctrl-K is that I want to give a different check-in comment
for each file).

Thanks for a great plugin,

Vince.


5 comments
Comment actions Permalink

Here is an update that should address the problem (but I could not test it at home) with an experimental "short term" cache to highlight checked out/hijacked file as modified. It is short term because it isn't persistent. So if you restart IDEA these files will be black again. In addition the CheckInProject doesn't take these into account so you still have to manually uncheck out these files ;-(

Jacques



Attachment(s):
transparent.jar
0
Comment actions Permalink

Thanks!

The behavior seems to be right now, but I get assertion failures (see
below).

From withing idea:
right click, check-out
modify file, save
right click, check-in
- the checkin comment dialog pops up: CANCEL

=> the file is not checked in (good), the CC plugin still shows
me the "check in file" option (good), the Ctrl-K still believes the
file needs to be checked in (good).

idea build 1113, transparent 1.31 build 11 01/20/2004 11:48pm

(btw, it would be helpful to make the label text selectable in the about
dialog
to be able to copy/paste the full plugin version string :)

Thanks,

Vince.


Assertion failures:

1. when I checked out the file, the check out worked but produced
the following assertion failure:

java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:50)
at
com.intellij.openapi.application.a.b.assertWriteAccessAllowed(b.java:72)
at com.intellij.openapi.vfs.a.b.f.refresh(f.java:321)
at com.intellij.openapi.vfs.VirtualFile.refresh(VirtualFile.java:45)
at
net.sourceforge.transparent.TransparentVcs.refreshIDEA(TransparentVcs.java:2
94)
at
net.sourceforge.transparent.TransparentVcs.checkoutFile(TransparentVcs.java:
259)
at
net.sourceforge.transparent.actions.CheckOutAction.perform(CheckOutAction.ja
va:36)
at
net.sourceforge.transparent.actions.SynchronousAction.performAndRefreshStatu
s(SynchronousAction.java:107)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:82)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:74)
at
net.sourceforge.transparent.actions.SynchronousAction$1.run(SynchronousActio
n.java:64)
at com.intellij.openapi.vcs.impl.c.runTransactionRunnable(c.java:41)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:62)
at
net.sourceforge.transparent.actions.VcsAction.runAction(VcsAction.java:82)
at
net.sourceforge.transparent.actions.SynchronousAction.runAction(SynchronousA
ction.java:39)
at
net.sourceforge.transparent.actions.VcsAction.actionPerformed(VcsAction.java
:66)
at
net.sourceforge.transparent.actions.CheckOutOrHijackAction.actionPerformed(C
heckOutOrHijackAction.java:28)
at
com.intellij.openapi.actionSystem.b.n$b_.actionPerformed(n$b_.java:7)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at
com.intellij.openapi.actionSystem.b.n.fireActionPerformed(n.java:61)
at com.intellij.ui.a.a.h.doClick(h.java:172)
at com.intellij.ui.a.a.h.access$300(h.java:150)
at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:7)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:50)
at com.intellij.ide.q.a(q.java:129)
at com.intellij.ide.q.dispatchEvent(q.java:71)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
ERROR - plication.impl.ApplicationImpl - Assertion failed: Write
access is allowed inside write-action only (see com.inte
llij.openapi.application.Application.runWriteAction())
ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA (Aurora)
Build #1113
ERROR - plication.impl.ApplicationImpl - JDK: 1.4.2_03
ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM)
Client VM
ERROR - plication.impl.ApplicationImpl - Vendor: Sun Microsystems
Inc.
ERROR - plication.impl.ApplicationImpl - OS: Windows 2000
ERROR - plication.impl.ApplicationImpl - Last Action:
ClearCase.CheckOutOrHijack
ERROR - plication.impl.ApplicationImpl - Assertion failed: Write
access is allowed inside write-action only (see com.inte
llij.openapi.application.Application.runWriteAction())
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:50)
at
com.intellij.openapi.application.a.b.assertWriteAccessAllowed(b.java:72)
at com.intellij.openapi.vfs.a.b.f.refresh(f.java:321)
at com.intellij.openapi.vfs.VirtualFile.refresh(VirtualFile.java:45)
at
net.sourceforge.transparent.TransparentVcs.refreshIDEA(TransparentVcs.java:2
94)
at
net.sourceforge.transparent.TransparentVcs.checkoutFile(TransparentVcs.java:
259)
at
net.sourceforge.transparent.actions.CheckOutAction.perform(CheckOutAction.ja
va:36)
at
net.sourceforge.transparent.actions.SynchronousAction.performAndRefreshStatu
s(SynchronousAction.java:107)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:82)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:74)
at
net.sourceforge.transparent.actions.SynchronousAction$1.run(SynchronousActio
n.java:64)
at com.intellij.openapi.vcs.impl.c.runTransactionRunnable(c.java:41)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:62)
at
net.sourceforge.transparent.actions.VcsAction.runAction(VcsAction.java:82)
at
net.sourceforge.transparent.actions.SynchronousAction.runAction(SynchronousA
ction.java:39)
at
net.sourceforge.transparent.actions.VcsAction.actionPerformed(VcsAction.java
:66)
at
net.sourceforge.transparent.actions.CheckOutOrHijackAction.actionPerformed(C
heckOutOrHijackAction.java:28)
at
com.intellij.openapi.actionSystem.b.n$b_.actionPerformed(n$b_.java:7)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at
com.intellij.openapi.actionSystem.b.n.fireActionPerformed(n.java:61)
at com.intellij.ui.a.a.h.doClick(h.java:172)
at com.intellij.ui.a.a.h.access$300(h.java:150)
at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:7)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:50)
at com.intellij.ide.q.a(q.java:129)
at com.intellij.ide.q.dispatchEvent(q.java:71)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


2. When I did the Undo CheckOut, the checkout was undone but it
produced the following assertion failure:

java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:50)
at
com.intellij.openapi.application.a.b.assertWriteAccessAllowed(b.java:72)
at com.intellij.openapi.vfs.a.b.f.refresh(f.java:321)
at com.intellij.openapi.vfs.VirtualFile.refresh(VirtualFile.java:45)
at
net.sourceforge.transparent.TransparentVcs.refreshIDEA(TransparentVcs.java:2
94)
at
net.sourceforge.transparent.TransparentVcs.undoCheckoutFile(TransparentVcs.j
ava:276)
at
net.sourceforge.transparent.actions.UndoCheckOutAction.perform(UndoCheckOutA
ction.java:33)
at
net.sourceforge.transparent.actions.SynchronousAction.performAndRefreshStatu
s(SynchronousAction.java:107)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:82)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:74)
at
net.sourceforge.transparent.actions.SynchronousAction$1.run(SynchronousActio
n.java:64)
at com.intellij.openapi.vcs.impl.c.runTransactionRunnable(c.java:41)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:62)
at
net.sourceforge.transparent.actions.VcsAction.runAction(VcsAction.java:82)
at
net.sourceforge.transparent.actions.SynchronousAction.runAction(SynchronousA
ction.java:39)
at
net.sourceforge.transparent.actions.VcsAction.actionPerformed(VcsAction.java
:66)
at
com.intellij.openapi.actionSystem.b.n$b_.actionPerformed(n$b_.java:7)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at
com.intellij.openapi.actionSystem.b.n.fireActionPerformed(n.java:61)
at com.intellij.ui.a.a.h.doClick(h.java:172)
at com.intellij.ui.a.a.h.access$300(h.java:150)
at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:7)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:50)
at com.intellij.ide.q.a(q.java:129)
at com.intellij.ide.q.dispatchEvent(q.java:71)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
ERROR - plication.impl.ApplicationImpl - Assertion failed: Write
access is allowed inside write-action only (see com.inte
llij.openapi.application.Application.runWriteAction())
ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA (Aurora)
Build #1113
ERROR - plication.impl.ApplicationImpl - JDK: 1.4.2_03
ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM)
Client VM
ERROR - plication.impl.ApplicationImpl - Vendor: Sun Microsystems
Inc.
ERROR - plication.impl.ApplicationImpl - OS: Windows 2000
ERROR - plication.impl.ApplicationImpl - Last Action:
ClearCase.UndoCheckOut
ERROR - plication.impl.ApplicationImpl - Assertion failed: Write
access is allowed inside write-action only (see com.inte
llij.openapi.application.Application.runWriteAction())
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:50)
at
com.intellij.openapi.application.a.b.assertWriteAccessAllowed(b.java:72)
at com.intellij.openapi.vfs.a.b.f.refresh(f.java:321)
at com.intellij.openapi.vfs.VirtualFile.refresh(VirtualFile.java:45)
at
net.sourceforge.transparent.TransparentVcs.refreshIDEA(TransparentVcs.java:2
94)
at
net.sourceforge.transparent.TransparentVcs.undoCheckoutFile(TransparentVcs.j
ava:276)
at
net.sourceforge.transparent.actions.UndoCheckOutAction.perform(UndoCheckOutA
ction.java:33)
at
net.sourceforge.transparent.actions.SynchronousAction.performAndRefreshStatu
s(SynchronousAction.java:107)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:82)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:74)
at
net.sourceforge.transparent.actions.SynchronousAction$1.run(SynchronousActio
n.java:64)
at com.intellij.openapi.vcs.impl.c.runTransactionRunnable(c.java:41)
at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:62)
at
net.sourceforge.transparent.actions.VcsAction.runAction(VcsAction.java:82)
at
net.sourceforge.transparent.actions.SynchronousAction.runAction(SynchronousA
ction.java:39)
at
net.sourceforge.transparent.actions.VcsAction.actionPerformed(VcsAction.java
:66)
at
com.intellij.openapi.actionSystem.b.n$b_.actionPerformed(n$b_.java:7)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at
com.intellij.openapi.actionSystem.b.n.fireActionPerformed(n.java:61)
at com.intellij.ui.a.a.h.doClick(h.java:172)
at com.intellij.ui.a.a.h.access$300(h.java:150)
at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:7)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:50)
at com.intellij.ide.q.a(q.java:129)
at com.intellij.ide.q.dispatchEvent(q.java:71)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)



"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:29394883.1074664241823.JavaMail.itn@is.intellij.net...

Here is an update that should address the problem (but I could not test it

at home) with an experimental "short term" cache to highlight checked
out/hijacked file as modified. It is short term because it isn't persistent.
So if you restart IDEA these files will be black again. In addition the
CheckInProject doesn't take these into account so you still have to manually
uncheck out these files ;-(
>

Jacques

>


0
Comment actions Permalink

Check this one please



Attachment(s):
transparent.jar
0
Comment actions Permalink

Excellent ;)
... on 1113.

On 1117, it mostly works (check in/check out/undo check out/cancel check in)
except for check in project which produces the following:

java.lang.AbstractMethodError:
net.sourceforge.transparent.actions.checkin.CheckInEnvironment.getHelpId()Lj
ava/lang/String;
at
com.intellij.openapi.vcs.CheckinProjectDialog.createActions(CheckinProjectDi
alog.java:106)
at
com.intellij.openapi.ui.DialogWrapper.createSouthPanel(DialogWrapper.java:28
9)
at
com.intellij.openapi.vcs.ui.OptionsDialog.createSouthPanel(OptionsDialog.jav
a:17)
at
com.intellij.openapi.ui.DialogWrapper.init(DialogWrapper.java:129)
at
com.intellij.openapi.vcs.CheckinProjectDialog.access$200(CheckinProjectDialo
g.java)
at
com.intellij.openapi.vcs.CheckinProjectDialog$3.run(CheckinProjectDialog.jav
a:1)
at com.intellij.openapi.vcs.ui.b.f.a(f.java:4)
at com.intellij.openapi.vcs.ui.b.f.a(f.java:103)
at
com.intellij.openapi.vcs.CheckinProjectDialog.analyzeChanges(CheckinProjectD
ialog.java:84)
at
net.sourceforge.transparent.actions.checkin.CheckInProjectAction.execute(Che
ckInProjectAction.java:24)
at
net.sourceforge.transparent.actions.VcsAction.runAction(VcsAction.java:82)
at
net.sourceforge.transparent.actions.VcsAction.actionPerformed(VcsAction.java
:66)
at
com.intellij.openapi.actionSystem.b.n$b_.actionPerformed(n$b_.java:0)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at
com.intellij.openapi.actionSystem.b.n.fireActionPerformed(n.java:59)
at com.intellij.ui.c.a.h.doClick(h.java:176)
at com.intellij.ui.c.a.h.access$300(h.java:109)
at com.intellij.ui.c.a.h$a_.mouseReleased(h$a_.java:0)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:66)
at com.intellij.ide.q.a(q.java:0)
at com.intellij.ide.q.dispatchEvent(q.java:82)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


Thanks :)

Vince.


"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:21454072.1074740957649.JavaMail.itn@is.intellij.net...

Check this one please




0
Comment actions Permalink

I get that one too. I did work in 1113 though


0

Please sign in to leave a comment.