live-share icon indicating copy to clipboard operation
live-share copied to clipboard

Connected Live Share sessions occasionally modify local code during remote shared development

Open Alan3344 opened this issue 1 year ago • 8 comments

Describe what happened: When I used vsc to connect to Live Share to remotely write Golang test code, I clicked *testing.T to view its references. As soon as a part of the content was selected, it was deleted. I had to press Ctrl+Z repeatedly to undo the operation, but it didn't help. Later I realized that by quickly clicking on the editor interface and unselecting this part of the code, it was restored.

It is impossible to describe it in detail, please check the demonstration video below

From time to time, several code files and code snippets were generated for me.

What was your system configuration? Product and Version [VS/VSCode]: OS Version[macOS/Windows]: Live Share Extension Version: Target Platform or Language [e.g. Node.js]:

Version: 1.96.0 (user setup)
Commit: 138f619c86f1199955d53b4166bef66ef252935c
Date: 2024-12-11T02:29:09.626Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100
Installation
Identifier
ms-vsliveshare.vsliveshare
Version
1.0.5941
Last updated
2024-09-24, 14:17:06
Size
25.1 MB
Market
Released
2018-01-30, 02:04:53
Last published
2024-09-24, 04:43:52

Steps to Reproduce / Scenario:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Please attach logs to this issue: You can access them via the Live Share: Export Logs command from the command palette (ctrl + shift + p) and attach them to this issue

Screenshots If applicable, add screenshots to help explain your problem.

No logs

Image

Image It should also be generated when I selected the code segment (just when I wanted to delete it)

https://github.com/user-attachments/assets/dbcd0ee4-da0c-4dd1-b17d-202f9a538531

Alan3344 avatar Dec 14 '24 19:12 Alan3344

I am experiencing the same issue while using Live Share to collaborate on a Go codebase.

thiagokisaki avatar Dec 16 '24 13:12 thiagokisaki

I'm experiencing the same issue

samuelchristlie avatar Jan 02 '25 09:01 samuelchristlie

I have experienced a similar issue, and replicated it in a clean VSCode install with no configuration aside from Live Share and the Go language extension. People who join the shared session (also with clean VSCode installs with just Live Share added) and command-click (macOS) on a reference cause the referenced function to be extracted out of its current file into a new file, and have a second file created with unit tests auto-generated for that function. This does not occur for the host, and may be an unintended reaction between the Live Share extension and the Go language extension.

lalaithion avatar Jan 06 '25 22:01 lalaithion

I have experienced a similar issue, and replicated it in a clean VSCode install with no configuration aside from Live Share and the Go language extension. People who join the shared session (also with clean VSCode installs with just Live Share added) and command-click (macOS) on a reference cause the referenced function to be extracted out of its current file into a new file, and have a second file created with unit tests auto-generated for that function. This does not occur for the host, and may be an unintended reaction between the Live Share extension and the Go language extension.

My teammate and I are experiencing this same exact thing.

lisaSW avatar Jan 08 '25 20:01 lisaSW

Exactly same issue here, also on Mac.

seralogar avatar Jan 13 '25 10:01 seralogar

These issues seem to be connected. https://github.com/microsoft/live-share/issues/5155

SKPG-Tech avatar Jan 19 '25 12:01 SKPG-Tech

Downgrading the gopls version (0.16.2) seems to help with this issue. (Make sure you have go tools auto update disabled in go extension settings)

RanPix avatar Jan 19 '25 13:01 RanPix

Master version of gopls solves it. All participants of the live share session need to update, otherwise it will still fail.

seralogar avatar Feb 05 '25 18:02 seralogar