This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 156984

Summary: Code completion does not recognize packages imported via "from <> import <>"
Product: python Reporter: gkachru <gkachru>
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description gkachru 2009-01-17 08:43:05 UTC
A common was to import packages is to use the syntax "from base import package". However Netbeans does not recognize the type of "package" when 
attempting to auto-complete.

It does however give correct completion when the import syntax used is the following: "import base.package as package".

For django projects especially, the first syntax is heavily used (examples: from django.db import models, from django.contrib import admin) as recommended 
in the django documentation. This issue completely limits the usability of the IDE.
Comment 1 Torbjorn Norbye 2009-01-23 01:35:09 UTC
Fixed in changeset 82b2efc7c927, will appear in build #4880 or later from http://deadlock.netbeans.org/hudson/job/trunk/.

Thanks for the bug report!