Code completion in NetBeans' python plugin does not work properly
Posted
by T.K.
on Stack Overflow
See other posts from Stack Overflow
or by T.K.
Published on 2010-04-12T17:49:38Z
Indexed on
2010/04/12
17:53 UTC
Read the original article
Hit count: 382
I am asking on StackOverflow because surely I am doing something completely silly and I hope S.O. might provide me with a quick answer. I've installed the latest stable Python-plugin for NetBeans. It works great, and I tested code completion with various packages such as sys, os and so on. It works beautifully.
However, it does not seem to pick up the code completion for the code in my own project.
I created a package called mypackage (it has _init_.py as well), and in it I have a module called mymodule.py. Inside mymodule I've put a class called MyClass, complete with doc-strings and all.
Please refer to this screenshot to describe what happens in code-completion:

As you see, it's suggesting irrelevant things, as opposed to just MyClass.
(Note that if I execute mymodule.MyClass() it works 100%, it's just that I would really like code completion on my own code)
Hope I'm just doing something silly here... Any ideas?
© Stack Overflow or respective owner