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 172514

Summary: Code completion don't see the assigned type
Product: python Reporter: devarni <devarni>
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: CLOSED FIXED    
Severity: blocker CC: Jenselme
Priority: P3    
Version: 6.x   
Hardware: Other   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description devarni 2009-09-17 18:55:55 UTC
Have a global variable of type list:

__my_global_list = list()


Access this variable later inside a class... After the dot, code completion shows "netbeans cannot figure out type of
this variable"

class Test:
  def add(value):
    global __my_global_list
    __my_global_list.


Code completion doesn't recognize if a built-in type was set to a variable and so this variable (say better "object")
are now of this type.

(I tested this also with pydev where its working correctly and also shown with the correct type "list" in the info popup)
Comment 1 Jenselme 2017-06-22 21:58:23 UTC
Completion is being reworked for the new release planed in August. Not sure it is still relevant with the current version. Closing this as old bug.
Comment 2 Jiri Kovalsky 2017-06-23 08:06:15 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.