kitamstudios / rust-analyzer.vs

Rust language support for Visual Studio 2022
https://marketplace.visualstudio.com/items?itemName=kitamstudios.RustAnalyzer
Other
147 stars 11 forks source link

SetSite failed for package [RustAnalyzerPackage] #33

Closed lemon-sh closed 1 year ago

lemon-sh commented 1 year ago

When I open a Rust project, the following error occurs:

image

And this is the part of aforementioned ActivityLog.xml that details the error:

<entry>
  <record>757</record>
  <time>2023/07/02 19:24:49.255</time>
  <type>Information</type>
  <source>VisualStudio</source>
  <description>Begin package load [RustAnalyzerPackage]</description>
  <guid>{D879AB25-BD3E-4E01-8B2A-CC60649C016C}</guid>
</entry>
<entry>
  <record>758</record>
  <time>2023/07/02 19:24:49.285</time>
  <type>Error</type>
  <source>VisualStudio</source>
  <description>SetSite failed for package [RustAnalyzerPackage]Source: &apos;mscorlib&apos; Description: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.&#x000D;&#x000A;System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.&#x000D;&#x000A;   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)&#x000D;&#x000A;   at System.Reflection.RuntimeModule.GetTypes()&#x000D;&#x000A;   at System.Reflection.Assembly.GetTypes()&#x000D;&#x000A;   at System.Linq.Enumerable.&lt;SelectManyIterator&gt;d__17`2.MoveNext()&#x000D;&#x000A;   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()&#x000D;&#x000A;   at Community.VisualStudio.Toolkit.AsyncPackageExtensions.&lt;RegisterCommandsAsync&gt;d__0.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at KS.RustAnalyzer.RustAnalyzerPackage.&lt;InitializeAsync&gt;d__2.MoveNext() in D:\a\rust-analyzer.vs\rust-analyzer.vs\src\RustAnalyzer\RustAnalyzerPackage.cs:line 44&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass21_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)</description>
  <guid>{D879AB25-BD3E-4E01-8B2A-CC60649C016C}</guid>
  <hr>0x80131602</hr>
  <errorinfo></errorinfo>
</entry>

After I dismiss the dialog box, the extension seems to be mostly working fine, except I can't run my project:

image

I don't know if that issue is related to this error, or maybe I am doing something wrong.

Full ActivityLog.xml ```xml Activity Monitor Log
Activity Monitor Log
infos
warnings
errors
# Type Description GUID Hr Source Time (UTC)
Warning ERROR
          
1 Information VisualStudio Microsoft Visual Studio 2022 version: 17.0.33815.150 2 Information VisualStudio Log ID {42511398-91E9-4F5E-82A3-2F0CE0F3137E} 3 Information VisualStudio Running in isolation mode. 4 Information VisualStudio Looking for master PkgDef file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\master.pkgdef 5 Information VisualStudio Creating PkgDefCacheNonVolatile 6 Information VisualStudio PkgDefCache flags
0x00013801
7 Information VisualStudio Double-checking master pkgdef file 8 Information VisualStudio PkgDefManagement initialized 9 Information VisualStudio RootFolder C:\Program Files\Microsoft Visual Studio\2022\Community\ 10 Information VisualStudio ShellFolder C:\Program Files\Microsoft Visual Studio\2022\Community\ 502 Error PreviewFeaturesPane Failed to load package string with id f47a268a-bba9-442d-ac61-eef97f906458 and resource id #1000 504 Error PreviewFeaturesPane Failed to load package string with id c78ca057-cc29-421f-ad6d-3b0943debdfc and resource id #5001 527 Error VisualStudio Failed to find CTMENU resource '#1000' in loaded UI library. 653 Information VisualStudio PERF: Shell start. 4628 ms 654 Information VisualStudio End package load [ContextRuleMonitorPackage] {8AA75F1E-7410-4EFE-82AA-0FEA79A0A042} 655 Information VisualStudio Begin package load [FileSystemPackage] {AC2BF811-80A4-4FA9-A405-21EC39316782} 656 Warning GlobalBrokeredServiceContainer Request for "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest. 657 Warning GlobalBrokeredServiceContainer Request for proxy to "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" is declined: ServiceAudienceMismatch. 658 Information VisualStudio End package load [FileSystemPackage] {AC2BF811-80A4-4FA9-A405-21EC39316782} 659 Information VisualStudio End package load [UtilityServiceProfferPackage] {39D5D0CA-A1AC-48AE-8209-B8C48D5A2B6C} 660 Information VisualStudio Begin package load [InfoBadgePackage] {33EE6583-8B97-4F6A-8B2A-6B14007FA249} 661 Information VisualStudio End package load [InfoBadgePackage] {33EE6583-8B97-4F6A-8B2A-6B14007FA249} 662 Information VisualStudio Begin package load [LocalFileSystemProviderPackage] {BCB28B82-7692-4875-8943-5D68025049AE} 663 Information VisualStudio End package load [LocalFileSystemProviderPackage] {BCB28B82-7692-4875-8943-5D68025049AE} 664 Information VisualStudio Begin package load [Microsoft.VisualStudio.Shell.Connected.UserInformation.UserInformationPackage] {5E80A5A1-B722-4727-9015-148AAB6310B0} 665 Information VisualStudio End package load [Microsoft.VisualStudio.Shell.Connected.UserInformation.UserInformationPackage] {5E80A5A1-B722-4727-9015-148AAB6310B0} 666 Information VisualStudio Begin package load [SearchPackage] {E3DD8DCD-EB2A-4ECE-A282-661E1EFA6335} 667 Information VisualStudio End package load [SearchPackage] {E3DD8DCD-EB2A-4ECE-A282-661E1EFA6335} 668 Information VisualStudio Begin package load [Visual Studio Common IDE Package] {6E87CFAD-6C05-4ADF-9CD7-3B7943875B7C} 669 Information VisualStudio End package load [Visual Studio Common IDE Package] {6E87CFAD-6C05-4ADF-9CD7-3B7943875B7C} 670 Information UIDelayNotifications UI-delay processor started successfully. 671 Information VisualStudio Begin package load [Microsoft.VisualStudio.Feedback.FeedbackPackage] {B22490B8-AA51-43B1-97EE-509A33B681F3} 672 Information VisualStudio End package load [Microsoft.VisualStudio.Feedback.FeedbackPackage] {B22490B8-AA51-43B1-97EE-509A33B681F3} 673 Information VisualStudio Begin package load [ChannelConsumerPackage] {00F06260-BF5B-4F88-98CA-94F4ACF3D16D} 674 Information VisualStudio End package load [ChannelConsumerPackage] {00F06260-BF5B-4F88-98CA-94F4ACF3D16D} 675 Information VisualStudio Begin package load [OutputChannelPackage] {E81208FB-9663-4335-B42A-218AE1064AD1} 676 Information VisualStudio End package load [OutputChannelPackage] {E81208FB-9663-4335-B42A-218AE1064AD1} 677 Information VisualStudio Begin package load [GuidePackage] {50738DFD-A810-4F13-B283-52B27F829529} 678 Information VisualStudio Begin package load [SetupCompositionPackage] {F92174FD-F10D-418B-819A-7433DEA53833} 679 Information VisualStudio End package load [SetupCompositionPackage] {F92174FD-F10D-418B-819A-7433DEA53833} 680 Information VisualStudio End package load [GuidePackage] {50738DFD-A810-4F13-B283-52B27F829529} 681 Information VisualStudio Begin package load [ImageRegistrationPackage] {F019A060-2752-4884-AA33-EBB9EF87164D} 682 Information VisualStudio End package load [ImageRegistrationPackage] {F019A060-2752-4884-AA33-EBB9EF87164D} 683 Information VisualStudio Begin package load [MaintenanceTaskProcessorPackage] {D614C115-7269-44A9-ABE2-16763CB95155} 684 Information VisualStudio End package load [MaintenanceTaskProcessorPackage] {D614C115-7269-44A9-ABE2-16763CB95155} 685 Information VisualStudio Begin package load [MefServiceBrokerPackage] {95FAA709-2640-4F04-A6B5-657B26D9D494} 686 Warning GlobalBrokeredServiceContainer Service 'Microsoft.VisualStudio.Shell.DiagnosticManagerBroadcastService (1.0)' has already been registered. Skipping duplicate registration. 687 Warning GlobalBrokeredServiceContainer Service 'Microsoft.VisualStudio.Shell.DiagnosticManagerBroadcastService (1.1)' has already been registered. Skipping duplicate registration. 688 Warning GlobalBrokeredServiceContainer Service 'Microsoft.VisualStudio.Shell.DiagnosticManagerService (1.0)' has already been registered. Skipping duplicate registration. 689 Warning GlobalBrokeredServiceContainer Service 'Microsoft.VisualStudio.Shell.DiagnosticManagerService (1.1)' has already been registered. Skipping duplicate registration. 690 Warning GlobalBrokeredServiceContainer Service 'Microsoft.VisualStudio.Shell.DiagnosticViewerService (1.0)' has already been registered. Skipping duplicate registration. 691 Warning GlobalBrokeredServiceContainer Service 'Microsoft.VisualStudio.Shell.DiagnosticViewerService (1.1)' has already been registered. Skipping duplicate registration. 692 Information VisualStudio End package load [MefServiceBrokerPackage] {95FAA709-2640-4F04-A6B5-657B26D9D494} 693 Information VisualStudio Begin package load [PromotionsPackage] {B596A79C-0044-4FC4-AAF6-A700B6FDC9ED} 694 Information VisualStudio End package load [PromotionsPackage] {B596A79C-0044-4FC4-AAF6-A700B6FDC9ED} 695 Information VisualStudio Begin package load [SccDisplayInformationPackage] {D7BB9305-5804-4F92-9CFE-119F4CB0563B} 696 Information PromotionsFramework Received promotion with RuleId: 7BED179A-3BE7-414D-8C40-914B591EF553 697 Information PromotionsFramework Subscribed to trigger event for promotion with RuleId: 7BED179A-3BE7-414D-8C40-914B591EF553 698 Information PromotionsFramework Received promotion with RuleId: 93EA625A-53B4-4003-B56F-AB936759983B 699 Information PromotionsFramework Subscribed to trigger event for promotion with RuleId: 93EA625A-53B4-4003-B56F-AB936759983B 700 Information PromotionsFramework Received promotion with RuleId: DED7D4AD-2C83-4B10-BC64-5C8DF0C052A5 701 Information PromotionsFramework Subscribed to trigger event for promotion with RuleId: DED7D4AD-2C83-4B10-BC64-5C8DF0C052A5 702 Information PromotionsFramework Received promotion with RuleId: 45E4D712-83A8-4F72-8AAF-94284ADE1D6A 703 Information PromotionsFramework Subscribed to trigger event for promotion with RuleId: 45E4D712-83A8-4F72-8AAF-94284ADE1D6A 704 Information VisualStudio End package load [SccDisplayInformationPackage] {D7BB9305-5804-4F92-9CFE-119F4CB0563B} 705 Information VisualStudio Begin package load [GlobalHubClientPackage] {11AD60FC-6D87-4674-8F88-9ABE79176CBE} 706 Information VisualStudio End package load [GlobalHubClientPackage] {11AD60FC-6D87-4674-8F88-9ABE79176CBE} 707 Information VisualStudio Begin package load [StartPagePackage] {933D4FD6-4649-41CE-A397-82948D812534} 708 Information VisualStudio End package load [StartPagePackage] {933D4FD6-4649-41CE-A397-82948D812534} 709 Information VisualStudio Begin package load [WhatsNewPackage] {ADCCE324-D32C-4758-98CF-687CE2CD668E} 710 Information VisualStudio End package load [WhatsNewPackage] {ADCCE324-D32C-4758-98CF-687CE2CD668E} 711 Warning CommonIDEPackage About to block on async service creation because 'Microsoft.VisualStudio.Shell.Interop.SVsDebugTargetSelectionService' was requested via GetService. This has the potential to deadlock. Async initializing services should be retrieved via GetServiceAsync. 712 Warning CommonIDEPackage About to block on async service creation because 'Microsoft.Internal.VisualStudio.Shell.Interop.SVsSAPCommonExperienceServiceInternal' was requested via GetService. This has the potential to deadlock. Async initializing services should be retrieved via GetServiceAsync. 713 Warning CommonIDEPackage About to block on async service creation because 'Microsoft.VisualStudio.LicenseManagement.Interop.SVsLicensingNotifications' was requested via GetService. This has the potential to deadlock. Async initializing services should be retrieved via GetServiceAsync. 714 Information VisualStudio Begin package load [Visual Studio CRC package] {6B238C39-B163-467E-83DB-A2DEC10459ED} 715 Information VisualStudio End package load [Visual Studio CRC package] {6B238C39-B163-467E-83DB-A2DEC10459ED} 716 Information VisualStudio Begin package load [Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserPackage] {7F679D93-2EB6-47C9-85EB-F6AD16902662} 717 Information Extension Manager IncompatibilityList - Call Servicehub for downloading compatibility list file. 718 Information VisualStudio Begin package load [ToastNotificationsPackage] {C931D979-CA1A-41E8-8A23-E86B85E3141B} 719 Information VisualStudio End package load [ToastNotificationsPackage] {C931D979-CA1A-41E8-8A23-E86B85E3141B} 720 Information Extension Manager IncompatibilityList - Look for incompatible extensions.Configuration or the user compatibility list file changed 721 Information VisualStudio Entering function LoadDTETypeLib 722 Information VisualStudio Leaving function LoadDTETypeLib 723 Information VisualStudio Begin package load [OperationProgressPackage] {C7821A4F-6708-4F8D-A0AA-D43D06E8D196} 724 Information VisualStudio End package load [OperationProgressPackage] {C7821A4F-6708-4F8D-A0AA-D43D06E8D196} 725 Information VisualStudio Begin package load [TelemetryHasherPackage] {177EB584-9375-4B7C-ABBB-32A91F740A40} 726 Information VisualStudio End package load [TelemetryHasherPackage] {177EB584-9375-4B7C-ABBB-32A91F740A40} 727 Information VisualStudio Begin package load [FileColorPackage] {949BB610-6840-4ADE-8C75-55CDB16BF0E8} 728 Warning GlobalBrokeredServiceContainer Request for "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest. 729 Warning GlobalBrokeredServiceContainer Request for proxy to "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" is declined: ServiceAudienceMismatch. 730 Information VisualStudio End package load [FileColorPackage] {949BB610-6840-4ADE-8C75-55CDB16BF0E8} 731 Information VisualStudio Begin package load [Microsoft.VisualStudio.Shell.Connected.AccountManagerService.AccountManagerPackage] {9C987E78-F0BF-45CA-9BA5-96D3E4B2BAC6} 732 Information VisualStudio End package load [Microsoft.VisualStudio.Shell.Connected.AccountManagerService.AccountManagerPackage] {9C987E78-F0BF-45CA-9BA5-96D3E4B2BAC6} 733 Error Color Theme Service The color 'Popup' in category 'de7b1121-99a4-4708-aedf-15f40c9b332f' does not exist. 734 Information VisualStudio Begin package load [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost] {B80B010D-188C-4B19-B483-6C20D52071AE} 735 Information VisualStudio Begin package load [Microsoft.VisualStudio.Services.Integration.ServicesPackage, Microsoft.VisualStudio.Services.Integration] {0B93CCC5-BC52-40E9-91A3-7B8B58C4526B} 736 Information VisualStudio End package load [Microsoft.VisualStudio.Services.Integration.ServicesPackage, Microsoft.VisualStudio.Services.Integration] {0B93CCC5-BC52-40E9-91A3-7B8B58C4526B} 737 Information VisualStudio End package load [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost] {B80B010D-188C-4B19-B483-6C20D52071AE} 738 Information VisualStudio Begin package load [SccProviderPackage] {7FE30A77-37F9-4CF2-83DD-96B207028E1B} 739 Information VisualStudio End package load [SccProviderPackage] {7FE30A77-37F9-4CF2-83DD-96B207028E1B} 740 Information VisualStudio Begin package load [FileEnumerationServicePackage] {ED8075A9-3E0C-45B3-83EE-C14B43BC3787} 741 Information VisualStudio End package load [FileEnumerationServicePackage] {ED8075A9-3E0C-45B3-83EE-C14B43BC3787} 742 Information VisualStudio Begin package load [RustAnalyzerPackage] {D879AB25-BD3E-4E01-8B2A-CC60649C016C} 743 Warning WindowSearchHost The provided option does not implement either IVsWindowSearchBooleanOption or IVsWindowSearchCommandOption - the option will be ignored 744 Warning GlobalBrokeredServiceContainer Request for "Microsoft.VisualStudio.Shell.BuildService (0.2)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest. 745 Warning GlobalBrokeredServiceContainer Request for proxy to "Microsoft.VisualStudio.Shell.BuildService (0.2)" is declined: ServiceAudienceMismatch. 746 Warning GlobalBrokeredServiceContainer Request for "Microsoft.VisualStudio.Shell.BuildService (0.1)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest. 747 Warning GlobalBrokeredServiceContainer Request for proxy to "Microsoft.VisualStudio.Shell.BuildService (0.1)" is declined: ServiceAudienceMismatch. 748 Warning GlobalBrokeredServiceContainer Request for "Microsoft.VisualStudio.Workspace.RemoteStartupProjectService (0.1)" from Process denied because the service is only exposed RemoteExclusiveClient. 749 Warning GlobalBrokeredServiceContainer Request for proxy to "Microsoft.VisualStudio.Workspace.RemoteStartupProjectService (0.1)" is declined: ServiceAudienceMismatch. 750 Warning GlobalBrokeredServiceContainer Request for "Microsoft.VisualStudio.Shell.SolutionConfigurationService (0.2)" from Process denied because the service is only exposed RemoteExclusiveClient. 751 Warning GlobalBrokeredServiceContainer Request for proxy to "Microsoft.VisualStudio.Shell.SolutionConfigurationService (0.2)" is declined: ServiceAudienceMismatch. 752 Error VisualStudio SetSite failed for package [RustAnalyzerPackage]Source: 'mscorlib' Description: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeModule.GetTypes() at System.Reflection.Assembly.GetTypes() at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at Community.VisualStudio.Toolkit.AsyncPackageExtensions.<RegisterCommandsAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KS.RustAnalyzer.RustAnalyzerPackage.<InitializeAsync>d__2.MoveNext() in D:\a\rust-analyzer.vs\rust-analyzer.vs\src\RustAnalyzer\RustAnalyzerPackage.cs:line 44 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) {D879AB25-BD3E-4E01-8B2A-CC60649C016C}
0x80131602
```
parthopdas commented 1 year ago

I have updated the dependency to 17.7. Please reactivate if you hit the same issue now.

lemon-sh commented 1 year ago

seems to work, thank you!