GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Multiple exceptions thrown when starting dotdevelop · Issue #104 · dotdevelop/dotdevelop

Multiple exceptions thrown when starting dotdevelop #104

New issue
Copy link
New issue
Copy link
Open
Open
Multiple exceptions thrown when starting dotdevelop#104
Copy link

Description

@hwthomas
hwthomas
opened on Jan 24, 2023
Issue body actions

When starting dotdevelop the following startup messages are produced (among others)

oeDEBUG :: CompositionManager :: INIT-addins-start
oeDEBUG :: ReadAssembliesFromAddins : from extensionPath /MonoDevelop/Ide/TypeService/PlatformMefHostServices
...
oeDEBUG :: ReadAssembliesFromAddins /home/hwt/build/dd-dd/main/build/AddIns/MonoDevelop.Refactoring/MonoDevelop.Refactoring.dll
oeDEBUG :: CompositionManager :: INIT-addins-completed

INFO [2023-01-16 15:53:25Z]: Creating MEF composition from runtime
INFO [2023-01-16 15:53:26Z]: Add-in loaded: MonoDevelop.Deployment.Linux
INFO [2023-01-16 15:53:27Z]: Updating Welcome Page from 'http://software.xamarin.com/Service/News'.

The MEF composition above is created by an asynchronous task CreateRuntimeCompositionFromDiscovery in file
main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Composition/CompositionManager.cs

and as it runs multiple MEF discovery errors are reported of the form:-

INFO [2023-01-17 16:42:35Z]: MEF discovery error
Microsoft.VisualStudio.Composition.PartDiscoveryException: Failure while scanning type "Microsoft.VisualStudio.Imaging.ActualHighContrastConverter". ---> System.TypeLoadException: Parent class failed to load, due to: Generic Type Definition failed to init, due to: Could not resolve type with token 010000e8 from typeref (expected class 'System.Windows.Data.IMultiValueConverter' in assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35') assembly:PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type:System.Windows.Data.IMultiValueConverter member:(null) assembly:/home/hwt/build/dd-dd/main/build/bin/Microsoft.VisualStudio.Utilities.dll type:MultiValueConverter`3 member:(null) assembly:/home/hwt/build/dd-dd/main/build/bin/Microsoft.VisualStudio.Utilities.dll type:MultiValueConverter`3 member:(null)
  at (wrapper managed-to-native) System.RuntimeType.GetMethodsByName_native(System.RuntimeType,intptr,System.Reflection.BindingFlags,System.RuntimeType/MemberListType)
  at System.RuntimeType.GetMethodsByName (System.String name, System.Reflection.BindingFlags bindingAttr, System.RuntimeType+MemberListType listType, System.RuntimeType reflectedType) [0x0001b] in <282c4228012f4f3d96bdf0f2b2dea837>:0 
  at System.RuntimeType.GetMethodCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Int32 genericParamCount, System.Boolean allowPrefixLookup) [0x00010] in <282c4228012f4f3d96bdf0f2b2dea837>:0 
  at System.RuntimeType.GetMethods (System.Reflection.BindingFlags bindingAttr) [0x00000] in <282c4228012f4f3d96bdf0f2b2dea837>:0 
  at Microsoft.VisualStudio.Composition.AttributedPartDiscoveryV1.CreatePart (System.Type partType, System.Boolean typeExplicitlyRequested) [0x0005b] in <40e96ef4b67e43a4a43b85e33e486a92>:0 
  at Microsoft.VisualStudio.Composition.PartDiscovery+CombinedPartDiscovery.CreatePart (System.Type partType, System.Boolean typeExplicitlyRequested) [0x00020] in <40e96ef4b67e43a4a43b85e33e486a92>:0 
  at Microsoft.VisualStudio.Composition.PartDiscovery+<>c__DisplayClass29_0.<CreateDiscoveryBlockChain>b__0 (System.Type type) [0x00000] in <40e96ef4b67e43a4a43b85e33e486a92>:0 
   --- End of inner exception stack trace ---

These MEF discovery errors are followed by a similar number of MEF composition errors of the form:-

INFO [2023-01-19 17:10:03Z]: MEF composition error: Microsoft.CodeAnalysis.Editor.Implementation.CodeActions.CodeActionEditHandlerService.ctor(renameService): expected exactly 1 export matching constraints:
    Contract name: Microsoft.CodeAnalysis.Editor.IInlineRenameService
    TypeIdentityName: Microsoft.CodeAnalysis.Editor.IInlineRenameService
but found 0.

Debug code at line 212 of CompositionManager.cs then re-lists these errors under "oeDEBUG :: SOME MEF PROBLEMS:", after which there is a message that the CompositionManager has been initialised...

INFO [2023-01-24 11:45:06Z]: Service MonoDevelop.Ide.Composition.CompositionManager initialized in 2598 ms.
INFO [2023-01-24 11:45:07Z]: Service MonoDevelop.Ide.TypeSystem.TypeSystemService initialized in 2772 ms.
WARNING [2023-01-24 11:45:07Z]: FileService.UpdateDownloadedCacheFile. Unexpected status code NotFound
INFO [2023-01-24 11:45:07Z]: Welcome Page already up-to-date.

...and the IDE is ready to use (!)

Activity

  1. hwthomas commented on Jan 24, 2023

    @hwthomas
    hwthomas
    on Jan 24, 2023
    CollaboratorAuthor
    More actions

    These startup errors give a flavour of how 'noisy' dotdevelop is when running. It would be good to track down and fix as many of these as possible, before the current state of the project can be considered to be at all stable

    All help is welcomed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.