You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.
I am having this issue when running autocomplete and vim-mode together. It autocompletes but also joins the next line and removes a few characters.
Steps to reproduce:
make sure you have vim-mode installed
open autocomplete/spec/fixtures/sample.js
move to the end of the first line in insert mode
press enter
type "quick"
press ctrl-space.
The issue is happening because autocomplete is not committing the current transaction in AutocompleteView.attach so when it runs editor.abortTransaction in AutocompleteView.cancel, it aborts autocomplete's transaction + the previous vim-mode transaction.
A way to take care of this is to commit any existing transaction in AutocompleteView.attach:
Thanks for the excellent reproduction steps! We're aware of this issue and a fix is already on the way.
To fully resolve this issue, we had to move away from using open-ended transactions (::beginTransaction and ::commitTransaction), and to introduce a new feature in atom-core called 'checkpoints'. See atom/text-buffer#38, #53, and atom/vim-mode#448. The reason we can't simply apply your fix is that in vim-mode, each insert-mode session should constitute a single entry in the undo history. If the autocomplete view commits the transaction opened by vim-mode, multiple entries will be created in the undo history.
It may take some time for new versions of the packages to be released because they depend on the new checkpoint API, which is on master, but hasn't been released yet.
I am having this issue when running
autocomplete
andvim-mode
together. It autocompletes but also joins the next line and removes a few characters.Steps to reproduce:
vim-mode
installedautocomplete/spec/fixtures/sample.js
The issue is happening because
autocomplete
is not committing the current transaction inAutocompleteView.attach
so when it runseditor.abortTransaction
inAutocompleteView.cancel
, it abortsautocomplete
's transaction + the previousvim-mode
transaction.A way to take care of this is to commit any existing transaction in
AutocompleteView.attach
:This issue affects
vim-mode
and any package that could potentially have an unfinished transaction beforeAutocompleteView.attach
is executed.The text was updated successfully, but these errors were encountered: