Error in MKS plugin

I am currently evaluating a newer version of MKS (we intend to switch to MKS 2007), and I am also looking at the integration into IDEA.
However, when attempting to invoke the "Show History" action, I get an error message with the following stack trace:

com.intellij.openapi.vcs.VcsException: unknown date format for 18.02.2004 12:52:46 (expected ). This may be an encoding issue, encoding used was IBM437
at org.intellij.vcs.mks.sicommands.ViewMemberHistoryCommand.parseDate(ViewMemberHistoryCommand.java:127)
at org.intellij.vcs.mks.sicommands.ViewMemberHistoryCommand.execute(ViewMemberHistoryCommand.java:84)
at org.intellij.vcs.mks.history.MksVcsHistoryProvider.getRevisions(MksVcsHistoryProvider.java:149)
at org.intellij.vcs.mks.history.MksVcsHistoryProvider.access$000(MksVcsHistoryProvider.java:32)
at org.intellij.vcs.mks.history.MksVcsHistoryProvider$1.getRevisionList(MksVcsHistoryProvider.java:54)
at com.intellij.openapi.vcs.impl.AbstractVcsHelperImpl.showFileHistory(AbstractVcsHelperImpl.java:54)
at com.intellij.openapi.vcs.actions.TabbedShowHistoryAction.actionPerformed(TabbedShowHistoryAction.java:29)
at com.intellij.openapi.vcs.actions.AbstractVcsAction.actionPerformed(AbstractVcsAction.java:15)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:99)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:42)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:226)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:88)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:92)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Is there a workaround to prevent this?

Thanks in advance and best regards,
Jens

0
2 comments
Avatar
Permanently deleted user

Hi Jens,

This issue should is partially corrected in 0.7.1 (I guess you're using this version ?).

You should go to the MKS VCS configuration (Settings> VersionCOntrol> MKS) and change the date format there, to able to parse dates outputted by the si viewhistory command.
I had to do this, as this format seems to change based on locales, or MKS server configuration, and I don't know a way to know beforehand which one should be used.
In your case, MM.dd.yyyy hh:mm:ss should be appropriate.

The remaining bug in 0.7.1 is that this setting is not persisted, I'll publish 0.7.2 later today hopefully with a fix for this one.

see
http://code.google.com/p/ideamksplugin/issues/detail?id=41&can=1
and
http://code.google.com/p/ideamksplugin/issues/detail?id=46

0
Avatar
Permanently deleted user

the new version (0.7.2) has just been released

0

Please sign in to leave a comment.