Closed LanceMcCarthy closed 6 years ago
@LanceMcCarthy Thanks for reporting this. We're checking with some folks on the installer team to see if we can figure out what went wrong.
I just realized that I'm primarily a desktop / mobile dev and I don't have an ASP.NET workload installed on this PC. Would this happen?
@LanceMcCarthy The error you are seeing indicates an installer engine problem (likely not Live Share related per-se, but we'll want to take a look anyway). The installer team got back to us and asked if you could run https://aka.ms/vscollect/ and then send us %temp%\vslogs.zip
The logs are too big for an email. You might be able to DM it us on Slack or email a OneDrive/Google Drive link to vsls-feedback@microsoft.com and we'll pass it along.
Sorry for the trouble!
Sorry for the delay, should I run vscollect after a newly attempted install?
@LanceMcCarthy Yeah that would be ideal.
Turns out it was only 8MB, so I just dropped it here instead.
@LanceMcCarthy Perfect - Passed it along to the installer team. Will let you know what we hear.
@LanceMcCarthy Out of curiosity, @mjcavallari was wondering if you had already installed a different version of the Live Share on one or both of your VS instances when you got this error. We're trying to track down how you got into this state.
@mjcavallari My first attempt at installing (as soon as I got the acceptance email) presented with the failed install.
It's possible that the initial install attempt successfully installed to one instance and failed on the 2nd one, then I attempted again with a newer version before doing VS collect.
Just to confirm, I checked both VS instances' Help > About VS
dialogs and do not see Live Share listed as an installed extension.
@LanceMcCarthy Can you please confirm that if you go to 'Tools | Extensions and Updates' that you do not see the Live Share extension installed?
Do you see any of the LiveShare extension files installed under Common7\IDE\Extensions? Specifically can you find Microsoft.VisualStudio.LiveShare.Tasks.dll? It's installed to Common7\IDE\Extensions\3pr2vwuf.mnc on my machine.
If you find the files installed, the extension is installed but VS isn't seeing it. If that's true you can force VS to rebuild it's cache of installed extensions. If the files are installed on disk, can you please try the following:
@Michael-Eng Neither instance's Extensions dialog shows it as installed, and I could not locate Microsoft.VisualStudio.LiveShare.Tasks.dll in either installation's Common7 folder:
In this case, it sounds like the extension is not installed on disk and as a result VS does not see it. However, the VS installer thinks it is installed. I think Matt (@mjcavallari) is the right person to offer insight into this one.
I just tried installing again with the latest VSIX available from the gallery. This time I looked at the log and noticed something insteresting:
When it iterates VS installations, there are two occurrences where it checks to see if the extension is already installed:
4/18/2018 5:25:15 PM - The extension with ID 'Microsoft.VisualStudio.LiveShare' is not installed to Visual Studio Enterprise 2017.
However, when it gets to the VS Preview version, we get the following output:
4/18/2018 5:25:16 PM - The extension with ID 'Microsoft.VisualStudio.LiveShare' is not installed to Visual Studio Community 2017 Preview.
4/18/2018 5:25:23 PM - System.ArgumentException: An item with the same key has already been added.
Could this just be a problem with VS Preview?
This gave me an idea to try and isolate the extension's installation to only one VS2017 instance at a time.
So I used the Extensions and Updates
dialog to search for and install the extension instead of a vsix downloaded from the gallery.
To my surprise, it detected that an installation exists even though the DLL was not located in the Extensions folder when I search for it directly.
aaand success:
Now I'm going to try and do the same thing for VS2017 Preview.
Were you able to install it into both instances of VS? It's possible that when you went through the VS Extensions and Updates dialog a newer version of the extension was downloaded from the marketplace and installed and the install was successful because the extension had a higher version than the one that's 'supposed' to be already installed.
@Michael-Eng I think I may have another clue for you, when searching for the extension in the VSPreview's Extensions and Updates dialog, there is no search result.
Does this mean the extension doesn't support VS Preview?
One more weird thing I noticed.
Now that I was able to install it to VS 2017 Enterprise, I went to my other development PC (where I've never attempted to install before) and the installer popped a "Modify" option instead of "Install"
Is anything being written to VS roaming settings?
The vsixinstaller always shows Modify, because the command line can contain both vsixes to install and uninstall so the button text always shows Modify.
Not sure about why it doesn't show up in the dialog. I know that Live Share will not show up in the list if (a) it cannot be installed on that version of VS or (b) if we think it's already installed.
In any case, I didn't plan on using this with VSPreview anyways, so I'll mark this as closed. Thank you for the help.
If there's anything else I can do to help provide feedback for this, just let me know.
I'm unable to use the VS Feedback Tool due to the nature of the issue (it doesn't install), so I'll report the details here.
Environment
Note: I also have VS2017 Preview installed as well, here's a screenshot:
Steps to Reproduce / Scenario:
Log