[ANN] IdeaVIM 0.12.1

A few more bug fixes for the IdeaVIM plugin for both IDEA 7.0.x and 8.0.

Fixes include some internal exceptions and the fixing of scrolling in the console output pane.

Enjoy.

7 comments
Comment actions Permalink

Been using IdeaVIM for 2 years now with no problems, but with the upgrade to IJ 8 and and IdeaVIM 0.12.x I not only having trouble with Jump To functionality, but also with search ('/' or '?') functionality. Continuously get exceptions similar to those already logged in bugs section of SourceForge page (https://sourceforge.net/tracker/?group_id=79039&atid=555309). The result is unusable. Have uninstalled and installed numerous times from scratch to try and resolve. Would really like to upgrade but am stuck. Any help is greatly appreciated.

Frank

0
Comment actions Permalink

OK folks. I've suddenly received several messages just today about the broken search. I hadn't seen the bug report on Sourceforge until now. I will take a look into this and try to get a fix out ASAP.

Rick

0
Comment actions Permalink

I am unable to reproduce this problem using IDEA 8.0 build 9013 on OS X 10.5.5. Can anyone give me exact condition where this error occurs for them? Please include:

IDEA build #
IDEA JDK version
OS (Windows XP, Vista, OS X, Linux)
Search string entered (i.e. /void )
Anything else that seems useful

Thanks,
Rick

0
Comment actions Permalink

My IDEA build #: 9013
My IDEA JDK: JDK 1.6.0_10 (Note: My Project is using JDK 1.5.0_08 but I will try switching it to 1.6 to see if that helps)
OS: Windows XP
Search string entered: Anything. It doesn't matter.

Here is the specific behavior and exceptions I am getting:

1. If I search using '/', '?', n or N I get the following exception and cursor does not move to any search results

Error during dispatching of java.awt.event.KeyEvent[KEY_PRESSED,keyCode=10,keyText=Enter,keyChar=Enter,keyLocation=KEY_LOCATION_STANDARD,rawCode=13,primaryLevelUnicode=13,scancode=28] on com.maddyhome.idea.vim.ui.ExTextField[,12,1,1238x17,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=153,g=147,b=111],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=1,left=1,bottom=1,right=1],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],selectionColor=javax.swing.plaf.ColorUIResource[r=49,g=106,b=197],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]
java.lang.IndexOutOfBoundsException
at java.nio.StringCharBuffer.subSequence(StringCharBuffer.java:92)
at com.maddyhome.idea.vim.regexp.CharPointer.strnicmp(CharPointer.java:263)
at com.maddyhome.idea.vim.regexp.RegExp.cstrncmp(RegExp.java:4187)
at com.maddyhome.idea.vim.regexp.RegExp.regmatch(RegExp.java:2900)
at com.maddyhome.idea.vim.regexp.RegExp.regtry(RegExp.java:2508)
at com.maddyhome.idea.vim.regexp.RegExp.vim_regexec_both(RegExp.java:2433)
at com.maddyhome.idea.vim.regexp.RegExp.vim_regexec_multi(RegExp.java:2318)
at com.maddyhome.idea.vim.group.SearchGroup.highlightSearchLines(SearchGroup.java:820)
at com.maddyhome.idea.vim.group.SearchGroup.highlightSearch(SearchGroup.java:776)
at com.maddyhome.idea.vim.group.SearchGroup.searchHighlight(SearchGroup.java:736)
at com.maddyhome.idea.vim.group.SearchGroup.search(SearchGroup.java:669)
at com.maddyhome.idea.vim.group.SearchGroup.search(SearchGroup.java:603)
at com.maddyhome.idea.vim.action.motion.search.SearchEntryFwdAction$Handler.getOffset(SearchEntryFwdAction.java:44)
at com.maddyhome.idea.vim.handler.motion.MotionEditorActionHandler.execute(MotionEditorActionHandler.java:38)
at com.maddyhome.idea.vim.handler.AbstractEditorActionHandler.execute(AbstractEditorActionHandler.java:59)
at com.maddyhome.idea.vim.handler.AbstractEditorActionHandler.execute(AbstractEditorActionHandler.java:44)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:76)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:33)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:88)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:62)
at com.maddyhome.idea.vim.KeyHandler.executeAction(KeyHandler.java:548)
at com.maddyhome.idea.vim.KeyHandler$ActionRunner.run(KeyHandler.java:618)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:339)
at com.maddyhome.idea.vim.helper.RunnableHelper$ReadAction.run(RunnableHelper.java:54)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:2)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:52)
at com.maddyhome.idea.vim.helper.RunnableHelper.runReadCommand(RunnableHelper.java:36)
at com.maddyhome.idea.vim.KeyHandler.handleKey(KeyHandler.java:482)
at com.maddyhome.idea.vim.KeyHandler.handleKey(KeyHandler.java:376)
at com.maddyhome.idea.vim.ui.ExEditorKit$CompleteEntryAction.actionPerformed(ExEditorKit.java:261)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at com.maddyhome.idea.vim.ui.ExTextField.processKeyEvent(ExTextField.java:189)
at java.awt.Component.processEvent(Component.java:5911)
at java.awt.Container.processEvent(Container.java:2023)
at java.awt.Component.dispatchEventImpl(Component.java:4501)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
at java.awt.Component.dispatchEventImpl(Component.java:4373)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Window.dispatchEventImpl(Window.java:2458)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:105)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Additionally, when I try to jump to another class (Ctrl-Alt-B), I successfully jump to the appropriate location in the file but get the following exception. Note the same exception occurs if I click on a file tab or use 'Go To' menu options to jump to another file:

No message
java.lang.IndexOutOfBoundsException
at java.nio.StringCharBuffer.subSequence(StringCharBuffer.java:92)
at com.maddyhome.idea.vim.regexp.CharPointer.strnicmp(CharPointer.java:263)
at com.maddyhome.idea.vim.regexp.RegExp.cstrncmp(RegExp.java:4187)
at com.maddyhome.idea.vim.regexp.RegExp.regmatch(RegExp.java:2900)
at com.maddyhome.idea.vim.regexp.RegExp.regtry(RegExp.java:2508)
at com.maddyhome.idea.vim.regexp.RegExp.vim_regexec_both(RegExp.java:2433)
at com.maddyhome.idea.vim.regexp.RegExp.vim_regexec_multi(RegExp.java:2318)
at com.maddyhome.idea.vim.group.SearchGroup.highlightSearchLines(SearchGroup.java:820)
at com.maddyhome.idea.vim.group.SearchGroup.highlightSearch(SearchGroup.java:776)
at com.maddyhome.idea.vim.group.SearchGroup.updateHighlight(SearchGroup.java:724)
at com.maddyhome.idea.vim.group.SearchGroup$EditorSelectionCheck.selectionChanged(SearchGroup.java:1464)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:101)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:182)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:187)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:174)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:171)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:166)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:40)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:106)
at $Proxy60.selectionChanged(Unknown Source)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.fireSelectionChanged(FileEditorManagerImpl.java:142)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters.setCurrentWindow(EditorsSplitters.java:5)
at com.intellij.openapi.fileEditor.impl.EditorWindow.setEditor(EditorWindow.java:3)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:59)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$5.run(FileEditorManagerImpl.java:3)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:33)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:52)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:405)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:338)
at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:2)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$6.run(FileEditorManagerImpl.java:13)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:33)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:52)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:164)
at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigateInAnyFileEditor(OpenFileDescriptor.java:127)
at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigateInEditor(OpenFileDescriptor.java:112)
at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigate(OpenFileDescriptor.java:103)
at com.intellij.codeInsight.navigation.GotoTargetHandler.a(GotoTargetHandler.java:26)
at com.intellij.codeInsight.navigation.GotoTargetHandler.invoke(GotoTargetHandler.java:17)
at com.intellij.codeInsight.actions.CodeInsightAction$1$1.run(CodeInsightAction.java:59)
at com.intellij.codeInsight.actions.CodeInsightAction$1.run(CodeInsightAction.java:66)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:2)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:52)
at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformedImpl(CodeInsightAction.java:53)
at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformed(CodeInsightAction.java:39)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:2)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:3)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:1)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:170)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:211)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


I realize that IDEA Go To Forward/Back has been replaced with corresponding Jump Function but I'm not sure which functions are supposed to work properly. I've tried Ctrl-O and Ctrl-I and Tab and get same results as above (when jump results in a file change), but the jump takes me to unpredictable locations.

Let me know what else I can do to help.
Regards
Frank

0
Comment actions Permalink

Actually, can you try running IDEA itself with JDK 1.5 instead of 1.6. I'm getting the feeling that the problem lies with JDK 1.6

Thanks,
Rick

0
Comment actions Permalink

I copied the JRE from my IJ 7.0.4 install which happens to be 1.6.0_04 and the exceptions go away, all of them!
Search works fine now. Jumps do not throw any exceptions anymore but they are still not performing as expected.
Ctrl-O and Ctrl-I work fine within a single file, but across files they are taking me to incorrect locations. Is the issue that I'm using Ctrl-Alt-B or Alt-Shift-N to go to other files?

Frank

0
Comment actions Permalink

Interesting. So here is what we have so far (all with IDEA build 9013):

JDK 1.6.0_10 on Windows causes lots of problems
JDK 1.6.0_04 on Windows works fine

From another user that emailed me:
JDK 1.6.0_07 on Windows Vista causes the same problems (

And another user:
JDK 1.6.0_10 on ??? causes the same problems

For me:
JDK 1.6.0_07 on Mac OS X works fine
JDK 1.5.0_16 on Mac OS X works fine

So as best as I can tell this search bug only appears for users using the newer JDK that comes with the latest IDEA build.

Unfortunately I don't access to Vista so I can't test this to see if there is a workaround. Yuck. I might be able to get to a Windows XP machine. I'll see if I can replicate this there.

0

Please sign in to leave a comment.