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

Live Share does not start on Manjaro Linux(and Arch Linux?) #4650

Closed
WinLinux1028 opened this issue May 1, 2022 · 9 comments
Closed

Live Share does not start on Manjaro Linux(and Arch Linux?) #4650

WinLinux1028 opened this issue May 1, 2022 · 9 comments

Comments

@WinLinux1028
Copy link

・System configuration
Product and Version: VSCode 1.66.2
OS Version: Manjaro Linux testing branch
Live Share Extension Version: v1.0.5527

・Steps to Reproduce / Scenario

  1. Install visual-studio-code-bin from AUR.
  2. Install Live Share extension.
  3. Try to share or join, but there is no response.

・ Workarounds

  1. Install icu69-bin from AUR.
  2. Open VSCode, press Ctrl+Shift+P, and type "Live Share: Repair Installation".
  3. Restart VSCode.
  4. Live Share works fine.

・ Log
There is nothing in the normal log, but there is a log when I tried "Live Share: Repair Installation".

[2022-05-01 04:55:39.722 Client E] Error expected: Error: Agent terminated with exit code: 0 and signal null: Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.String.ToLowerInvariant()
   at System.Text.EncodingHelper.GetCharset()
   at System.Text.EncodingHelper.GetEncodingFromCharset()
   at System.ConsolePal.GetConsoleEncoding()
   at System.Console+<>c.<get_OutputEncoding>b__19_0()
   at System.Threading.LazyInitializer.EnsureInitializedCore[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
   at System.Threading.LazyInitializer.EnsureInitialized[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
   at System.Console.get_OutputEncoding()
   at System.Console.CreateOutputWriter(System.IO.Stream)
   at System.Console+<>c.<get_Out>b__26_0()
   at System.Threading.LazyInitializer.EnsureInitializedCore[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
   at System.Threading.LazyInitializer.EnsureInitialized[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
   at System.Console.get_Out()
   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication..ctor(Boolean)
   at Microsoft.Cascade.Agent.Program..ctor()
   at Microsoft.Cascade.Agent.Program.Main(System.String[])
[2022-05-01 04:55:39.773 Client E] Unhandled error in 'liveshare.exportLogs' command: > object #0: Canceled
Canceled: Canceled
    at Object.N [as canceled] (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:5:1172)
    at /opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:89:9089
    at Array.forEach (<anonymous>)
    at i.dispose (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:89:9037)
    at E.terminate (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:94:839)
    at d (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:36250)
    at Socket.<anonymous> (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:33946)
    at Socket.emit (node:events:402:35)
    at Pipe.<anonymous> (node:net:687:12)
[2022-05-01 04:55:39.774 Client E] Unhandled error in 'liveshare.installRecovery' command: > object #0: Canceled
Canceled: Canceled
    at Object.N [as canceled] (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:5:1172)
    at /opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:89:9089
    at Array.forEach (<anonymous>)
    at i.dispose (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:89:9037)
    at E.terminate (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:94:839)
    at d (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:36250)
    at Socket.<anonymous> (/opt/visual-studio-code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:33946)
    at Socket.emit (node:events:402:35)
    at Pipe.<anonymous> (node:net:687:12)

・ Screenshots
image

@patheticGeek
Copy link

patheticGeek commented May 2, 2022

Just install icu69 and it'll work

yay -S icu69

@alyssajotice alyssajotice self-assigned this May 2, 2022
@jvesouza
Copy link

jvesouza commented May 3, 2022

Another solution I found on the internet that worked for me was to install the icu69 package.

yay -Sicu69

@adocampo
Copy link

Another solution I found on the internet that worked for me was to install the icu69 package.

yay -S icu69

That worked here, thank you @jvesouza

I don't know why stopped working since last time I used, months ago, and it seems if we don't want to install that package, we should be able to do it by setting System.Globalization.Invariant to true, but as I don't know where to set that, I had to install icu69 package.

@alyssajotice
Copy link
Contributor

Hi all, I updated the install script to include icu69 for Arch Linux. This should fix the issue. Thanks for the contributions!

Here is a link to the command and script: https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#install-linux-prerequisites.

@exxnnonymous
Copy link

exxnnonymous commented May 28, 2022

This worked for me >
yay -S icu69-bin

@Chadyka
Copy link

Chadyka commented Jun 10, 2022

error: target not found: icu69

is still happening when I try the prerequisite installation (after installing it from AUR with yay) but

Open VSCode, press Ctrl+Shift+P, and type "Live Share: Repair Installation".

fixes the plugin and it seems usable so far

@davidpacios
Copy link

i can install yay -S icu69, but when i use the script i keep having the same error:
image

Also i tryed to use Open VSCode, press Ctrl+Shift+P, and type "Live Share: Repair Installation" and it says : no found command and also on extensions dont have anyone of microsft

@davidpacios
Copy link

I just solve the problem with yay -S visual-studio-code-bin. Important take this option: "visual-studio-code-bin".

Thank u all

@jrespeto
Copy link

jrespeto commented Aug 7, 2022

Was having the same issues today - I know this is closed, but still having an issue with this.

Local system: mac

Remote system: arch
Not able to start live share on the remote-ssh system.

I think the live server extension needs to check if icu69 is installed and if not have a verbose alert about the missing dep.

Also since icu69 is an AUR package it takes a few extra steps to install.


My solution:

Since the remote system was a tmp system I also needed to set up a user account.

pacman -Sy 
pacman -S git base-devel --noconfirm

set wheel group to sudo with no password

sed -i 's~# %wheel ALL=(ALL:ALL) NOPASSWD: ALL~%wheel ALL=(ALL:ALL) NOPASSWD: ALL~' /etc/sudoers

setup a user

useradd -m trizen -G wheel

Install trizen

su - trizen 
git clone https://aur.archlinux.org/trizen.git
cd trizen
makepkg -si

Install icu69 so vscode - live share works.

trizen -S icu69-bin --noconfirm

remove trizen user

userdel -r trizen 

Reset sudoers file

sed -i 's~%wheel ALL=(ALL:ALL) NOPASSWD: ALL~# %wheel ALL=(ALL:ALL) NOPASSWD: ALL~' /etc/sudoers

From here close the remote session vs-code window and reconnect to it and start a live share, live share should ask for you to login.

@alyssajotice alyssajotice removed their assignment Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants