[IronPython] autocompletion (intellisense) for clr.AddReference

SNS DAS dasneutron at gmail.com
Fri Jan 7 05:19:59 CET 2011


Hi,

I am using VS 2010 and IronPython 2.7B1 and noticed that
autocompletion works for "native" (Iron)Python modules (e.g. math).

However when I try to import a 'dll' module
# #### Program.py
import clr
clr.AddReference('ClassLibrary.dll')
from ClassLibrary import *

x = SomeClass()
x.Value = 1
x.<TAB>

I get a "syntax" error
(syntax error)


The "dll" module is a simple class library C# project

#ClassLibrary C# (output to ClassLibrary.dll)
namespace ClassLibrary
{
    public class SomeClass
    {
        public int Value = 0;
        public SomeClass() {}
    }
}




Is there a "hidden" setting or some other magic that one needs to
perform in order to enable autocompletion for dll modules?

Thanks

Piotr

P.S.
I just noticed that

import System.Text as text
text.<TAB>   produces autocompletion list

whereas

import System.Text
System.Text.<TAB> does not

What the heck?



More information about the Ironpython-users mailing list