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 - Code completion does not recognize packages imported via "from <> import <>"
Summary: Code completion does not recognize packages imported via "from <> import <>"
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-17 08:43 UTC by gkachru
Modified: 2009-02-19 22:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!