<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.sharpdevelop.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Matt Ward - All Comments</title><link>http://community.sharpdevelop.net/blogs/mattward/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>re: Converting C# and VB.NET Code to IronPython</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2009/05/11/ConvertingCSharpVBNetCodeToIronPython.aspx#26649</link><pubDate>Wed, 03 Jun 2009 18:55:57 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:26649</guid><dc:creator>MattWard</dc:creator><description>&lt;p&gt;Thanks for the bug reports.&lt;/p&gt;
&lt;p&gt;1) and 2) are fixed in 3.1.0.4172.&lt;/p&gt;
&lt;p&gt;3) is not fixed. Not sure what to do about this. A possible equivalent while loop would be:&lt;/p&gt;
&lt;p&gt;uid = file.ReadLine();&lt;/p&gt;
&lt;p&gt;while (uid != null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;ct++;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;uids.Add(uid);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;uid = file.ReadLine();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=26649" width="1" height="1"&gt;</description></item><item><title>re: Debugging IronPython Code in SharpDevelop</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2009/05/30/DebuggingIronPythonCode.aspx#26602</link><pubDate>Mon, 01 Jun 2009 14:17:13 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:26602</guid><dc:creator>djlawler</dc:creator><description>&lt;p&gt;Arg! &amp;nbsp;Why do I find these things a few moments AFTER I submit a comment. &amp;nbsp;The problem was with my application. &amp;nbsp;Normally the current working directory is where my application lives. &amp;nbsp;However, when SharpDevelop runs it changes the current working directory to where the IronPython executable lives. &amp;nbsp;I just had to specifically set the current working directory in my application to the proper place and the exception that was happenning (that I think my application cleverly was hiding), does not happen anymore. &amp;nbsp;I seem to be able to set breakpoints and have them get 'hit'. &amp;nbsp;So please ignore my earlier comment (though it might help others to know about the current working directory)?&lt;/p&gt;
&lt;p&gt;You rock!&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=26602" width="1" height="1"&gt;</description></item><item><title>re: Debugging IronPython Code in SharpDevelop</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2009/05/30/DebuggingIronPythonCode.aspx#26601</link><pubDate>Mon, 01 Jun 2009 13:27:47 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:26601</guid><dc:creator>djlawler</dc:creator><description>&lt;p&gt;This is extremely cool as there is no other IDE with anything near working debugging for IronPython. &amp;nbsp;However, I notice that when I try to debug a project that has a splash screen on another thread that the debugger stops working and then the debugging session just ends. &amp;nbsp;Is this expected behavior or is there a setting somewhere that would make this work?&lt;/p&gt;
&lt;p&gt;Thanks VERY much!&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=26601" width="1" height="1"&gt;</description></item><item><title>re: Converting C# and VB.NET Code to IronPython</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2009/05/11/ConvertingCSharpVBNetCodeToIronPython.aspx#26593</link><pubDate>Sun, 31 May 2009 15:45:54 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:26593</guid><dc:creator>Nivaldo Fernandes</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;First and foremost let me say to you how impressed I am with the converter feature. Great job!&lt;/p&gt;
&lt;p&gt;I was skeptical at first but decided to put it to a tough test (in my opinion): convert a C# program with 6,779 lines of code to IronPython (IP). The results were so encouraging...after spending some 3 hours or so adjusting the convertion, I had an IronPython version of the program with 3,955 working just right.&lt;/p&gt;
&lt;p&gt;It would have taken an hour or so less if it were not for the fact that I had a XML settings file that I serialized and de-serialized using serialization attributes...and declarative attributes do not yet work on IronPython. I had to substitute that for the &amp;nbsp;settings file techinque in the IronPython cookbook site (with minor adaptations).&lt;/p&gt;
&lt;p&gt;But back to the converter and in the spirit of giving you some feedback for the continuing improvement of it (please continue with this great project!), here are some issues that I encountered and that required adjustments:&lt;/p&gt;
&lt;p&gt;1) Dictionary and List declarations did not work too well.&lt;/p&gt;
&lt;p&gt;Here is the original declaration in C#:&lt;/p&gt;
&lt;p&gt;Dictionary&amp;lt;string, string&amp;gt; record = new Dictionary&amp;lt;string,string&amp;gt;();&lt;/p&gt;
&lt;p&gt;List&amp;lt;string&amp;gt; methods = new List&amp;lt;string&amp;gt;();&lt;/p&gt;
&lt;p&gt;And here are the resulting IP declarations:&lt;/p&gt;
&lt;p&gt;record = Dictionary()&lt;/p&gt;
&lt;p&gt;methods = List()&lt;/p&gt;
&lt;p&gt;I fixed this by making the following adjustments in the IP declarations:&lt;/p&gt;
&lt;p&gt;record = Dictionary[str,str]()&lt;/p&gt;
&lt;p&gt;methods = List[str]()&lt;/p&gt;
&lt;p&gt;So, no biggie, but something to keep in mind...&lt;/p&gt;
&lt;p&gt;2) A switch statement with &amp;nbsp;break did not convert correctly to IP.&lt;/p&gt;
&lt;p&gt;Here is the a piece of the switch statement in C#:&lt;/p&gt;
&lt;p&gt;switch (dtype)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;case &amp;quot;1&amp;quot;: record.Add(&amp;quot;FirstPostingDay&amp;quot;, day);&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;case &amp;quot;2&amp;quot;: record.Add(&amp;quot;AcceptedDay&amp;quot;, day);&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;Here is the resulting IP if-else stements:&lt;/p&gt;
&lt;p&gt;if dtype == &amp;quot;1&amp;quot;:&lt;/p&gt;
&lt;p&gt;	self._record.Add(&amp;quot;FirstPostingDay&amp;quot;, day)&lt;/p&gt;
&lt;p&gt;	break&lt;/p&gt;
&lt;p&gt;elif dtype == &amp;quot;2&amp;quot;:&lt;/p&gt;
&lt;p&gt;	self._record.Add(&amp;quot;AcceptedDay&amp;quot;, day)&lt;/p&gt;
&lt;p&gt;	break&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;The fix was easy, just to remove the break statements in IP, but I only found it when I ran the program against certain cases...so, one thing to watch out for in the Converter although it might prove difficult to programmatically decide whether the break statement is &amp;quot;legitimate&amp;quot;.&lt;/p&gt;
&lt;p&gt;3) While loop with assignment did not convert right?&lt;/p&gt;
&lt;p&gt;Here is the while loop in C#:&lt;/p&gt;
&lt;p&gt;while ((uid = file.ReadLine()) != null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;ct++;&lt;/p&gt;
&lt;p&gt;uids.Add(uid);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Here is the IP equivalent:&lt;/p&gt;
&lt;p&gt;while (uid = file.ReadLine()) != None:&lt;/p&gt;
&lt;p&gt;	ct += 1&lt;/p&gt;
&lt;p&gt;	uids.Add(uid)&lt;/p&gt;
&lt;p&gt;For me, the IP interpreter did not like the assignment inside the While loop...and I think Python does not allow it...but I may be wrong...I am not a Python expert...I am more of a .NET developer scripting .NET in IronPython.&lt;/p&gt;
&lt;p&gt;So, this is basically what I can remember that gave me trouble. I hope this helps out. Again, I am nothing but impressed with the job you guys did. Keep it up!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Nivaldo Fernandes&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=26593" width="1" height="1"&gt;</description></item><item><title>re: Using the Python Standard Library</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2009/03/01/UsingPythonStandardLibrary.aspx#25700</link><pubDate>Fri, 20 Mar 2009 07:14:01 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:25700</guid><dc:creator>MattWard</dc:creator><description>&lt;p&gt;The Python project templates should really add the mscorlib reference to the project by default or maybe the compiler should reference this by default. The project templates have been fixed in 3.1. &lt;/p&gt;
&lt;p&gt;The post does mention adding a reference to mscorlib and to do any serious .NET work with IronPython you will need this reference. In the example however if you remove the last three lines which wait for a key press the code will still work without an explicit reference to mscorlib in the project. In my project I originally had a reference to System, IronPython and IronPython.Modules only. It looks like the compiler will add one anyway if the reference does not exist in the project.&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=25700" width="1" height="1"&gt;</description></item><item><title>re: Using the Python Standard Library</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2009/03/01/UsingPythonStandardLibrary.aspx#25687</link><pubDate>Thu, 19 Mar 2009 20:35:48 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:25687</guid><dc:creator>WombatPM</dc:creator><description>&lt;p&gt;You also need to add a reference to mscorlib in order for the example to run without error.&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=25687" width="1" height="1"&gt;</description></item><item><title>Configurar Sharpdevelop 3.0 con Mono 2.2 en Windows &amp;laquo; ARCmop Java Programacion Solaris Linux</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2005/10/17/DetectingWhereMonoIsInstalled.aspx#25158</link><pubDate>Mon, 16 Feb 2009 09:36:45 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:25158</guid><dc:creator>Configurar Sharpdevelop 3.0 con Mono 2.2 en Windows « ARCmop Java Programacion Solaris Linux</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Configurar Sharpdevelop 3.0 con Mono 2.2 en Windows &amp;amp;laquo; ARCmop Java Programacion Solaris Linux&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=25158" width="1" height="1"&gt;</description></item><item><title>Python .Net | hilpers</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2005/10/12/SharpDevelopAndMono.aspx#24830</link><pubDate>Thu, 22 Jan 2009 15:38:20 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:24830</guid><dc:creator>Python .Net | hilpers</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Python .Net | hilpers&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=24830" width="1" height="1"&gt;</description></item><item><title>SharpDevelop 2 Beta 1</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2005/11/09/MissingFeaturesInSharpDevelop2.aspx#23672</link><pubDate>Mon, 06 Oct 2008 15:54:03 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:23672</guid><dc:creator>OSZine</dc:creator><description>&lt;p&gt;Die freie .NET IDE SharpDevelop n&amp;#228;hert sich in der Version 2 ihrer Fertigstellung. Die Entwickler gaben ihre bisherigen Arbeiten in einer ersten Betaversion frei.&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=23672" width="1" height="1"&gt;</description></item><item><title>re: XML Editor Reuse</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2008/08/31/XmlEditorReuse.aspx#23248</link><pubDate>Tue, 02 Sep 2008 16:40:13 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:23248</guid><dc:creator>MJHutchinson</dc:creator><description>&lt;p&gt;I completed integrating your XML editor addin into MonoDevelop in March, and I've found it to be a great help in providing HTML code completion in the ASP.NET editor. Thanks!&lt;/p&gt;
&lt;p&gt;I've actually been writing a new XML-like completion triggering parser for the ASP.NET addin which you might find useful for the XML addin in #develop; at some point I intend to use it in the MD XML and XAML addins. It's optimised to consume one character at a time, so it's very efficient when typing forwards. It maintains a full &amp;quot;path&amp;quot; of parent nodes that we use for a path navigation bar, it can optionally generate a XDom-like DOM, and it's pretty robust against malformed input.&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=23248" width="1" height="1"&gt;</description></item><item><title>IronPython 2.0 Beta Integration</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2007/10/21/IronPythonIntegrationInSharpDevelop22.aspx#23126</link><pubDate>Wed, 20 Aug 2008 20:32:53 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:23126</guid><dc:creator>Matt Ward</dc:creator><description>&lt;p&gt;Support for IronPython 2.0 Beta 4 is now available with SharpDevelop 3. Missing Features Some of the&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=23126" width="1" height="1"&gt;</description></item><item><title>Reflective Perspective - Chris Alcock  &amp;raquo; The Morning Brew #124</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2007/10/21/IronPythonIntegrationInSharpDevelop22.aspx#22446</link><pubDate>Fri, 27 Jun 2008 07:25:03 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:22446</guid><dc:creator>Reflective Perspective - Chris Alcock  » The Morning Brew #124</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Reflective Perspective - Chris Alcock &amp;nbsp;&amp;amp;raquo; The Morning Brew #124&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=22446" width="1" height="1"&gt;</description></item><item><title>WiX 3.0 Integration</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2006/09/17/WixIntegration.aspx#20372</link><pubDate>Wed, 02 Jan 2008 23:31:52 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:20372</guid><dc:creator>Matt Ward</dc:creator><description>&lt;p&gt;SharpDevelop 3.0 now supports WiX 3.0. There are some changes to how things work compared to the WiX&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=20372" width="1" height="1"&gt;</description></item><item><title>Doctor Deploys Blog  ::     WiX editors.</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2006/09/17/WixIntegration.aspx#19854</link><pubDate>Wed, 21 Nov 2007 08:05:51 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:19854</guid><dc:creator>Doctor Deploys Blog  ::     WiX editors.</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Doctor Deploys Blog &amp;nbsp;:: &amp;nbsp; &amp;nbsp; WiX editors.&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=19854" width="1" height="1"&gt;</description></item><item><title>re: IronPython Integration In SharpDevelop 2.2</title><link>http://community.sharpdevelop.net/blogs/mattward/archive/2007/10/21/IronPythonIntegrationInSharpDevelop22.aspx#19805</link><pubDate>Sun, 18 Nov 2007 16:44:19 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:19805</guid><dc:creator>MattWard</dc:creator><description>&lt;p&gt;Adding a StatusStrip and a ToolStripStatusLabel worked for me. The only way I could reproduce your problem was to add an event handler for a toolstrip label or a menu item. If you comment out the event handler assignments, for example:&lt;/p&gt;
&lt;p&gt;self._toolStripStatusLabel2.Click += self.ToolStripStatusLabel2Click&lt;/p&gt;
&lt;p&gt;then I could get the designer to work again.&lt;/p&gt;
&lt;p&gt;Please note that this adding is still an alpha and the forms designer has not completely finished yet. But thanks for the bug report and I will look into fixing the problem.&lt;/p&gt;
&lt;img src="http://community.sharpdevelop.net/aggbug.aspx?PostID=19805" width="1" height="1"&gt;</description></item></channel></rss>