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

Activating extension #4229

Closed Dhruv984 closed 2 years ago

Dhruv984 commented 3 years ago

I had not used VS Live Share in a while, but attempted to use it today only to learn that it does not work. In the VS Code "Live Share" tab, if I select any of the three "Join collaboration session...", "Start collaboration session...", or "Start read-only collaboration session..." links, nothing happens. If I click on the "Start Collaboration Session (Share)" icon at the top of the tab, I see an error notification pop up in the bottom right saying: command 'liveshare.startFromActivityBar' not found.

mfouesneau commented 3 years ago

Installation of the VS code extension works normally, but nothing works after.

Looking at the logs:

Error when starting the extension

ERR ENOENT: no such file or directory, unlink '../.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.4131/cascade.json': Error: ENOENT: no such file or directory, unlink '../.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.4131/cascade.json'

Error when trying to start a session

 ERR command 'liveshare.startFromWelcomeContent' not found: Error: command 'liveshare.startFromWelcomeContent' not found
    at w._tryExecuteCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1558:3364)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1558:3245
    at async u.open (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:18599)
    at async l.open (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:20623)

Versions:

Mac os 10.15
vs-liveshare 1.0.4131
vscode ----
Version: 1.55.2 (Universal)
Commit: 3c4e3df9e89829dce27b7b5c24508306b151f30d
Date: 2021-04-13T09:36:32.643Z (6 days ago)
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 19.6.0

I did remove the extension and its directory for a clean reinstall. This does not change the issue.

Dhruv984 commented 3 years ago

Installation of the VS code extension works normally, but nothing works after.

Looking at the logs:

Error when starting the extension

ERR ENOENT: no such file or directory, unlink '../.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.4131/cascade.json': Error: ENOENT: no such file or directory, unlink '../.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.4131/cascade.json'

Error when trying to start a session

 ERR command 'liveshare.startFromWelcomeContent' not found: Error: command 'liveshare.startFromWelcomeContent' not found
    at w._tryExecuteCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1558:3364)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1558:3245
    at async u.open (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:18599)
    at async l.open (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:20623)

Versions:

Mac os 10.15
vs-liveshare 1.0.4131
vscode ----
Version: 1.55.2 (Universal)
Commit: 3c4e3df9e89829dce27b7b5c24508306b151f30d
Date: 2021-04-13T09:36:32.643Z (6 days ago)
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 19.6.0

I did remove the extension and its directory for a clean reinstall. This does not change the issue.

SIMILAR ISSUE PLEASE HELP.

alyssajotice commented 3 years ago

Hey @Dhruv984 and @mfouesneau, sorry about the issue you're having and thanks for reaching out to Live Share. Can you start by trying Live Share on the most recent Insiders build? https://code.visualstudio.com/insiders/ Another thing to try is running the command Live Share: Repair Installation from the command palette. Sometimes these errors happen when the agent is not properly activating. Can you check your activity monitor to see if there is a program running called 'vsls-agent'?

mfouesneau commented 3 years ago

I used the repair installation mentioned by @alyssajotice, it worked. I did not try the insider's build.

This solution should be pinned/promoted. I never saw this command anywhere.

Davsterl commented 3 years ago

@Dhruv984 , please let us know if the repair functionality is working well for you as well.

Dhruv984 commented 3 years ago

No it didn't work i have tried almost everything.....but live share does not show up on my status bar......and when i click share ....... nothing happens.

On Wed, 28 Apr 2021, 6:21 am Davsterl, @.***> wrote:

@Dhruv984 https://github.com/Dhruv984 , please let us know if the repair functionality is working well for you as well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/live-share/issues/4229#issuecomment-828058716, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOMWTXVAN6VWP6V5WC2QZLTK5LYLANCNFSM43GWM4EA .

frankenstein91 commented 2 years ago

Hi all I have the same error.

OS: Arch Linux x86_64

code --version
1.66.2
dfd34e8260c270da74b5c2d86d61aee4b6d56977
x64

repair installation did not help

[18834:0421/133351.051495:INFO:CONSOLE(610)] "%cTRACE color: #888 CommandService#executeCommand liveshare.startFromWelcomeContent", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (610)
[18834:0421/133351.052289:INFO:CONSOLE(610)] "%cTRACE color: #888 onWillActivateByEvent:  *", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (610)
[18834:0421/133351.064620:INFO:CONSOLE(610)] "%c  ERR color: #f33 command 'liveshare.startFromWelcomeContent' not found: Error: command 'liveshare.startFromWelcomeContent' not found
    at v._tryExecuteCommand (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:1680:3532)
    at v.executeCommand (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:1680:3414)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async i.open (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:610:62178)
    at async s.open (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:610:63952)", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (610)
[main 2022-04-21T11:33:51.277Z] menubarService#updateMenubar 1
[18834:0421/133352.070563:INFO:CONSOLE(610)] "%cTRACE color: #888 CommandService#executeCommand liveshare.startFromWelcomeContent", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (610)

ps aux shows no vsls-agent

mfouesneau commented 2 years ago

Did you try the repair installation call?

frankenstein91 commented 2 years ago

@mfouesneau more than one time :( also reinstalled vscode from AUR and the plug-in from the market place

xgungnir commented 2 years ago

Hi all I have the same error.

OS: Arch Linux x86_64

code --version
1.66.2
dfd34e8260c270da74b5c2d86d61aee4b6d56977
x64

repair installation did not help

[18834:0421/133351.051495:INFO:CONSOLE(610)] "%cTRACE color: #888 CommandService#executeCommand liveshare.startFromWelcomeContent", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (610)
[18834:0421/133351.052289:INFO:CONSOLE(610)] "%cTRACE color: #888 onWillActivateByEvent:  *", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (610)
[18834:0421/133351.064620:INFO:CONSOLE(610)] "%c  ERR color: #f33 command 'liveshare.startFromWelcomeContent' not found: Error: command 'liveshare.startFromWelcomeContent' not found
    at v._tryExecuteCommand (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:1680:3532)
    at v.executeCommand (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:1680:3414)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async i.open (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:610:62178)
    at async s.open (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:610:63952)", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (610)
[main 2022-04-21T11:33:51.277Z] menubarService#updateMenubar 1
[18834:0421/133352.070563:INFO:CONSOLE(610)] "%cTRACE color: #888 CommandService#executeCommand liveshare.startFromWelcomeContent", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (610)

ps aux shows no vsls-agent

I have the same error as you post in arch linux. But I have some other errors showed before:

Globalization.Invariant` to true if you want to run with no globalization support.at System.Environment.FailFast(System.String)

My workaround is setting DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 in env and after that live share works.

frankenstein91 commented 2 years ago

@ndxx can you please tell my where you set it for code? Global or in the starter?

gncnpk commented 2 years ago

@frankenstein91 I did DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 code in my terminal to get Live Share working.

xgungnir commented 2 years ago

@frankenstein91 For me I just set it in .profile file with export. You can also set it in your .bashrc or .zshrc as well.

It seems that vscode with this extension does not read the icu package which has been already installed. I have no idea about the root cause of it. https://archlinux.org/packages/?sort=&q=icu

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.
github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically in 2 days.

derekbekoe commented 2 years ago


We’ve made improvements in this area since this issue was filed. We believe this may have improved your experience and are closing this issue. If this issue still persists for you, please comment on the issue and let us know. Thank you.