Live-share: VS Code Live Share 1.0.1587 installation failing for x64

Created on 13 Feb 2020  路  15Comments  路  Source: MicrosoftDocs/live-share

Describe what happened:
Attempting to install Live Share 1.0.1587 fails with an error indicating that the installation was corrupted and points to the following issue: https://github.com/MicrosoftDocs/live-share/issues/180

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

Steps to Reproduce / Scenario:

  1. Attempt to install VS Code Live Share extension.
  2. See error in Notification window.

I only had the x64 version of .Net Core 3.1 installed. Error appears to occur when you do not have the x86 version of .NET Core Framework 3.0+ installed. To fix, I had to install https://dotnet.microsoft.com/download/dotnet-core/3.1 x86 version.

Would be nice if this requirement was mentioned in the installation instructions or, ideally, release an x64 compatible version.

Most helpful comment

@LukeWolfGames Can you try the following:

  1. Close all VS Code instances
  2. Delete the following folder:
    -- If you are using VS Code: %appdata%\Code\User\globalStorage\ms-vsliveshare.vsliveshare
    -- If you are using VS Code Insiders: %appdata%\Code - Insiders\User\globalStorage\ms-vsliveshare.vsliveshare
  3. Delete Live Share extension from %userprofile%.vscodeextensions\
  4. Try installing again.

All 15 comments

+1
Installing .Net Core 3.1 also resolved the failed update for me.

I'm seeing the same thing -- And a clean and re-install doesn't fix the issue

/cc @lostintangent

You shouldn't have to install .NET separately. The extension downloads a copy of .NET and is supposed to use it. Could you please run the LiveShare: Export Logs command and attach the logs here to see what's going on?

I'm seeing the same thing. Here is the log zip.
livesharelogs.zip

I've done the following:

  • uninstall/reinstalled the extension (a lot of times)
  • uninstalled Code and reinstalled
  • uninstalled Code, deleted everything I could find (%USERDATA%/.vscode, %APPDATA%/Code) that might be associated with it.

Also, it's not critical for me that this be fixed right away, so I am okay with leaving my install to test any other fixes than installing the x86 .Net Core.

Thanks for your logs. I see the problem. Dotnet gets downloaded to a folder and the vsls-agent process is launched by setting an env car called DOTNET_ROOT to point to the dotnet location. Your log is saying that it didn't find the DOTNET_ROOT(x86) env var - so it seems like a bitness issue. Do you by any chance have a 32 bit vscode?

I downloaded 1.42.0 x64 version and installed it as part of my troubleshooting, so not currently.

I also downloaded 1.42.0 ia32 version, uninstalled the x64 version, and installed the ia32 version. Same problem, logs attached.
ia32_logs.zip

(Not sure which issue is the right one, I hope I linked the correct issues)

I'm seeing this in the _Log (Extension Host)_:

[2020-02-13 15:02:28.098] [exthost] [error] Activating extension ms-vsliveshare.vsliveshare failed due to an error:
[2020-02-13 15:02:28.098] [exthost] [error] Error: Agent terminated with exit code: 0 and signal null: A fatal erroroccurred. The required library hostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [c:\Users\marcherm\.vscode\extensions\ms-vsliveshare.vsliveshare-1.0.1587\dotnet_modules\].
If this is a framework-dependent application, install the runtime in theglobal location [C:\ProgramFiles (x86)\dotnet] or use the DOTNET_ROOT(x86) environment variable to specify the runtime location or register the runtime location in [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation].
    at ChildProcess.<anonymous> (c:\Users\marcherm\.vscode\extensions\ms-vsliveshare.vsliveshare-1.0.1587\out\prod\extension-prod.js:128779:32)
    at ChildProcess.emit (events.js:205:15)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:200:13)
    at Pipe.<anonymous> (net.js:586:12)

Steps to Reproduce / Scenario:

  1. Start VS Code
  2. See error
    An update or installation of VS Live Share failed due to a corrupted download. Please uninstall and reinstall the extension to resolve. See https://aka.ms/vsls-corrupted-install for more details.
  3. Uninstall _Live Share Extension Pack_
  4. Exit VS Code completely
  5. Install _Live Share Extension Pack_
  6. See error
    An update or installation of VS Live Share failed due to a corrupted download. Please uninstall and reinstall the extension to resolve. See https://aka.ms/vsls-corrupted-install for more details.

3178, #180

@nzacca, @codylc, @eamodio, @youngnick, @serverhorror: thanks for your help with this issue! We just published an update to the Live Share extension (v1.0.1615) that should address this. Installing .Net Core 3.1 is no longer required.

Hello.

I am still experiencing this issue even with the latest update. I have uninstalled and reinstalled the extention and reloaded vs code. I still get the same error message. I have had to go back to v1.0.1510 to get it to work. What am I doing wrong where I seem to be the only one where it's not working?

@LukeWolfGames Can you try the following:

  1. Close all VS Code instances
  2. Delete the following folder:
    -- If you are using VS Code: %appdata%\Code\User\globalStorage\ms-vsliveshare.vsliveshare
    -- If you are using VS Code Insiders: %appdata%\Code - Insiders\User\globalStorage\ms-vsliveshare.vsliveshare
  3. Delete Live Share extension from %userprofile%.vscodeextensions\
  4. Try installing again.

@nandiniYeltiwar

Thanks for your prompt response.
I have done that, installed and restarted vs code but it does not work on the latest version, I still have to go back to v1.0.1510.

It seems like any later version than that will just give me this error when loading VS code.
I also cannot click on any of the links like "join collaboration session..." "Start collaboration session..." and "start read-only collaboration session". If I click on them, it just highlights the text but it does nothing else.

Is there anything else I can do to fix this?

I'm hitting this error too. Windows 10 build 1703, latest VScode. I have tried:

  1. uninstall/reinstall,
  2. 10+ previous versions,
  3. running VSCode under admin credentials,
  4. installing .NET Core Runtime x64 / x86,
  5. user or global based installs of VScode,
  6. VSCode x64 / x86.
  7. some combinations of steps 1-6.

No luck, same error. I went to see where the error comes from. It's in agentStartupAsync function, in extension-prod.js. How do I debug this code, can someone suggest tools? Or an easy fix to this bug? :)

Wow, found an interesting fix for 1 of my 2 machines. Successful installation depends on Windows Update and Windows Telemetry being enabled. I had disabled them both to have more control over updates. @srivatsn Could it be so? I have checked this dependency 2-3 times, enabling it just enables the plugin to work correctly.
Bad thing though, this has worked on a ~brand new Windows 10 installation. My other machine on Win10 still fails, same windows build, same settings. So it must be some programs/drivers installed, I have to dig in deeper.

Still happening, Windows 10 brand new installation and getting this error. Log files
ugh.zip
attached. I've tried uninstalling and reinstalling multiple times as well as restarting computer etc.

Was this page helpful?
0 / 5 - 0 ratings