Menu

#158 can not deactivate jvi

Major
closed-works-for-me
nobody
NetBeans (62)
5
2023-02-19
2011-12-19
Anonymous
No

deactivate button in Tools menu works partially (also after last update jVi disabled itself, also in the same way - partially)

cursor buttons, backspace and Ctrl+F does not work

Tools->Plugins-> i had diactivated all jVi related records there, but the problem stays.

also Ctrl+F shows an exception

java.lang.NullPointerException
at org.netbeans.modules.editor.impl.SearchBar.addKeystrokeReplaceActionTo(SearchBar.java:789)
at org.netbeans.modules.editor.impl.SearchBar.<init>(SearchBar.java:189)
at org.netbeans.modules.editor.impl.SearchBar.getInstance(SearchBar.java:169)
at org.netbeans.modules.editor.impl.SearchBar.getInstance(SearchBar.java:178)
at org.netbeans.modules.editor.impl.SearchAndReplaceBarHandler$SearchAction.actionPerformed(SearchAndReplaceBarHandler.java:102)
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:93)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
at org.openide.awt.GeneralAction$DelegateAction.actionPerformed(GeneralAction.java:219)
at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:1138)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2897)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
at java.awt.Component.processEvent(Component.java:6045)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4629)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1881)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:759)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1035)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:902)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:724)
at java.awt.Component.dispatchEventImpl(Component.java:4499)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Window.dispatchEventImpl(Window.java:2517)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:153)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

---------------

jVi Version: 1.4.53.25 Source: jVi (vi/vim) for NetBeans 7.0

Product Version: NetBeans IDE 7.1 Beta (Build 201109252201)
Java: 1.6.0_22; OpenJDK Client VM 20.0-b11
System: Linux version 3.1.0-1.2-pae running on i386; UTF-8; en_US (nb)
User directory: /home/alex/.netbeans/7.1beta
Cache directory: /home/alex/.netbeans/7.1beta/var/cache

Discussion

  • Ernie Rael

    Ernie Rael - 2013-08-27

    This works OK for me. (Should have responded long ago).

    If there is some issue, provide more details on how to reproduce. Will close this report soon.

     
  • Ernie Rael

    Ernie Rael - 2013-08-27
    • labels: Embedded in Application --> NetBeans
    • status: open --> open-works-for-me
     
  • Ernie Rael

    Ernie Rael - 2014-12-19
    • Status: open-works-for-me --> closed-works-for-me
     
  • Matias Mario

    Matias Mario - 2023-02-19

    I have encountered this issue as well using Netbeans 16 with jVi 2.0.13 on Windows 10. It happens when you save a new keybinding while in Normal (edited: not Command) mode. Saving in Insert mode does it normally.

    It seems some keybindings get saved in a xml file in:
    %appdata%\NetBeans\16\config\Editors\Keybindings\NetBeans\
    org-netbeans-modules-editor-settings-CustomKeybindings.xml
    Renaming (deleting) it seems to solve the issue.

    I don't know if it's related but the effect is similar to what's described here (which is how I found the file): https://bz.apache.org/netbeans/show_bug.cgi?id=231747

    Some other details:

    • Deactivating/uninstalling jVi didn't solve the issue.
    • Although it required a jVi reinstall the first time, it seems to be working without it now.
    • Ctrl + F functionality also seems to work now even though it didn't at first.
     

    Last edit: Matias Mario 2023-02-19
  • Ernie Rael

    Ernie Rael - 2023-02-19

    If you provide steps to recreate, I'll give it a try. (I don't understand how it happened).

    Command mode is after ":".

     
  • Matias Mario

    Matias Mario - 2023-02-19

    Thank you for the quick reply! I'm sorry, I meant Normal mode facepalm

    1. Activate jVi, exit Insert mode if necessary
    2. Tools -> Options
    3. Keymap
    4. Modify a Shortcut. E.g., Find Tasks..., Ctrl + Shift + A
    5. Apply and Ok
    6. (The xml file gets created)
    7. Deactivate jVi
    8. Arrow keys move the editor screen, backspace and Ctrl + V (which I set in jVi's options) don't work.
    9. Changing to another Profile in Options solves the issue but going back to the previous one makes it reappear.
    10. Delete the xml file
    11. Deactivate jVi (activate it if necessary)
    12. Arrow keys and backspace work again (the modified keybinding is still there and working and activating/deactivating jVi also works as expected)
     

    Last edit: Matias Mario 2023-02-19

Log in to post a comment.

MongoDB Logo MongoDB