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.27k stars 248 forks source link

cant connect to live share with c++ #3989

Open tamliad123456 opened 3 years ago

tamliad123456 commented 3 years ago

Describe what happened: when I try to connect to live share error pops up:

C++ language service is operating with reduced functionality due to a missing dependency service: Microsoft.VisualStudio.VC.ManagedPackageService.

What was your system configuration? visual studio 2019 windows 10 19042 Live Share Extension Version: 1.0.2876.1 and also 1.0.3121.0 Target Platform or Language [e.g. Node.js]: c++

Steps to Reproduce / Scenario: enter a live share link and open with visual studio 2019 you will connect but cant access any file and get the error.

image

lostintangent commented 3 years ago

@IlyaBiryukov Any thoughts here? I'm not familiar with the Connected Environment selection in the Output window.

IlyaBiryukov commented 3 years ago

I think "C++ language service is operating with reduced functionality" comes from CMakeCommandsClient.cs, and it's a red herring. Most likely some C++ service tried to get a proxy and could not because it's not a codespace. Luca may know more about this.

jonathanduncan commented 3 years ago

I would really like to know how to resolve this. This is keeping me from developing with a friend of mine.

rikardmansson commented 3 years ago

I have the same problem but with C#

GreatBarrier86 commented 3 years ago

Same here with C# as well.

LiverLord123 commented 3 years ago

Same hear with C#

tgtjam commented 3 years ago

Same problem

T1Kingu commented 3 years ago

not resolved?

Pro845627 commented 3 years ago

Same problem too with C#

efinder2 commented 3 years ago

same problem with c#

dJeePe commented 3 years ago

+1 Same for me with c#

Davsterl commented 3 years ago

@dJeePe Thank you for your feedback. Are you hitting this with the latest version of Visual Studio?

jamesatgreymetis commented 3 years ago

@dJeePe Thank you for your feedback. Are you hitting this with the latest version of Visual Studio?

Yes, I'm running the following

Microsoft Visual Studio Professional 2019 Version 16.9.5 VisualStudio.16.Release/16.9.5+31229.75 Microsoft .NET Framework Version 4.8.04084 Installed Version: Professional

Live share version 1.0.4278.0

dJeePe commented 3 years ago

Yes, VS Community 2019 Version 16.9.5 and Live Share version 1.0.4278.0

dJeePe commented 3 years ago

i've just update VS to version 16.10 .. but still the message : Visual studio is operating with reduced functionality due to one or more missing dependency services Output Channel Consumer is operating with reduced functionality due to a missing dependency service: Microsoft.VisualStudio.Shell.OutputChannelStore (0.1).

==> No intelliSense, no autocompletion, no intelliCode, no codeLens, no folding ... When i launch a build : no error in list even if the build failed 2021-03_182909

Thank you

daytonellwanger commented 3 years ago

Trying to reproduce this on VS 2019 16.10 with Live Share 1.0.4278: repro

It looks like everything is working except the red squiggles for the errors are showing up in the wrong place, and the entries in the error list are duplicated. Is that what you all or seeing? Or something else?

dJeePe commented 3 years ago

As you can see on my screen below, there is no popup (neither for the autocompletion, nor for the display on MouseOver )

2021-06-04_002802

daytonellwanger commented 3 years ago

Thanks for that! I'm not sure what's different between our setups. Could you file an issue via Help -> Send feedback -> Report a problem in Visual Studio? That will attach all sorts of useful information that can help us debug.

daytonellwanger commented 3 years ago

Are the other folks on the thread experiencing the same problem as @dJeePe , or something else?

dJeePe commented 3 years ago

I just opened it: https://developercommunity.visualstudio.com/t/In-liveShare-I-have-no-intelliSense-no/1441486

Thank you for your time.

daytonellwanger commented 3 years ago

Thanks very much for that! I think I see what's going on. Working on a fix now. Hopefully have it out in the next week or so.

daytonellwanger commented 3 years ago

It looks like we forgot to bundle one of our dependencies with the extension. The dependency is included with some workloads (e.g. C++), which is maybe why we hadn't noticed until now.

We'll have this fixed in the next release. If you want to unblock yourself before then, you can manually add the dependencies. Unzip the following file and add the two dlls to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Microsoft\LiveShare:

dependencies.zip

dJeePe commented 3 years ago

I tried to put the DLLs in the directory (I couldn't wait for the next release, I was too excited) and it works like on your demo. (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDEExtensions\Microsoft\LiveShare for me because I use the community version)

thank you Dayton for your time !

daytonellwanger commented 3 years ago

Awesome! Thanks for verifying that. I'll close this issue once we ship the fix. Do let us know if you encounter any other problems. Thank you so much for helping us get to the bottom of this.

Davsterl commented 3 years ago

Thank you @dJeePe ! We really appreciate both the feedback and the help getting to the bottom of it!

DavidLazarescu commented 3 years ago

experiencing

exactly the same!

DavidLazarescu commented 3 years ago

It looks like we forgot to bundle one of our dependencies with the extension. The dependency is included with some workloads (e.g. C++), which is maybe why we hadn't noticed until now.

We'll have this fixed in the next release. If you want to unblock yourself before then, you can manually add the dependencies. Unzip the following file and add the two dlls to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Microsoft\LiveShare:

dependencies.zip

For me this doesnt work, me and my friend, we both added it to the dictionary but its not working. Its the same problem as before

daytonellwanger commented 3 years ago

@Creapermann what exactly is broken for you? Which language features in which language?

DavidLazarescu commented 3 years ago

@Creapermann what exactly is broken for you? Which language features in which language?

Thanks for your fast reply! My problem is that the ppl I live share with don't get errors marked, the ones who connect get this error:

Output Channel Consumer is operating with reduced functionality due to a missing dependency service: Microsoft.VisualStudio.Shell.OutputChannelStore (0.1).

The problem is exactly the same which was discussed in the comments above

We are using C++, I went through the solution I found here, added the .dll files but nothing changed. My friend and I are trying for 2 days already, we tried changing the Live Share settings and stuff like this as well.

What exact info do you need but the language?

AhmedMostafa16 commented 3 years ago

@Creapermann what exactly is broken for you? Which language features in which language?

Thanks for your fast reply! My problem is that the ppl I live share with don't get errors marked, the ones who connect get this error:

Output Channel Consumer is operating with reduced functionality due to a missing dependency service: Microsoft.VisualStudio.Shell.OutputChannelStore (0.1).

The problem is exactly the same which was discussed in the comments above

We are using C++, I went through the solution I found here, added the .dll files but nothing changed. My friend and I are trying for 2 days already, we tried changing the Live Share settings and stuff like this as well.

What exact info do you need but the language?

This happens to me too, @daytonellwanger

daytonellwanger commented 3 years ago

Are you able to connect to the session? When you're in the session, are you able to co-edit? Do some language features work, or are they all broken? A non-exhaustive list of language features: hover, colorization, go to definition, find all references, completion.

DavidLazarescu commented 3 years ago

Are you able to connect to the session? When you're in the session, are you able to co-edit? Do some language features work, or are they all broken? A non-exhaustive list of language features: hover, colorization, go to definition, find all references, completion.

We are able to connect to the session and we can edit code all fine, we can also see the other one edit code. Intellisense works, so i still get stuff recommended and i didnt miss any other language feature til now but error recognition.

daytonellwanger commented 3 years ago

Thanks! So the main issue is that you're getting this notification?

Output Channel Consumer is operating with reduced functionality due to a missing dependency service: Microsoft.VisualStudio.Shell.OutputChannelStore (0.1).

The actual functionality of Live Share is OK (with the exception of the error list not working)?

DavidLazarescu commented 3 years ago

Thanks! So the main issue is that you're getting this notification?

Output Channel Consumer is operating with reduced functionality due to a missing dependency service: Microsoft.VisualStudio.Shell.OutputChannelStore (0.1).

The actual functionality of Live Share is OK (with the exception of the error list not working)?

exactly

daytonellwanger commented 3 years ago

Great! Thanks so much for clarifying. The fix posted above was for a separate issue. The error notification you're getting doesn't actually stem from Live Share, but another VS component (though it is only raised when joining the Live Share session). There's an open feedback ticket on VS Developer Community that you can track for updates.

DavidLazarescu commented 3 years ago

Great! Thanks so much for clarifying. The fix posted above was for a separate issue. The error notification you're getting doesn't actually stem from Live Share, but another VS component (though it is only raised when joining the Live Share session). There's an open feedback ticket on VS Developer Community that you can track for updates.

so there is no fix for it yet?

AhmedMostafa16 commented 3 years ago

Great! Thanks so much for clarifying. The fix posted above was for a separate issue. The error notification you're getting doesn't actually stem from Live Share, but another VS component (though it is only raised when joining the Live Share session). There's an open feedback ticket on VS Developer Community that you can track for updates.

@daytonellwanger If I used Insiders version of LiveShare, would it be fixed?

daytonellwanger commented 3 years ago

Correct. Is the only issue that it's annoying? Or is there some other problem it's causing?

daytonellwanger commented 3 years ago

@AhmedMostafa16 what do you mean the Insiders version of Live Share? I wasn't aware that we had one 😁.

DavidLazarescu commented 3 years ago

Correct. Is the only issue that it's annoying? Or is there some other problem it's causing?

This is the only issue it's causing, or at least from what i saw til now.

Do you know if there is any way of working together on the same project live? Me and my friend would really like to use it or at least something similar

AhmedMostafa16 commented 3 years ago

@AhmedMostafa16 what do you mean the Insiders version of Live Share? I wasn't aware that we had one 😁.

In Visual Studio's Settings of LiveShare, there is an option called "Features". We can change it from Stable to Insiders.

daytonellwanger commented 3 years ago

@Creapermann , can't you use Live Share after dismissing the error?

@AhmedMostafa16 , ahhh I see. Unfortunately changing that setting won't fix this issue - it's not actually a Live Share issue, so we'll have to wait for the appropriate VS component to fix it.

DavidLazarescu commented 3 years ago

@Creapermann , can't you use Live Share after dismissing the error?

@AhmedMostafa16 , ahhh I see. Unfortunately changing that setting won't fix this issue - it's not actually a Live Share issue, so we'll have to wait for the appropriate VS component to fix it.

Wym with after dismissing the error?

daytonellwanger commented 3 years ago

If I'm understanding correctly, Live Share is working fine for you, you're just receiving an error notification on the guest. Can't you just close the error notification?

DavidLazarescu commented 3 years ago

If I'm understanding correctly, Live Share is working fine for you, you're just receiving an error notification on the guest. Can't you just close the error notification?

Its not just the error i get, the error detection is also not working

AhmedMostafa16 commented 3 years ago

If I'm understanding correctly, Live Share is working fine for you, you're just receiving an error notification on the guest. Can't you just close the error notification?

plus we can't use any feature like debugging, IntelliSense, etc.

DavidLazarescu commented 3 years ago

If I'm understanding correctly, Live Share is working fine for you, you're just receiving an error notification on the guest. Can't you just close the error notification?

plus we can't use any feature like debugging, IntelliSense, etc.

intellisense is working fine for me

daytonellwanger commented 3 years ago

@Creapermann ah, I see. Let's track that issue over at #4339.

@AhmedMostafa16 it sounds like you're encountering a separate issue. Did you go through the steps above of downloading the missing dependencies and manually placing them alongside Live Share?

AhmedMostafa16 commented 3 years ago

@Creapermann ah, I see. Let's track that issue over at #4339.

@AhmedMostafa16 it sounds like you're encountering a separate issue. Did you go through the steps above of downloading the missing dependencies and manually placing them alongside Live Share?

As you mentioned previously, this is not a problem in LiveShare. I have tried the steps above of downloading the missing dependencies and manually placing them but in vain. I will just wait. Thank you for your time, @daytonellwanger

Baccanno commented 2 years ago

Hey there, still the same here. Any update ? image VS 2019 16.11.15 image