[MonoDevelop] Unhandled Exception on create/open project

Todd Berman tberman@gentoo.org
Thu, 15 Jan 2004 20:46:18 -0500


As it turns out, right now you need to have ICU installed for
MonoDevelop to function properly, that should fix this issue.

--Todd

On Thu, 2004-01-15 at 18:50, Daniel Alves wrote:
> MonoDevelop just freezes whenever I try to open or create a project, on
> the console it gives this following output:
> 
> opening: /home/dfa/files/develop/mono/Teste01/MyWindow.cs
> SET FORMATTER :
> CSharpBinding.FormattingStrategy.CSharpFormattingStrategy
> System.TypeInitializationException: An exception was thrown by the type
> initializer for
> ICSharpCode.SharpRefactory.Parser.AST.PrimitiveExpression --->
> System.ArgumentException: An invalid argument was specified.
> in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1f)
> [0x40090fef]
> in (unmanaged) /usr/local/lib/libmono.so.0 [0x400c0586]
> in <0x00028> (wrapper managed-to-native)
> System.Globalization.CultureInfo:construct_internal_locale (string)
> in [0x00040] (at
> /tmp/snapshot/20040115/mcs/class/corlib/System.Globalization/CultureInfo.cs:1421) System.Globalization.CultureInfo:Construct (int,string,bool)
> in [0x00037] (at
> /tmp/snapshot/20040115/mcs/class/corlib/System.Globalization/CultureInfo.cs:1481) System.Globalization.CultureInfo:.ctor (string,bool)
> in <0x0002a>
> ICSharpCode.SharpRefactory.Parser.AST.PrimitiveExpression:.cctor ()
> --- End of inner exception stack trace ---
>                                                                                                                   
> in (unmanaged)
> ICSharpCode.SharpRefactory.Parser.AST.PrimitiveExpression:.ctor
> (object,string)
> in [0x00285] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1749)
> ICSharpCode.SharpRefactory.Parser.Parser:PrimaryExpr
> (ICSharpCode.SharpRefactory.Parser.AST.Expression&)
> in [0x0017b] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1725)
> ICSharpCode.SharpRefactory.Parser.Parser:UnaryExpr
> (ICSharpCode.SharpRefactory.Parser.AST.Expression&)
> in [0x00009] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1689)
> ICSharpCode.SharpRefactory.Parser.Parser:Expr
> (ICSharpCode.SharpRefactory.Parser.AST.Expression&)
> in [0x00097] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1680)
> ICSharpCode.SharpRefactory.Parser.Parser:StatementExpr
> (ICSharpCode.SharpRefactory.Parser.AST.Statement&)
> in [0x000e7] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1505)
> ICSharpCode.SharpRefactory.Parser.Parser:EmbeddedStatement
> (ICSharpCode.SharpRefactory.Parser.AST.Statement&)
> in [0x0016c] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1482)
> ICSharpCode.SharpRefactory.Parser.Parser:Statement ()
> in [0x00031] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1344)
> ICSharpCode.SharpRefactory.Parser.Parser:Block
> (ICSharpCode.SharpRefactory.Parser.AST.Statement&)
> in [0x00490] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1049)
> ICSharpCode.SharpRefactory.Parser.Parser:StructMemberDecl
> (ICSharpCode.SharpRefactory.Parser.Modifiers,System.Collections.ArrayList)
> in [0x00012] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1158)
> ICSharpCode.SharpRefactory.Parser.Parser:ClassMemberDecl
> (ICSharpCode.SharpRefactory.Parser.Modifiers,System.Collections.ArrayList)
> in [0x0005d] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:779)
> ICSharpCode.SharpRefactory.Parser.Parser:ClassBody ()
> in [0x000b5] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:686)
> ICSharpCode.SharpRefactory.Parser.Parser:TypeDecl
> (ICSharpCode.SharpRefactory.Parser.Modifiers,System.Collections.ArrayList)
> in [0x0013d] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:666)
> ICSharpCode.SharpRefactory.Parser.Parser:NamespaceMemberDecl ()
> in [0x00044] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:525)
> ICSharpCode.SharpRefactory.Parser.Parser:CS ()
> in [0x00032] (at
> /usr/local/MonoDevelop/src/Libraries/SharpRefactory/cs.ATG:1950)
> ICSharpCode.SharpRefactory.Parser.Parser:Parse
> (ICSharpCode.SharpRefactory.Parser.Lexer)
> in [0x00012] (at
> /usr/local/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/Parser.cs:42) CSharpBinding.Parser.TParser:Parse (string,string)
> in [0x000eb] (at
> /usr/local/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs:540) ICSharpCode.SharpDevelop.Services.DefaultParserService:ParseFile (string,string)
> in [0x000b9] (at
> /usr/local/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs:395) ICSharpCode.SharpDevelop.Services.DefaultParserService:ParserUpdateThread ()
> 
> This ony happens when oppening certain files, while opening others the
> code shows without any problem. In this case, the Main.cs project file
> opens without any problem but this MyWindow.cs always makes it raise
> that exception and freezes the whole thing up.
> 
> I'm using the daily snapshot tarball for 15 jan 2004.
> 
> Thanks for the patiance, Daniel Alves
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list