Vim: Error when closing a split pane in insert mode

Created on 14 Feb 2019  路  4Comments  路  Source: VSCodeVim/Vim

Describe the bug
When executing the "Close all editors" command when in insert mode and with a split pane, the following error message is displayed:

TaskQueue: Error running task. Cannot read property 'options' of undefined.

rickshaw 2019-02-14 09-27-10

To Reproduce
Steps to reproduce the behavior:

  1. Open multiple files with a split pane
  2. Enter insert mode
  3. Execute the "Close all editors", command either via keyboard shortcut or the command pane

Expected behavior
No error message.

Screenshots
Here's a video showing the bug in action. First I show how no error message is displayed if in visual mode, then I show how an error message is displayed when in insert mode.

https://monosnap.com/file/nIvJhCv7JTDTaVMbXGUr8YgQ9qHHzH

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.0.8
  • VSCode version: 1.31.1
  • OS: macOS 10.14.3 - Darwin x64 18.2.0
kinbug

Most helpful comment

Thanks for reporting this errors.

In the early days, we made an assumption that there would only be one open window which turned out to be a bad one when vscode supported split panes. This error indicates that we are trying to operate on the editor that you closed; the error itself is benign and it's safe to ignore it but it'd be good to actually add checks in our codebase to see if the editor is still open.

All 4 comments

Thanks for reporting this errors.

In the early days, we made an assumption that there would only be one open window which turned out to be a bad one when vscode supported split panes. This error indicates that we are trying to operate on the editor that you closed; the error itself is benign and it's safe to ignore it but it'd be good to actually add checks in our codebase to see if the editor is still open.

@jpoon : It appears to no longer be benign. When I try to switch panes and I'm using Python Interactive (vscode data science tools: https://code.visualstudio.com/docs/python/jupyter-support), I get
TaskQueue: Error running task. Cannot read property 'options' of undefined., and the pane won't switch.

This is when using a hotkey for workbench.action.focusLeftGroup.

Potentially related: #3596

I can't seem to replicate it using your instructions @jbrowning. Are you still experiencing this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edwintorok picture edwintorok  路  3Comments

triztian picture triztian  路  3Comments

WangRongda picture WangRongda  路  3Comments

st-schneider picture st-schneider  路  3Comments

Jimmy-Z picture Jimmy-Z  路  3Comments