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.
Product Version: NetBeans IDE 6.5 (Build 20081106113300) Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) In the new build, initially starting ide from fresh userdir shows duplicates of both the python versions 2.5.2 and 2.6 from the list. see attached screenshots.
Created attachment 73398 [details] duplicate entries in python platforms
This is a regression from previous builds.
Peter, can you double check that you really really did start with a fresh user directory? Also, what is the location you installed NetBeans in -- is it in C:\Program Files\ or C:\ ?
...and can you attach your user directory's build.properties file? (It's in the top level directory of your userdir)
Yeah, from fresh userdir. I always started with fresh as below. I tried a few times by deleting the userdir each time and got the same. Userdir: C:\Users\peter\.netbeans\dev-python-20081106 This is a zip build and I put it in the following directory using my convention so I don't have conflict between builds. C:\Users\peter\nbPython\netbeans-hudson-python-157-20081106
Created attachment 73400 [details] Special version of the platform module with diagnostic logging
Hi Peter, can you please do the following: (1) Exit the IDE (2) Clear your user directory (3) Download the attached module (org*-python-core.jar), and copy it into your IDE's installation in the python1/modules/ directory (overwrite the existing version that is there) (4) Invoke the IDE with this extra flag: -J-Dorg.netbeans.modules.python.api.level=300 Then reproduce the bug (confirm that you see the duplicate platforms), and exit the IDE. Then attach the log file. I've instrumented the platform core with lots of diagnostics which should at least help show why this is happening for you and not me.
Ok, followed your steps to get the ide log file. see attached. In fact, I didn't realize that it has to be done with the following steps to get it. If open the platform manager from Tools initially, this doesn't happen. - after ide started, create new project - from the new project wizard, select a project type that can be one of the two - click Next - from the Python Platform dropdown list, click on the arrow to show the full list. from here the duplicates show up.
Created attachment 73401 [details] ide log file
Created attachment 73402 [details] build.properties file
Thanks for the info! It showed exactly what the problem was: For that specific scenario (new project wizard) you can end up with two concurrent auto detects (subject to race condition, which is why I didn't see it - this probably only happens on Windows where the auto detect takes longer)! So after the list has been cleared, the two auto detects both populate the list! I've synchronized the auto detect facility now such that this won't happen. Fixed in changeset 170a69907cdf.
Thanks. I actually see it on Mac as well. Haven't tried other platforms though.
The fix will appear in build 161, now in progress: http://deadlock.netbeans.org/hudson/job/python/161/
verified in build 164 (20081107)