none
Error Visual Studio Community 2019 after adding package C++ RRS feed

  • Question

  • Hello!

    Im from Poland. When I want to open my C ++ project, I get an error. How to repair?

      <entry>
        <record>691</record>
        <time>2019/11/05 22:23:04.211</time>
        <type>Information</type>
        <source>VisualStudio</source>
        <description>Begin package load [IntelliCodeCppPackage]</description>
        <guid>{20E71487-2515-4B18-8A25-F6365DC0353F}</guid>
      </entry>
      <entry>
        <record>692</record>
        <time>2019/11/05 22:23:06.016</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>SetSite failed for package [IntelliCodeCppPackage]Source: &apos;Microsoft.VisualStudio.Composition&apos; Description: Oczekiwano nast&#x0119;puj&#x0105;cej liczby eksport&#x00F3;w: 1 z nazw&#x0105; kontraktu &#x201E;Microsoft.VisualStudio.VC.RecommendationProvider.IRecommendationProvider&#x201D;, ale po zastosowaniu odpowiednich ogranicze&#x0144; znaleziono 0.&#x000D;&#x000A;Microsoft.VisualStudio.Composition.CompositionFailedException: Oczekiwano nast&#x0119;puj&#x0105;cej liczby eksport&#x00F3;w: 1 z nazw&#x0105; kontraktu &#x201E;Microsoft.VisualStudio.VC.RecommendationProvider.IRecommendationProvider&#x201D;, ale po zastosowaniu odpowiednich ogranicze&#x0144; znaleziono 0.&#x000D;&#x000A;   w Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)&#x000D;&#x000A;   w Microsoft.VisualStudio.Composition.ExportProvider.GetExports(String contractName, ImportCardinality cardinality, Type type, Type metadataViewType, IMetadataViewProvider&amp; metadataViewProvider)&#x000D;&#x000A;   w Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)&#x000D;&#x000A;   w Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)&#x000D;&#x000A;   w Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T](String contractName)&#x000D;&#x000A;   w Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T]()&#x000D;&#x000A;   w Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]()&#x000D;&#x000A;   w Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()&#x000D;&#x000A;   w Microsoft.VisualStudio.IntelliCode.Cpp.IntelliCodeCppPackage.&lt;InitializeIntelliCodeCppAsync&gt;d__4.MoveNext()&#x000D;&#x000A;--- Koniec &#x015B;ladu stosu z poprzedniej lokalizacji, w kt&#x00F3;rej wyst&#x0105;pi&#x0142; wyj&#x0105;tek ---&#x000D;&#x000A;   w System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   w Microsoft.VisualStudio.IntelliCode.Cpp.IntelliCodeCppPackage.&lt;InitializeAsync&gt;d__3.MoveNext()&#x000D;&#x000A;--- Koniec &#x015B;ladu stosu z poprzedniej lokalizacji, w kt&#x00F3;rej wyst&#x0105;pi&#x0142; wyj&#x0105;tek ---&#x000D;&#x000A;   w System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   w Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass19_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- Koniec &#x015B;ladu stosu z poprzedniej lokalizacji, w kt&#x00F3;rej wyst&#x0105;pi&#x0142; wyj&#x0105;tek ---&#x000D;&#x000A;   w System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   w Microsoft.VisualStudio.Threading.JoinableTask.&lt;JoinAsync&gt;d__68.MoveNext()&#x000D;&#x000A;--- Koniec &#x015B;ladu stosu z poprzedniej lokalizacji, w kt&#x00F3;rej wyst&#x0105;pi&#x0142; wyj&#x0105;tek ---&#x000D;&#x000A;   w System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   w Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   w Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   w Microsoft.VisualStudio.Services.VsTask.GetResult()</description>
        <guid>{20E71487-2515-4B18-8A25-F6365DC0353F}</guid>
        <hr>80131500</hr>
        <errorinfo></errorinfo>
      </entry>
      <entry>
        <record>693</record>
        <time>2019/11/05 22:23:06.086</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>End package load [IntelliCodeCppPackage]</description>
        <guid>{20E71487-2515-4B18-8A25-F6365DC0353F}</guid>
        <hr>80131500</hr>
        <errorinfo></errorinfo>
      </entry>

    Tuesday, November 5, 2019 10:51 PM

Answers

  • Hi deser1,

    Welcome to MSDN forum.

    According to this log, the IntelliCode component could be loaded normally. Please have a try these suggestions, then check if it could work.

    • go to "C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\16.0_ef41bc86, then delete all files in ComponentModelCache folder
    • Open visual studio installer, then repair your visual studio
    • If repairing doesn't work, please Modify -> Individual components, then disable the "intelliCode"                                                                                             

    Look forward to your feedback.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, November 6, 2019 2:49 AM
  • Hi deser1,

    I'm glad to hear that it could help you.

    >>but I don't know where to do Visual Studio restart in the future to know.

    Did you mean the cache path will changed, and you would not find it in the future? If so, the cache path is under "C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\[version mumber]\" from VS 2013 to VS 2019. So it should be here in the future.

    And if you worried that this issue still happens in the future, please feel free to contact us, we will try our best to provide solution with you.

    BTW, please mark the helpful reply as answer, which will be beneficial to other members with same issue, thank you for cooperation.

    Have a nice day.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    • Marked as answer by deser1 Friday, November 8, 2019 10:35 PM
    Thursday, November 7, 2019 9:20 AM

All replies

  • Hi deser1,

    Welcome to MSDN forum.

    According to this log, the IntelliCode component could be loaded normally. Please have a try these suggestions, then check if it could work.

    • go to "C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\16.0_ef41bc86, then delete all files in ComponentModelCache folder
    • Open visual studio installer, then repair your visual studio
    • If repairing doesn't work, please Modify -> Individual components, then disable the "intelliCode"                                                                                             

    Look forward to your feedback.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, November 6, 2019 2:49 AM
  • Deleting the directory helped solve the problem, but I don't know where to do Visual Studio restart in the future to know.
    Thursday, November 7, 2019 12:37 AM
  • Hi deser1,

    I'm glad to hear that it could help you.

    >>but I don't know where to do Visual Studio restart in the future to know.

    Did you mean the cache path will changed, and you would not find it in the future? If so, the cache path is under "C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\[version mumber]\" from VS 2013 to VS 2019. So it should be here in the future.

    And if you worried that this issue still happens in the future, please feel free to contact us, we will try our best to provide solution with you.

    BTW, please mark the helpful reply as answer, which will be beneficial to other members with same issue, thank you for cooperation.

    Have a nice day.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    • Marked as answer by deser1 Friday, November 8, 2019 10:35 PM
    Thursday, November 7, 2019 9:20 AM