Bug 11142 - System.IO.IOException: Error while loading style :Default ---> InvalidDataException: Scheme Default is not valid.
Summary: System.IO.IOException: Error while loading style :Default ---> InvalidDataEx...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2013-03-13 20:11 UTC by Andres G. Aragoneses
Modified: 2013-03-14 06:11 UTC (History)
1 user (show)

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:

Description Andres G. Aragoneses 2013-03-13 20:11:05 UTC
Using master as of today, cannot open any C# file:

ERROR [2013-03-14 00:06:02Z]: System.IO.IOException: Error while loading style :Default ---> System.IO.InvalidDataException: Scheme Default is not valid.
  at Mono.TextEditor.Highlighting.ColorScheme.LoadFrom (System.IO.Stream stream) [0x003c1] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/ColorScheme.cs:641 
  at Mono.TextEditor.Highlighting.SyntaxModeService.LoadStyle (System.String name) [0x00098] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs:120 
  --- End of inner exception stack trace ---
  at Mono.TextEditor.Highlighting.SyntaxModeService.LoadStyle (System.String name) [0x000af] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs:123 
  at Mono.TextEditor.Highlighting.SyntaxModeService.GetColorStyle (System.String name) [0x0002c] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs:83 
  at Mono.TextEditor.TextEditorOptions.GetColorStyle () [0x00000] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditorOptions.cs:505 
  at Mono.TextEditor.TextArea.OptionsChanged (System.Object sender, System.EventArgs args) [0x00038] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs:685 
  at Mono.TextEditor.TextArea.Initialize (Mono.TextEditor.TextEditor editor, Mono.TextEditor.TextDocument doc, ITextEditorOptions options, Mono.TextEditor.EditMode initialMode) [0x00302] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs:390 
  at Mono.TextEditor.TextEditor..ctor (Mono.TextEditor.TextDocument doc, ITextEditorOptions options, Mono.TextEditor.EditMode initialMode) [0x0003f] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs:73 
  at Mono.TextEditor.TextEditor..ctor (Mono.TextEditor.TextDocument doc, ITextEditorOptions options) [0x00000] in <filename unknown>:0 
  at Mono.TextEditor.TextEditor..ctor (Mono.TextEditor.TextDocument doc) [0x00000] in <filename unknown>:0 
  at Mono.TextEditor.TextEditor..ctor () [0x00000] in <filename unknown>:0 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor..ctor (MonoDevelop.SourceEditor.SourceEditorView view) [0x00000] in <filename unknown>:0 
  at MonoDevelop.SourceEditor.SourceEditorWidget..ctor (MonoDevelop.SourceEditor.SourceEditorView view) [0x00077] in /home/andres1210/Code/system_mono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs:343 
  at MonoDevelop.SourceEditor.SourceEditorView..ctor () [0x000ca] in /home/andres1210/Code/system_mono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:189 
  at MonoDevelop.SourceEditor.SourceEditorDisplayBinding.CreateContent (FilePath fileName, System.String mimeType, MonoDevelop.Projects.Project ownerProject) [0x00000] in /home/andres1210/Code/system_mono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorDisplayBinding.cs:94 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x00033] in /home/andres1210/Code/system_mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1162
Comment 1 Mike Krüger 2013-03-14 02:39:56 UTC
You're running in a mono error - use a newer mono.
Comment 2 Andres G. Aragoneses 2013-03-14 05:03:08 UTC
You're right Mike, sorry. But then please can you guys merge my PR that checks for the mono version so this doesn't happen again to any user? It's here: https://github.com/mono/monodevelop/pull/255

Comment 3 Mike Krüger 2013-03-14 05:26:13 UTC
of course - thanks
Comment 4 Mike Krüger 2013-03-14 05:26:36 UTC
the main problem is that the unix distrubutions only update mono once in a decade ...
Comment 5 Andres G. Aragoneses 2013-03-14 05:29:04 UTC
Yes, but that's their problem. And we need to implement the proper checks in our configure scripts so they know they need to update their packages. Otherwise it will compile for them and they will think the problem is a bug in upstream...

Comment 6 Mike Krüger 2013-03-14 05:30:47 UTC
hm, we should check vor 3.x :)
Comment 7 Andres G. Aragoneses 2013-03-14 06:11:43 UTC
Haha, that would be naughty.