Bug 11407 - Error in source editor when opening any file
Summary: Error in source editor when opening any file
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Mac OS
: High normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-03-25 22:16 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-03-26 03:05 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2013-03-25 22:16:39 UTC
ERROR [2013-03-25 22:15:49Z]: Add-in error (MonoDevelop.SourceEditor2,4.0): Error while getting object for node in path '/MonoDevelop/Ide/DisplayBindings'.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.SourceEditor.SourceEditorDisplayBinding ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.TextEditor.Highlighting.SyntaxModeService.LoadStylesAndModes (System.String path) [0x00037] in /Users/michael/Mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs:413 
  at MonoDevelop.SourceEditor.SourceEditorDisplayBinding.LoadCustomStylesAndModes () [0x00044] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorDisplayBinding.cs:75 
  at MonoDevelop.SourceEditor.SourceEditorDisplayBinding.InitSourceEditor () [0x00020] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorDisplayBinding.cs:60 
  at MonoDevelop.SourceEditor.SourceEditorDisplayBinding..cctor () [0x00000] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorDisplayBinding.cs:48 
  --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.7/_build/mono-3.0.7.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:552 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00013] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.7/_build/mono-3.0.7.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:558 
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x000af] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.7/_build/mono-3.0.7.git/mcs/class/corlib/System/Activator.cs:329 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.7/_build/mono-3.0.7.git/mcs/class/corlib/System/Activator.cs:222 
  at Mono.Addins.TypeExtensionNode.CreateInstance () [0x00000] in /Users/michael/Mono/monodevelop/main/external/mono-addins/Mono.Addins/Mono.Addins/TypeExtensionNode.cs:93 
  at Mono.Addins.InstanceExtensionNode.GetInstance () [0x0000b] in /Users/michael/Mono/monodevelop/main/external/mono-addins/Mono.Addins/Mono.Addins/InstanceExtensionNode.cs:73 
  at Mono.Addins.InstanceExtensionNode.GetInstance (System.Type expectedType) [0x00000] in /Users/michael/Mono/monodevelop/main/external/mono-addins/Mono.Addins/Mono.Addins/InstanceExtensionNode.cs:55 
  at Mono.Addins.ExtensionNode.GetChildObjectsInternal (System.Type arrayElementType, Boolean reuseCachedInstance) [0x0005e] in /Users/michael/Mono/monodevelop/main/external/mono-addins/Mono.Addins/Mono.Addins/ExtensionNode.cs:356
Comment 1 Mike Krüger 2013-03-26 03:05:17 UTC
Seems you've old .xml color styles in your ~/Library/MonoDevelop-4.0/HighlightingSchemes folder.

Good that you had

/fixed