microsoft / live-share

Real-time collaborative development from the comfort of your favorite tools
http://aka.ms/vsls
Creative Commons Attribution 4.0 International
2.28k stars 253 forks source link

LiveSharing between MacOS & Win11 show different line placements #5037

Open aabraham-blueeye opened 8 months ago

aabraham-blueeye commented 8 months ago

Type: Bug

Seems like cursor position is tracked incorrectly likely due to env. new line differences between platforms

Extension version: 1.0.5918 VS Code version: Code 1.86.2 (Universal) (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:42:13.651Z) OS version: Darwin arm64 23.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Max (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|6, 5, 5| |Memory (System)|32.00GB (0.06GB free)| |Process Argv|--crash-reporter-id 5e9a2e5a-1f64-4773-b4ba-ab701804676a| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 vscrp:30673768 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:30979542 d34g3935:30971562 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 666c4381:30973075 ```
derekbekoe commented 8 months ago

Can you share more details? As is, there is not enough information here for us to investigate further. We're not aware of any issues in this area so any further information would be helpful in allowing us to reproduce this issue.

QMiqTx6DHn1bA9yaNaAbsD3CLG8gTmd4 commented 8 months ago

Am consistently experiencing this issue for couple of days. Basically it makes read-write sessions unusable.

The manifestation of it is following - when I host read-write session on macOS and Windows client joins I'm unable to successfully persist changes into a file that was created by Windows client during LiveShare. If I type characters, they do appear at macOS side, but observing the Windows client's screen (e.g., via Teams screen share) confirms that edits don't show up/are not successfully transferred by LiveShare to Windows side. In several cases, doing these futile saves even led to a mish-mash situation/garbled up files between clients (fused several lines into single and other weirdness).

Curiously, there are no observed issues with same Windows client's edits in their appearance/correctness on macOS. That is, I can properly see in realtime the Windows client's activity/edits on a macOS VS Code.


macOS side:

LiveShare extension: v1.0.5918

Version: 1.88.0-insider
Commit: 7caf8b6cfe76d22c6aff3d7aa22dd9f494266ecc
Date: 2024-03-28T05:24:28.263Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0