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 152104

Summary: [65cat] Netbeans Hangs With Ctrl+Click on Python Code
Product: python Reporter: sunbiz <sunbiz>
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump

Description sunbiz 2008-11-01 20:31:09 UTC
[ BUILD # : 200810312121 ]
[ JDK VERSION : other ]

Steps to reproduce:
1.) Create a new python project with python executable
2.) Right-click on source and Insert Code -> Property
3.) Leave the property field blank
4.) A method: __init__(self) is created
5.) Ctrl+click on __init__ hangs the IDE for close to 30 secs

Check the attached threaddump
Comment 1 sunbiz 2008-11-01 20:31:55 UTC
Created attachment 73053 [details]
thread dump
Comment 2 Torbjorn Norbye 2008-11-02 08:11:00 UTC
Fixed in changeset c0018bda3031. The problem was there was a bug such that constructors functions weren't marked as constructors in the index, and, 
there are thousands of instances of functions named "__init__", so when it was trying to find a valid declaration location, it was iterating through each one of 
these, parsing the corresponding file to try to find the given function - and failing every time since the element types didn't match.
Comment 3 Peter Lam 2008-11-04 18:20:00 UTC
verified in build 146 (2008110404162)