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

VS Code x86 - No Sign In and Share Button #102

Closed
LmKupke opened this issue Feb 16, 2018 · 35 comments
Closed

VS Code x86 - No Sign In and Share Button #102

LmKupke opened this issue Feb 16, 2018 · 35 comments

Comments

@LmKupke
Copy link

LmKupke commented Feb 16, 2018

Product and Version [VS/VSCode]: VSCode
OS Version [macOS/Windows]: Windows 10
Live Share Extension Version: 0.2.146
Target Platform or Language [e.g. Node.js]: Node.js

Steps to Reproduce / Scenario:

  1. When opening VSCode on computer Output from Visual Studio Live Share reads:
[Client I] Trace log: C:\Users\lkupke\AppData\Local\Temp\VSFeedbackVSRTCLogs\20180216_195153_VSCode.log
[Client I] Did not find user settings at C:\Users\lkupke\.vs-liveshare-settings.json
[Client I] Passed version check for Windows: found 10.0.14393
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\lkupke\.vscode\extensions\ms-vsliveshare.vsliveshare-0.2.146\dotnet_modules\'.
[Client.Agent I] Agent terminated with exit code: 2147516547 and signal null

I am unable to get the Sign In button on the bottom screen. Is there some dependency that I need for my computer?

@srivatsn
Copy link

The extension on first run should be downloading the dotnet-runtime and copying it to this dotnet_modules folder. Can you check if hostpolicy.dll is present anywhere under C:\Users\lkupke\.vscode\extensions\ms-vsliveshare.vsliveshare-0.2.146\dotnet_modules\. It's supposed to get unzipped into a subfolder and then moved over.

@lostintangent
Copy link
Member

@LmKupke Could you run the following command and then drag-and-drop the resulting files.txt file into a response to this issue? dir /s /b /a:d > files.txt. That will allow us to see what the contents of your Live Share extension looks like.

@LmKupke
Copy link
Author

LmKupke commented Feb 16, 2018

@srivatsn I checked the folder and didn't see any hostpolicy.dll in the folder and no zipped files as well.

@lostintangent what directory should I be executing this command from the ms-vsliveshare?

@lostintangent
Copy link
Member

@LmKupke Oops, apologies for forgetting to ask that. Could you run that command from the C:\Users\lkupke\.vscode\extensions\ms-vsliveshare.vsliveshare-0.2.146\dotnet_modules\ folder?

@LmKupke
Copy link
Author

LmKupke commented Feb 16, 2018

@lostintangent I ran the command and got an empty files.txt file.

$ dir /s /b /a:d > files.txt
dir: cannot access '/s': No such file or directory
dir: cannot access '/b': No such file or directory
dir: cannot access '/a:d': No such file or directory

I executed the command from the /c/users/lkupke/.vscode/extensions/ms-vsliveshare.vsliveshare-0.2.146/dotnet_modules

@lostintangent
Copy link
Member

@LmKupke Ah OK, are you using Windows Subsystem for Linux? The previous command was for use with cmd.exe, so that wouldn't work with Bash, which explains the error you saw. If so, could you run du | awk '{print $2}' > files.txt from the same directory?

@LmKupke
Copy link
Author

LmKupke commented Feb 16, 2018

@lostintangent

Ran the command here is the file I got
files.txt

@LmKupke
Copy link
Author

LmKupke commented Feb 16, 2018

files (1).txt
Here is the same file formatted for you

@jrobber
Copy link

jrobber commented Feb 18, 2018

I had the same problem on windows 10 as well (no problem on my mac). To fix it I :

  • Made sure my version of VS Code was up to date
  • Un-installed the extension from VS Code
  • Closed VS Code completely
  • Re-started VS Code as administrator
  • Re-installed the extension

@lostintangent
Copy link
Member

lostintangent commented Feb 18, 2018

@jrobber That was how @LmKupke was able to get it working as well, so thanks for letting us know that unblocked you.

It appears like we have an uninstall/update problem with our VS Code extension, specifically on Windows. We’re continuing to investigate it, and will use this issue to track it.

@srivatsn
Copy link

@jrobber, the first install that had the issue- was that a fresh install or did you upgrade from an older version?

@conner-fallone
Copy link

conner-fallone commented Feb 19, 2018

Are you by any chance using a vs code workspace? i'm having the same issue too, but i don't seem to be getting the fatal error issue, only that the agent is terminating. It seems to be working for me though if I don't use a workspace.

@saraoneal
Copy link

saraoneal commented Feb 19, 2018

I'm getting the following error, and uninstalling and reinstalling as admin didn't help. I'm not using a workspace either.

[Client I] Did not find user settings at C:\Users\user\.vs-liveshare-settings.json
[Client I] Passed version check for Windows: found 6.3.9600
[Client I] Installing dependencies for Live Share...
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\user\.vscode\extensions\ms-vsliveshare.vsliveshare-0.2.146\dotnet_modules'.
[Client.Agent I] Agent terminated with exit code: 2147516547 and signal null

@LmKupke
Copy link
Author

LmKupke commented Feb 19, 2018

Hi there. If you are having the same trouble I did with VS live share preview the solution that worked for me is as follows:

  1. Uninstall the extension from VS Code
  2. Reload VS code
  3. Go to the path the path that vs code extensions install with file explorer. For me that was:
    C:/users/lkupke/.vscode/extensions
  4. With the GUI delete the folder
    ms-liveshare-
  5. Close VS Code and reopen
  6. Install the VS Live Share Extension again
  7. Reload VS Code

This allowed me the sign in button at the bottom of VS Code

@LmKupke LmKupke closed this as completed Feb 19, 2018
@saraoneal
Copy link

I get the same error.

@LmKupke
Copy link
Author

LmKupke commented Feb 19, 2018

@saraoneal did you follow the instructions above? In your case go to C:/Users/user/.vscode/exstensions/

And delete the folder ms-vsliveshare.vsliveshare

@LmKupke
Copy link
Author

LmKupke commented Feb 19, 2018

Then try to add the extension again and reload vscode

@srivatsn
Copy link

@saraoneal, can you please run the commands above to get the list of files in the extensions\ms.liveshare directory? The install step is opposed to unzip and move some files and I want to figure out which step failed.

@saraoneal
Copy link

Yes, I followed the steps you suggested exactly. Here is the file generated from the command above.

files.txt

@srivatsn
Copy link

Thanks. Looks like the dotnet runtime did not get unzipped at all for some reason. Can you please find the log file under %temp%\vsfeedbackvsrtclogs? The most recently modified file would correspond to the latest session.

That log file might tell us if it thinks it's unzipped the files or if something else went wrong

@saraoneal
Copy link

Here's the latest log file.

20180219_164803_VSCode.log

@srivatsn
Copy link

That log looks strange.. it says it's starting to install dependencies but no messages after that. One more request - could you please look to see if there's a file called install.lock in the extensions\ms.liveshare directory ( the command above listerd only directories).

@saraoneal
Copy link

Yes, that file is there.

@ncarandini
Copy link

ncarandini commented Feb 20, 2018

I've the same problem, and prior to try the suggested workarounds I post here the files that maybe you'd like to have for investigation:
20180220_114538_VSCode.log
files.txt

Update:

I've tried both suggested workarounds but without success.
Here is my last VSCode.log:
[2018-02-20 12:18:55.739 Client I] Did not find user settings at C:\Users\ncara.vs-liveshare-settings.json
[2018-02-20 12:18:55.745 Client I] Passed version check for Windows: found 10.0.17101
[2018-02-20 12:18:55.751 Client I] Installing dependencies for Live Share...
[2018-02-20 12:18:56.230 Client.Agent I] Agent terminated with exit code: 2147516547 and signal null

@LmKupke I think this issue should be reopened.

@lostintangent lostintangent reopened this Feb 20, 2018
@ncarandini
Copy link

ncarandini commented Feb 20, 2018

OK, thanks to @srivatsn I've found that my instance of VS Code was indeed a 1.20.1 version but a x86 one, so I've uninstalled it and installed the x64 version, and now the plugin do works.

These are the steps I've followed:

  1. I've uninstalled the 32 bit version of VS Code;
  2. I've manually deleted my user .vscode folder (in my case, C:\Users\ncara\.vscode);
  3. I've installed the x64 version of VS Code (the actual version, as I'm writing, is 1.20.1);
  4. From the Extensions pane of VS Code, I've installed the C# plugin and restarted VS Code (optional, but this is what I did);
  5. From the Extensions pane of VS Code, I've installed the VS Live Share plugin and restarted VS Code.

On restarting, I finally saw the Finishing VS Live Share installation (downloading)... message and eventually the VS Live Share items on the status bar:

image

This solved my issue, hope this can help.

@lostintangent
Copy link
Member

@ncarandini Eureka! I just tried reproing this and it happens 100% of the time using VS Code x86 on Windows. That appears to be the specific problem.

@LmKupke Which architecture of VS Code are you using? x86 or x64?

@saraoneal
Copy link

I can confirm that I am using the x86 version of VS Code. I can't upgrade at the moment, but will try soon.

@lostintangent
Copy link
Member

@saraoneal Thanks for confirming that! We're going to prepare a fix for x86 VS Code on Windows, since we can verify that is a source of at least some user's problems, but it would be awesome to confirm that you are unblocked once switching to x64 VS Code.

@lostintangent
Copy link
Member

@LmKupke Is it possible that you were using the x32/86 version of VS Code when you were hitting this bug, and you actually switched/upgraded to x64 when Live Share started working? When running the x32/86 version of VS Code, it will actually ask you if you'd like to upgrade to x64, so I just wanted to check if you happened to do that.

@Chuxel Chuxel changed the title No Sign In and Share Button VS Code x86 - No Sign In and Share Button Feb 20, 2018
@saraoneal
Copy link

@lostintangent this absolutely fixed my issue! Thank you all so much!

@LmKupke
Copy link
Author

LmKupke commented Feb 20, 2018

@lostintangent Unfortunately I am unable to check now, because my work computer hard drive crashed. :(

I lost all my applications and data. However once I am situated I can try again and see if I run into the same problems others are having

@Chuxel
Copy link
Member

Chuxel commented Feb 20, 2018

@LmKupke @saraoneal @ncarandini We just published an updated VS Code extension that should resolve this issue (0.2.151). Apologies for the problem!! Let us know if you (or anyone else) running 32-bit VS Code are still seeing problems with this update.

@saraoneal
Copy link

Another employee at our office upgraded his extension and he can now sign-in and attempt to share as well! Thank you all so much for the help.

@Chuxel
Copy link
Member

Chuxel commented Feb 21, 2018

Great! Closing as fixed. We will re-open if anyone hits a problem here.

@Chuxel Chuxel closed this as completed Feb 21, 2018
@dmongit
Copy link

dmongit commented May 18, 2018

FYI, If any one is still having this issue, check your user settings. I had a user setting to hide the status bar. Ooops!

"workbench.statusBar.visible": true, is what you want.

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