Re: [IronPython] Snippets in Trackback

2008-03-30 Thread Curt Hagenlocher
On Sun, Mar 30, 2008 at 5:20 AM, Davy Mitchell <[EMAIL PROTECTED]> wrote: > A better example is the single line 'self.test' saved to to test2.py > > ipy test2.py > C:\Code\OSProjects>ipy test2.py > Traceback (most recent call last): > File Snippets, line unknown, in Initialize > NameError: name 's

Re: [IronPython] Snippets in Trackback

2008-03-30 Thread Davy Mitchell
Hi Curt, Yeah the errors are pretty trivial to fix - usually XAML typos and the .Net detail is fine to fix it. I was just a little confused about Snippets in the traceback but no reference to my 'test.py' file. A better example is the single line 'self.test' saved to to test2.py python test2.py

Re: [IronPython] Snippets in Trackback

2008-03-30 Thread Curt Hagenlocher
This works for me once I fix the mismatched XML tag (and the mail-induced line breaks). And when I don't, I get pretty explicit error messages as the text of the exception: SystemError: The 'DockPanel' start tag on line 4 does not match the end tag of 'DockPanelTest'. Line 5, position 3. -or- Syn

Re: [IronPython] Snippets in Trackback

2008-03-29 Thread Davy Mitchell
This has the desired effect: import clr clr.AddReference("System.Xml") clr.AddReference("PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") clr.AddReference("PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") from System.IO

Re: [IronPython] Snippets in Trackback

2008-03-29 Thread Curt Hagenlocher
The "snippets" represent executable code that's generated dynamically by the DLR from your Python source. Do you have a small piece of sample code that reproduces the failure? On Sat, Mar 29, 2008 at 1:28 PM, Davy Mitchell <[EMAIL PROTECTED]> wrote: > Hi All, > > IPY2.0 B1 Vista SP1 > > I keep s