VSCodeVim / VSCodeVim/Vim

Can't pane switch with python interactive

Open
#3,769 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug

When I'm using VSCode's data science tools,
And I try to switch away from the python interactive pane,
the pane doesn't switch,
and I get TaskQueue: Error running task. Cannot read property 'options' of undefined from the Vim extension.

This also occurs when I used the default ctrl+w ctrl+w to pane switch.

To Reproduce
Steps to reproduce the behavior:

  1. (likely not necessary to reproduce, but how it's set up for me) In keybindings.json:
    {
        "key": "alt+h",
        "command": "workbench.action.focusLeftGroup"
    },

  1. Now, in the code, make a cell:
#%%
print("Hello World")
  1. Run the cell.
  2. Try to switch panes from the interactive window back to the code.

Expected behavior
The pane switches properly.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.8.0
  • VSCode version: Version 1.34.20-insider
  • OS: Mac OS Mojave

Additional context
I don't think this is specific to when the keybindings are switched.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with VSCode's Python interactive window and a cell marked with #%%, using the reported pane-switching keybindings. Then trace the TaskQueue error mentioning an undefined options property. Done means switching from the interactive pane back to the code works without the Vim extension error; the payload names no repository file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.