Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Failed to handle key=a. Cannot read property 'getFocusElement' of null

Open jeanlucthumm opened this issue 4 years ago • 2 comments

To Reproduce Steps to reproduce the behavior:

Include the following in settings.json:

    "vim.leader": "<space>",
    "vim.normalModeKeyBindings": [
        {
            "before": [
                "<leader>",
                "a"
            ],
            "commands": [
                "problems.action.showQuickFixes"
            ]
        }
    ]

Then go to a problem in the code. Attempt to do <space>a to bring up quickfix, and the given problem occurs. In the same position if you hit Ctr + period key, it brings up the quickfix menu.

VSCodeVim version: 1.18.9

Stack trace
TypeError: Cannot read property 'getFocusElement' of null
    at handler (file:///usr/share/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js:2555:1426)
    at C.invokeFunction (file:///usr/share/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js:614:20943)
    at C._tryExecuteCommand (file:///usr/share/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js:1534:3492)
    at file:///usr/share/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js:1534:3241

jeanlucthumm avatar Feb 22 '21 22:02 jeanlucthumm

Weird. I can reproduce, but this exception is being thrown from VSCode. Not sure what's going wrong here, I'll need to dig into it a bit more.

J-Fields avatar Mar 24 '21 17:03 J-Fields

i solved this problem by using editor.action.quickFix instead

ds300 avatar Sep 14 '22 12:09 ds300