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.
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.
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).
I don't think this can be fixed. Follow the coding rule: avoid start import. Closing this.
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.