-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'dd' followed by any character jumps cursor to end of file. #3713
Comments
Did you find a solution? @ConnorGray Im refering to #2136 (comment) by you |
Wow, I was just going to report the same issue. No solution for the moment on my side, very annoying ! |
Running into this as well |
I'm experiencing the same issue. VsCodeVim Version: |
Closing and re-opening the file is my current workaround. The issue doesn't happen consistently for me and I haven't traced the steps that get me into the bad state. I believe same issue: #3694 |
Same issue: after saving or after deleting the cursor jumps to end of file, all the time. Thought it might be related to interference with Beautify/Prettier that reformats on save, but disabling all plugins except for Vim still shows the jumping. Restarting does not resolve the issue, neither does installing a different version of vscode-vim (pre 1.0.2). Previous cursor positions are gone, `` to jump back jumps from end of file to beginning of file or gives mark not set. Effectively means after every save/delete I have to remember/mark the line I was on and jump back, or if I forgot that I have to actively search/browse to where I left off. This is a big productivity impediment, hope you can find the root cause or clue to how to resolve it. Does not seem to be file type dependent: happens to me on Vue files/plain JS/JSON/HTML. Did not see this behavior on a previous project about six months back, but no clue what version I had installed then. |
👍 This really annoying |
same, hope it will be fixed. |
I have been having this problem intermittently even without any custom keybinding involving the |
It can happen after other |
Same behaviour here. It makes VSCodeVim unusable for me at the moment. As @cdisselkoen points out this affects almost any |
Same here, this issue really needs attention as unpredictable behavior makes the extension virtually unusable. |
Same here |
This seems to be due to the fact that the extension tracks editor positions (and other state) using the name of the open file, which is obviously not unique if multiple editors are open in different panes. Here's a reliable way to reproduce:
To fix this, VSCodeVim must take into account not just the |
It might be related to a change in editor-behaviour (actually quite a while ago)
|
I've fixed temporally this problem downgrading to the version 1.0.0. Now I need to discover how to prevent vscode from reinstalling the newer versions, always I reload it. |
I got nothing to add except that this is happening on |
I just went through a bunch of versions and I think the break happens between v.1.0.4 (good) to v.1.0.5 (bad). |
@jpoon my bisection test is pretty rough (just brute force installing the updates) but am hoping you maybe have a good guess about what might be behind this trigger jump between 1.0.4 and 1.0.5. looks like some async and position function changes in those ranges. Would be interesting if anyone else on this thread @adam-lee @hexagon6 can manually confirm the versions 1.0.4 (good) and 1.0.5 (bad) by downgrading the plugin. Might still be just some interaction with other non-extension changes in vscode.
|
Nice. I'll try to verify.
…On Tue, 16 Jul 2019, 12:25 David Cottrell, ***@***.***> wrote:
I just went through a bunch of versions and I think the break happens
between v.1.0.4 (good) to v.1.0.5 (bad).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3713?email_source=notifications&email_token=AKD63KMK5CDLTRRMGBAR4R3P7WOXXA5CNFSM4HJJP4SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ANGPQ#issuecomment-511759166>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKD63KPK6T4XFL5Y752QNI3P7WOXXANCNFSM4HJJP4SA>
.
|
I can confirm that this can be reproduced in 1.0.5, but not in 1.0.4 |
Same here, works fine in v1.04. Here are the changes for 1.0.5: v1.0.4...v1.0.5 Will use https://github.com/74th/vscode-vim until this is resolved. |
Same here. VsCodeVim is almost unusable if not set to 1.0.4.
…On Tue, 23 Jul 2019, 08:41 Fredrik Erlandsson, ***@***.***> wrote:
I can confirm that this can be reproduced in 1.0.5, but not in 1.0.4
Same here, works fine in v1.04. Here are the changes for 1.0.5:
v1.0.4...v1.0.5 <v1.0.4...v1.0.5>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3713?email_source=notifications&email_token=AKD63KJALAIFC3ZFLSLPEELQA2R2RA5CNFSM4HJJP4SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SCX2I#issuecomment-514075625>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKD63KNHNHRE3CPNONX4F5DQA2R2RANCNFSM4HJJP4SA>
.
|
Ditto |
this bug is really annoying, all the joy using this extension all gone |
The thing that bugs me is that there is a bug in 1.0.4 that makes the
extension hang from time to time.
So in the old version the extension hangs, and in the new version cursor
jumps to the bottom constantly.
…On Tue, 30 Jul 2019, 10:26 kaijajan, ***@***.***> wrote:
this bug is really annoying, all the joy using this extension all gone
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3713?email_source=notifications&email_token=AKD63KJ5FYIPUKXA33OWDQ3QB73MBA5CNFSM4HJJP4SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3DGRAY#issuecomment-516319363>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKD63KIXCF3MDITAAXSNTUDQB73MBANCNFSM4HJJP4SA>
.
|
Has anyone got set up in dev? https://github.com/VSCodeVim/Vim/blob/master/.github/CONTRIBUTING.md I'm not clear on the policy for reverting some changes but I might give it a try if I has some time this weekend. There are a lot of open issues and not a lot of folks contributing ... |
I think the issue should be isolated first. I think I had quite good experience with |
@fredrike I encountered this issue on editing typescript files |
Happens for me on: |
same issue here, it makes the extension almost unusable |
Nothing like jumping to end of file after any line deletion to completely destroy your train of thought. I spend more time trying to think of new ways of deleting lines now. Does seem to be limited to vim command mode. |
@jpoon do you know what happened between v1.0.4...v1.0.5 that made |
Yes, I did post that @ #3713 (comment), my question were more. Do you also have this issue or an idea on what is going on here. I have not had possibility to read through all the changes.. |
Downgraded to 1.0.4 as well and it seems to be working fine |
I can't reliably reproduce this by opening the same file in two panes, but it sometimes happen even if I have the file open in only one pane. At the moment it's happening when I try to enter visual line mode with
the significant part (besides the known |
I do a
|
Thanks for doing that @uHOOCCOOHu I'm not at all familiar with this extension (or any vscode extensions for that matter) but I'd bet it's related to the incorrect use of Lines 80 to 92 in 5c14677
instead it should be return require('util').promisify(setTimeout)(0).then(() => {
if (this.vimState.editor) {
this.vimState.cursorStartPosition = Position.FromVSCodePosition(
this.vimState.editor.selection.start
);
this.vimState.cursorPosition = Position.FromVSCodePosition(
this.vimState.editor.selection.start
);
this.vimState.desiredColumn = this.vimState.cursorPosition.character;
this.vimState.prevSelection = this.vimState.editor.selection;
}
});
} As it's currently implemented I don't think that code is ever getting executed. |
@ryankeener Now |
More discussion: #3804 |
Fixes #3713 , hopefully. This happened when you were editing a file in two splits at once. An edit in one split that affected the cursor position in the other split would trigger an extra `onDidChangeTextEditorSelection` event that we should be ignoring.
Describe the bug
After deleting a line with
dd
any character afterwards jumps me to the end of the file.This issue has been marked closed in an old Closed Issue
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Not jumping to end of file.
Environment:
1.7.0
1.34.0-insider
(user setup)10.0.17134
2019-04-30T08:17.612Z
Additional context
VsCodeVim settings
The text was updated successfully, but these errors were encountered: