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 171003 - Errors hints don't work with "from package import *"
Summary: Errors hints don't work with "from package import *"
Status: CLOSED WONTFIX
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 15:29 UTC by cdimauro
Modified: 2017-06-23 08:05 UTC (History)
2 users (show)

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 cdimauro 2009-08-27 15:29:54 UTC
I have the following code:

from asn1.asn1 import *

ProfileLevel = SEQUENCE([('id', 0, INTEGER)],
  seq_name = 'ProfileLevel')


SEQUENCE and INTEGER are correctly defined in the asn1.asn1 module (they are classes), but editor 
signals both as "Undefined name" so the source code seems to be affected by errors which aren't.

The following code works:

from asn1 import asn1

ProfileLevel = asn1.SEQUENCE([('id', 0, asn1.INTEGER)],
  seq_name = 'ProfileLevel')

No errors are signaled.

Navigation works too in both cases.
Comment 1 dhalbert 2009-09-15 21:11:45 UTC
Here's another easily reproducible example:
-----------------------------
1 from Tkinter import *
2 
3 class Main(Tk):
4     root = Tk()
-----------------------------
NB shows a red exclamation for line 3: 'Inheriting from undefined parent class "Tk"'
However, no error is shown on line 4 (which is correct).
Comment 2 Jenselme 2017-06-22 21:57:54 UTC
I don't think this can be fixed. Follow the coding rule: avoid start import. Closing this.
Comment 3 Jiri Kovalsky 2017-06-23 08:05:30 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.