Skip to content
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

Staging chunk in file discards previous staged chunks #63386

Closed
jakub-gonet opened this issue Nov 18, 2018 · 11 comments
Closed

Staging chunk in file discards previous staged chunks #63386

jakub-gonet opened this issue Nov 18, 2018 · 11 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster

Comments

@jakub-gonet
Copy link

Issue Type: Bug

  1. click green/blue/red block on line and stage it by + sign
  2. click other line block to stage it
  3. first staged chunk is discarded

VS Code version: Code - OSS 1.30.0 (610918d, 2018-11-18T15:05:55.294Z)
OS version: Linux x64 4.9.135-1-MANJARO

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4210H CPU @ 2.90GHz (4 x 3441)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled
webgl2: enabled
Load (avg) 7, 7, 8
Memory (System) 7.71GB (1.06GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none
@vscodebot
Copy link

vscodebot bot commented Nov 18, 2018

@joaomoreno
Copy link
Member

Can you show me a screen recording of the issue?

@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Nov 19, 2018
@jakub-gonet
Copy link
Author

Sure:
https://youtu.be/2VJan4dRdFM

As you may see, I started with clean document, but VSC showed that one line was modified (was modified earlier, as it took me 2 attemps to record this, but I removed modifications by using git). Aside from that non existent modif, VSC is clearly swapping between two staged versions. One line was added to staging and then the second should be added, but it swapped the staged versions.

@joaomoreno
Copy link
Member

I started with clean document, but VSC showed that one line was modified

OK that is weird. That sounds like it's the actual issue, not your original description.

So, does VS Code not react to git repo events?

@jakub-gonet
Copy link
Author

jakub-gonet commented Nov 22, 2018

Hard to tell actually, because commits are updated. I'll check if reopening a file forces VSCode to record all new operations on repo.

I'm kinda suprised that nobody earlier spotted this issue, staging different things directly from VS seems to be quite popular workflow.

EDIT: Yup, reloading the file fixes this.

@joaomoreno
Copy link
Member

I'm kinda suprised that nobody earlier spotted this issue, staging different things directly from VS seems to be quite popular workflow.

I can't reproduce it, I bet most people can't.

Yup, reloading the file fixes this.

You mean, closing and opening it?


Then, how easy is it for you to hit the issue?

@jakub-gonet
Copy link
Author

Yep, reopening fixes that visual bug.

As it's happening to every file in every repo, quite easy.

I'll try deleting all local files and unistalling VS Code, maybe it won't occur in clean install.

@joaomoreno
Copy link
Member

If you want to simulate a clean install simply run with code --user-data-dir DIR and pick a new folder for the user data dir.

@jakub-gonet
Copy link
Author

Nope, switching folders and even reinstalling didn't help at all.

@joaomoreno
Copy link
Member

/duplicate #64027

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 4, 2018
@vscodebot
Copy link

vscodebot bot commented Dec 4, 2018

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Dec 4, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants
@joaomoreno @jakub-gonet and others