Re: [IronPython] Creating GUI Controls with IronPython

2007-09-11 Thread Dino Viehland
I talked to one of the VS SDK guys and they haven't tested / used this scenario so it's likely you'll run into some issues with it. What does work is consuming a user control that's been written in C# but unfortunately not in IronPython. If you're feeling adventurous you could try creating a f

Re: [IronPython] Ironpython 2 Alpha 4

2007-09-11 Thread Dino Viehland
Ahh, so the fix for this particular issue if you want to patch your own copy of IronPython. In Microsoft.Scripting.Actions.SetMemberBinderHelper there's a method called MakePropertyRule. There's lines that look like: if (setter != null) { if (IsStaticProperty(info,

Re: [IronPython] Creating GUI Controls with IronPython

2007-09-11 Thread luis cota
I may be misunderstanding your response, or I misstated my question. What I'd like to do is create a new User Control using the IronPython plugin for VS 2005. When I create a new project or add a new Item to my project, I cannot see User Control as an option, only a Form. Is there a way around t

Re: [IronPython] Ironpython 2 Alpha 4

2007-09-11 Thread David . Lawler
Hi Dino, Here it is. Thanks for taking a look at it. "C:\Program Files\IronPython2A4\ipy.exe" -X:ExceptionDetail -X:ShowClrExceptions "IronPythonDev.py" ICSharpCode.TextEditor.Document.DefaultDocument.set_HighlightingStrategy(ICSharpCode.TextEditor.Document.IHighlightingStrategy) at _stub_#

Re: [IronPython] Ironpython 2 Alpha 4

2007-09-11 Thread Dino Viehland
Well, I don't need any more info actually... here's the bug: // Private class class PrivateClass : IPublicInterface { public IPublicInterface Hello { get { return null; } set { } } } // Public Interface public interface IPublicInterface

Re: [IronPython] Ironpython 2 Alpha 4

2007-09-11 Thread Dino Viehland
It definitely looks like a bug - maybe related to the fact that these are interface methods & properties. Could I get you to do one more thing and re-run w/ -X:ExceptionDetail and -X:ShowClrExceptions? I've opened a bug (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=12708) t

Re: [IronPython] Ironpython 2 Alpha 4

2007-09-11 Thread David . Lawler
Yes I can - thanks for the quick reply! >"C:\Program Files\IronPython2A4\ipy.exe" -X:ExceptionDetail "IronPythonDev.py" ICSharpCode.TextEditor.Document.DefaultDocument.set_HighlightingStrategy(ICSharpCode.TextEditor.Document.IHighlightingStrategy) at _stub_##40(Object[] , DynamicSite`3 , CodeC

Re: [IronPython] Creating GUI Controls with IronPython

2007-09-11 Thread darren
IIRC, there should be a drop-in control for "User Control", or the appropriate reference needs to be "checked" in the toolbox options. > I have downloaded the VS2005 Addin for IronPython (found on the msdn > Blogs). This is a fantastic way to have access to Intellisense for the > .NET > libraries

[IronPython] Creating GUI Controls with IronPython

2007-09-11 Thread luis cota
I have downloaded the VS2005 Addin for IronPython (found on the msdn Blogs). This is a fantastic way to have access to Intellisense for the .NET libraries. I'd like to use this to create a few GUI controls, though cannot find this option when selecting Add New Item in the Solution Explorer. It a

Re: [IronPython] Ironpython 2 Alpha 4

2007-09-11 Thread Dino Viehland
Is line 28: HighlightingManager.Manager.AddSyntaxModeFileProvider(FileSyntaxModeProvider(sys.path[0])); ? Can you provide the text of the exception (even better w/ the -X:ExceptionDetail command line option) ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

[IronPython] Ironpython 2 Alpha 4

2007-09-11 Thread David . Lawler
The following ugly hack works fine with IronPython 1.1 and with 2.0 alpha 3 but raises an exception on line 28 with IronPython 2.0 alpha 4. To run this you need a copy of the ICSharpCode.TextEditor.dll from SharpDevelop (http://www.icsharpcode.net/OpenSource/SD). Is this a bug or a new 'feature'?