Vim: Undo After Replace Causes Error: "Cannot read property 'getTime' of undefined."

Created on 10 Dec 2019  路  4Comments  路  Source: VSCodeVim/Vim

Describe the bug
When successfully performing a replace command via :s/blah/bleh, immediately undoing this replacement will cause the error 'TaskQueue: Error running task. Failed to handle key=u. Cannot read property 'getTime' of undefined.'

To Reproduce
Steps to reproduce the behavior:

  1. Type 'blah' in a document
  2. Type :s/blah/bleh to replace 'blah' with 'bleh'
  3. Hit 'u' (default key binding) to undo this replacement

The undo will work as expected, but the stated error will appear. Furthermore, ':' or '/' will have to then be hit twice to bring the command prompt back up. This seems to happen with or without neovim integration. Error does not occur if the replacement is undone after entering insert mode and then going back to normal mode.

Expected behavior
The error doesn't occur.

Environment (please complete the following information):

  • VSCode version: 1.40.2
  • VSCodeVim version: 1.12.2
  • OS: Windows_NT x64 10.0.18362.476 (Win 10 Pro)
areundo kinbug

Most helpful comment

This is still happening to me.

All 4 comments

happening to me as well. Would loved to have it fixed as it is super annoying not to be able to undo changes. Thanks!!!

This is still happening to me.

Experiencing the same error with some differing versions of software.

VSCode version: 1.41.1
VSCodeVim version: 1.12.2
OS: Mac OS 10.15.2

this annoying error has been torturing me 馃槶馃槶

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ACollectionOfAtoms picture ACollectionOfAtoms  路  3Comments

jaredly picture jaredly  路  3Comments

elithrar picture elithrar  路  3Comments

AndersenJ picture AndersenJ  路  3Comments

liamdawson picture liamdawson  路  3Comments