RE: [Mono-list] Facing Problems with SVN
[EMAIL PROTECTED] wrote: That error is commonly encountered if svn is unable to locate your tunnel agent(ssh.exe). Go into your Subversion config file(in %APPDATA%\Subversion\config) and take a look at the [tunnels] section. Mine looks like this: ssh = $SVN_SSH tortoiseplink -l Arild Thanks. Let me check it. What if I have cygwin cvs? What should I set it to? ssh = $SVN_SSH C:\cygwin\bin\ssh.exe should work. -- Arild AnkhSVN, Subverting Visual Studio .NET: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn Gentlemen, you can't fight in here! This is the war room! ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Facing Problems with SVN
[EMAIL PROTECTED] wrote: Hi, I am unable to checkout (export) from SVN. I am trying to connect from Windows. --- svn co svn+ssh://[EMAIL PROTECTED]/source/trunk/mono svn: The system cannot find the file specified. --- That error is commonly encountered if svn is unable to locate your tunnel agent(ssh.exe). Go into your Subversion config file(in %APPDATA%\Subversion\config) and take a look at the [tunnels] section. Mine looks like this: ### Section for configuring tunnel agents. [tunnels] ### Configure svn protocol tunnel schemes here. By default, only ### the 'ssh' scheme is defined. You can define other schemes to ### be used with 'svn+scheme://hostname/path' URLs. A scheme ### definition is simply a command, optionally prefixed by an ### environment variable name which can override the command if it ### is defined. The command (or environment variable) may contain ### arguments, using standard shell quoting for arguments with ### spaces. The command will be invoked as: ### command hostname svnserve -t ### If the built-in ssh scheme were not predefined, it could be ### defined as: ssh = $SVN_SSH tortoiseplink -l Arild -- Arild AnkhSVN, Subverting Visual Studio .NET: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn Gentlemen, you can't fight in here! This is the war room! ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Mono XSLT classes choke on Docbook stylesheets
[EMAIL PROTECTED] wrote: Hi, Please file a bug in bugzilla, with how to obtain the latest docbook stylesheets that you tried (or the stylesheet itself), document instance you fed, and code you ran. Also we need which version of mono you are running (the latest DTD parser stuff is implemented as to provide BaseURI as you expected unlike MS implementation). http://bugzilla.ximian.com/ Actually it looks like rather DTD parser problem than XSLT problem. I agree. I have reduced it to a simple test case that does not rely on obtaining the Docbook stylesheets: http://bugzilla.ximian.com/show_bug.cgi?id=70008 -- Arild AnkhSVN, Subverting Visual Studio .NET: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn Gentlemen, you can't fight in here! This is the war room! ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Mono XSLT classes choke on Docbook stylesheets
[This is a resend, since I originally sent from a non-subscribed acct] When attempting to run Mono's XSL processor with a simple docbook document and the latest docbook stylesheets, mono merely errors out with the following message: an attribute value was not quoted Line 18, position 25. This message isn't all that useful by itself (putting a filename in there would help, y'know...), but I finally managed to track it down to this item in common/l10n.dtd(in the docbook tree): !ATTLIST %i18n; %xmlns; CDATA #FIXED %uri; Line 18, column 25 corresponds to the # in #FIXED. The stack trace(attached) indicates that the error originates in mcs/class/System.XML/System.Xml/DTDReader.cs:ReadDefaultAttribute. The Microsoft implementation does not have this (particular) problem with the Docbook stylesheets. xsltproc handles it just fine. -- Arild AnkhSVN, Subverting Visual Studio .NET: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn Gentlemen, you can't fight in here! This is the war room!System.Xml.XPath.XPathException System.Xml in 0x000af System.Xml.XPath.CompiledExpression:Evaluate (System.Xml.XPath.BaseIterator) in 0x000bc System.Xml.XPath.XPathNavigator:Evaluate (System.Xml.XPath.XPathExpression,System.Xml.XPath.XPathNodeIterator,System.Xml.XmlNamespaceManager) in 0x00088 Mono.Xml.Xsl.XslTransformProcessor:Evaluate (System.Xml.XPath.XPathExpression) in 0x0004b Mono.Xml.Xsl.Operations.XslVariableInformation:Evaluate (Mono.Xml.Xsl.XslTransformProcessor) in 0x000ce Mono.Xml.Xsl.Operations.XslGlobalVariable:Evaluate (Mono.Xml.Xsl.XslTransformProcessor) in 0x0044f Mono.Xml.Xsl.XslTransformProcessor:Process (System.Xml.XPath.XPathNavigator,Mono.Xml.Xsl.Outputter,System.Xml.Xsl.XsltArgumentList,System.Xml.XmlResolver) in 0x000a6 System.Xml.Xsl.ManagedXslTransform:Transform (System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver) in 0x0001a System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver) in 0x00038 System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver) in 0x00129 Transform.Transform:Main (string[]) Error during evaluation System.Xml.XmlException System.Xml in 0x00089 System.Xml.DTDReader:ReadDefaultAttribute () in 0x00189 System.Xml.DTDReader:ReadAttributeDefaultValue (Mono.Xml.DTDAttributeDefinition) in 0x00801 System.Xml.DTDReader:ReadAttributeDefinition () in 0x001e0 System.Xml.DTDReader:ReadAttListDecl () in 0x0036a System.Xml.DTDReader:CompileDeclaration () in 0x001ed System.Xml.DTDReader:ProcessDTDSubset () in 0x00292 System.Xml.DTDReader:GenerateDTDObjectModel () in 0x0020e System.Xml.XmlTextReader:GenerateDTDObjectModel (string,string,string,string,int,int) in 0x002f8 System.Xml.XmlTextReader:ReadDoctypeDecl () in 0x000bd System.Xml.XmlTextReader:ReadDeclaration () in 0x0008e System.Xml.XmlTextReader:ReadTag () in 0x000db System.Xml.XmlTextReader:ReadContent () in 0x0018e System.Xml.XmlTextReader:Read () in 0x00349 Mono.Xml.DTDValidatingReader:ReadContent () in 0x01741 Mono.Xml.DTDValidatingReader:ReadContent () in 0x000c3 Mono.Xml.DTDValidatingReader:Read () in 0x000bc Mono.Xml.Schema.XsdValidatingReader:Read () in 0x002dd System.Xml.XmlValidatingReader:Read () in 0x00048 Mono.Xml.XPath.DTMXPathDocumentBuilder:Read () in 0x001aa Mono.Xml.XPath.DTMXPathDocumentBuilder:Compile () in 0x00189 Mono.Xml.XPath.DTMXPathDocumentBuilder:Init (System.Xml.XmlReader,System.Xml.XmlSpace,int) in 0x00047 Mono.Xml.XPath.DTMXPathDocumentBuilder:.ctor (System.Xml.XmlReader,System.Xml.XmlSpace,int) in 0x00015 Mono.Xml.XPath.DTMXPathDocumentBuilder:.ctor (System.Xml.XmlReader,System.Xml.XmlSpace) in 0x00030 System.Xml.XPath.XPathDocument:Initialize (System.Xml.XmlReader,System.Xml.XmlSpace) in 0x0001f System.Xml.XPath.XPathDocument:.ctor (System.Xml.XmlReader,System.Xml.XmlSpace) in 0x00223 Mono.Xml.Xsl.XslTransformProcessor:GetDocument (System.Uri) in 0x0010d Mono.Xml.Xsl.XsltDocument:GetDocument (Mono.Xml.Xsl.XsltCompiledContext,string,string) in 0x00349 Mono.Xml.Xsl.XsltDocument:Evaluate (System.Xml.XPath.BaseIterator) in 0x00046 System.Xml.XPath.CompiledExpression:Evaluate (System.Xml.XPath.BaseIterator)
[Mono-list] Mono XSLT classes choke on Docbook stylesheets
When attempting to run Mono's XSL processor with a simple docbook document and the latest docbook stylesheets, mono merely errors out with the following message: an attribute value was not quoted Line 18, position 25. This message isn't all that useful by itself (putting a filename in there would help, y'know...), but I finally managed to track it down to this item in common/l10n.dtd(in the docbook tree): !ATTLIST %i18n; %xmlns; CDATA #FIXED %uri; Line 18, column 25 corresponds to the # in #FIXED. The stack trace(attached) indicates that the error originates in mcs/class/System.XML/System.Xml/DTDReader.cs:ReadDefaultAttribute. The Microsoft implementation does not have this (particular) problem with the Docbook stylesheets. xsltproc handles it just fine. -- ArildSystem.Xml.XPath.XPathException System.Xml in 0x000af System.Xml.XPath.CompiledExpression:Evaluate (System.Xml.XPath.BaseIterator) in 0x000bc System.Xml.XPath.XPathNavigator:Evaluate (System.Xml.XPath.XPathExpression,System.Xml.XPath.XPathNodeIterator,System.Xml.XmlNamespaceManager) in 0x00088 Mono.Xml.Xsl.XslTransformProcessor:Evaluate (System.Xml.XPath.XPathExpression) in 0x0004b Mono.Xml.Xsl.Operations.XslVariableInformation:Evaluate (Mono.Xml.Xsl.XslTransformProcessor) in 0x000ce Mono.Xml.Xsl.Operations.XslGlobalVariable:Evaluate (Mono.Xml.Xsl.XslTransformProcessor) in 0x0044f Mono.Xml.Xsl.XslTransformProcessor:Process (System.Xml.XPath.XPathNavigator,Mono.Xml.Xsl.Outputter,System.Xml.Xsl.XsltArgumentList,System.Xml.XmlResolver) in 0x000a6 System.Xml.Xsl.ManagedXslTransform:Transform (System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver) in 0x0001a System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver) in 0x00038 System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver) in 0x00129 Transform.Transform:Main (string[]) Error during evaluation System.Xml.XmlException System.Xml in 0x00089 System.Xml.DTDReader:ReadDefaultAttribute () in 0x00189 System.Xml.DTDReader:ReadAttributeDefaultValue (Mono.Xml.DTDAttributeDefinition) in 0x00801 System.Xml.DTDReader:ReadAttributeDefinition () in 0x001e0 System.Xml.DTDReader:ReadAttListDecl () in 0x0036a System.Xml.DTDReader:CompileDeclaration () in 0x001ed System.Xml.DTDReader:ProcessDTDSubset () in 0x00292 System.Xml.DTDReader:GenerateDTDObjectModel () in 0x0020e System.Xml.XmlTextReader:GenerateDTDObjectModel (string,string,string,string,int,int) in 0x002f8 System.Xml.XmlTextReader:ReadDoctypeDecl () in 0x000bd System.Xml.XmlTextReader:ReadDeclaration () in 0x0008e System.Xml.XmlTextReader:ReadTag () in 0x000db System.Xml.XmlTextReader:ReadContent () in 0x0018e System.Xml.XmlTextReader:Read () in 0x00349 Mono.Xml.DTDValidatingReader:ReadContent () in 0x01741 Mono.Xml.DTDValidatingReader:ReadContent () in 0x000c3 Mono.Xml.DTDValidatingReader:Read () in 0x000bc Mono.Xml.Schema.XsdValidatingReader:Read () in 0x002dd System.Xml.XmlValidatingReader:Read () in 0x00048 Mono.Xml.XPath.DTMXPathDocumentBuilder:Read () in 0x001aa Mono.Xml.XPath.DTMXPathDocumentBuilder:Compile () in 0x00189 Mono.Xml.XPath.DTMXPathDocumentBuilder:Init (System.Xml.XmlReader,System.Xml.XmlSpace,int) in 0x00047 Mono.Xml.XPath.DTMXPathDocumentBuilder:.ctor (System.Xml.XmlReader,System.Xml.XmlSpace,int) in 0x00015 Mono.Xml.XPath.DTMXPathDocumentBuilder:.ctor (System.Xml.XmlReader,System.Xml.XmlSpace) in 0x00030 System.Xml.XPath.XPathDocument:Initialize (System.Xml.XmlReader,System.Xml.XmlSpace) in 0x0001f System.Xml.XPath.XPathDocument:.ctor (System.Xml.XmlReader,System.Xml.XmlSpace) in 0x00223 Mono.Xml.Xsl.XslTransformProcessor:GetDocument (System.Uri) in 0x0010d Mono.Xml.Xsl.XsltDocument:GetDocument (Mono.Xml.Xsl.XsltCompiledContext,string,string) in 0x00349 Mono.Xml.Xsl.XsltDocument:Evaluate (System.Xml.XPath.BaseIterator) in 0x00046 System.Xml.XPath.CompiledExpression:Evaluate (System.Xml.XPath.BaseIterator)
RE: [Mono-list] Microsoft published .net based FlexWiki-Code under OpenSource
[EMAIL PROTECTED] wrote: After WiX und WTL Microsoft published his third OpenSource-project: http://www.flexwiki.com/ The project is on Sourceforge at http://sourceforge.net./project/showfiles.php?group_id=104906 That appears to be the flexwiki-contrib project. The FlexWiki project proper can be found at https://sourceforge.net/projects/flexwiki/ -- Arild AnkhSVN: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn The problem in the world today is communication. Too much communication. -- Homer Simpson ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Re: AW: Re: AW: OSS alternative to ASP.NET for use with Mono?
[EMAIL PROTECTED] wrote: Yes, but this isn't a 'gift'. This is very proprietary, and has network and lock-in effects that jeeps don't have. Besides, Jeeps are too big, take too much gas for my needs, and many are not very reliable. I'd prefer a simple, reliable, compact vehicle of some sort. Simple, reliable, compact vehicles need good roads. You wouldn't have those in the stone age. -- Arild AnkhSVN: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn Weaseling out of things is good. It's what separates us from the other animalsexcept weasels. -- Homer Simpson ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Using Exceptions with external Plugins
[EMAIL PROTECTED] wrote: Cool! Thanks! Now, how can I get sure that the InnerException is a XmlRpcFaultException or a XmlRpcMissedSomething?, I'm trying with this: } catch(TargetInvocationException e) { if(e.InnerException.GetType().ToString() == CookComputing.XmlRpc.XmlRpcFaultException) { Console.WriteLine(yes); } But I don't think it's the correct way/code, any suggestions? You might want to take advantage of the fact that Type.InvokeMember actually performs virtual dispatch based on the runtime type of the object *AND* all of the parameters, IE, it performs double/triple/ntuple dispatch. That means the following will work the way you want it to: catch( TargetInvocationException e ) { Type t = this.GetType(); t.InvokeMember( HandleException, BindingFlags.InvokeMethod | BindingFlags.Instance | BindingFlags.NonPublic, null, this, new object[]{ e } ); } // ... private void HandleException( CookComputing.XmlRpc.XmlRpcFaultException e ) { //... } private void HandleException( FooException e ) { //... } private void HandleException( Exception e ) { // called if there are no other matching signatures } Of course, it isn't particularly fast... -- Arild AnkhSVN: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn Weaseling out of things is good. It's what separates us from the other animalsexcept weasels. -- Homer Simpson ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Using Exceptions with external Plugins
[EMAIL PROTECTED] wrote: Hi! I'm loading many plugins (assemblies, dll) from my App.exe, however sometimes a plugin can throw an exception, how can I catch it?, I can only catch the System.Reflection.TargetInvocationException cause I'm using Reflection/Invoke techniques.. but I can't 'catch' 'internal Exceptions' of these plugins. For example, a Plugin.dll can throw a CookComputing.XmlRpc.XmlRpcFaultException and it doesn't works, however System.Reflection.TargetInvocationException seems to catch it, but just the Invoke Exception. Any ideas? Pablo The docs on TargetInvocationException has this: When created, the TargetInvocationException is passed a reference to the exception thrown by the method invoked through reflection. The InnerException property holds the underlying exception. So tex.InnerException should give you what you need. -- Arild AnkhSVN: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn Weaseling out of things is good. It's what separates us from the other animalsexcept weasels. -- Homer Simpson ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] GAC-only installation?
Jaroslaw Kowalski wrote: Note that MS doesn't allow you to reference dlls in the GAC. Oh, it's doable. You just need to figure out what the real path is. -- Arild AnkhSVN: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn We've got to find out what people want from fire, how they relate to it, what sort of image it has for them.' The crowd were tense. They were expecting something wonderful from Ford.`Stick it up your nose,' he said.`Which is precisely the sort of thing we need to know,' insisted the girl, `Do people want fire that can be fitted nasally?' ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] implicit, explicit, and why does C# have these?
David La Motta wrote: Thanks for the explanation. I can see how the implicit operator can be useful in the example you describe; still, I think it wasn't necessary for C# to expose them to us. I.e., let us deal with the explicit casts and spare the confusion they may cause. In other words, an implicit cast from a Pear object to a Truck object can seem quite odd, assuming their inheritance tree has nothing in common. Sure, but would you really want to be required to use an explicit cast when converting an int to a long? -- Arild AnkhSVN: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog RSS: http://ankhsvn.com/blog/Rss.aspx King Crimson lives in different bodies at different times and the particular form which the group takes changes. When music appears, which only King Crimson can play then, sooner or later, King Crimson appears to play the music ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] implicit, explicit, and why does C# have these?
David La Motta wrote: I guess I should expand on my [sort-of] gripe. Implicit casting by the language itself is OK where it makes sense, like in your example of int and long. But, logically, it can be confusing to use an implicit operator to convert between objects that have nothing in common, and never will (like Truck and Pear, for instance). That's why you don't use the implicit operator to convert between those objects :-) That's what 'explicit' is for. -- Arild AnkhSVN: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog RSS: http://ankhsvn.com/blog/Rss.aspx King Crimson lives in different bodies at different times and the particular form which the group takes changes. When music appears, which only King Crimson can play then, sooner or later, King Crimson appears to play the music ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] ThreadPool, why?
[EMAIL PROTECTED] wrote: Subject: [Mono-list] ThreadPool, why? I don't understand the benefits of using a ThreadPool instead of launching simple Threads, I have read in several articles that its just more efficient, but I don't know why? What are the advantages of using ThreadPools ? Because threads can(at least in some environments) be pretty expensive to create, and the overhead is just too much for very shortlived tasks. Better then to precreate a bunch of threads which you can just pass off work to whenever you need it. -- Arild AnkhSVN: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog RSS: http://ankhsvn.com/blog/Rss.aspx ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] §RE: [Mono-list] Suggestion: warning member variable notinitialized
[EMAIL PROTECTED] wrote: notinitialized On Sat, 2003-06-07 at 07:03, Thong (Tum) Nguyen wrote: Members are implicitly initialized to 0 or null so they do have a meaning even if you don't explicitly initialize them... Umm... no. Some [ValueType] types don't even have an equivalent to 0 or null. e.g., System.DateTime, IIRC. class Class1 { void Method() { Console.WriteLine( t ); } /// summary /// The main entry point for the application. /// /summary [STAThread] static void Main(string[] args) { new Class1().Method(); } private DateTime t; } Prints 01.01.0001 00:00:00. -- Arild ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list