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 152579 - duplicate python platform
Summary: duplicate python platform
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-06 21:06 UTC by Peter Lam
Modified: 2009-01-15 01:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
duplicate entries in python platforms (106.32 KB, image/png)
2008-11-06 21:07 UTC, Peter Lam
Details
Special version of the platform module with diagnostic logging (86.78 KB, application/octet-stream)
2008-11-06 22:15 UTC, Torbjorn Norbye
Details
ide log file (47.21 KB, text/plain)
2008-11-06 22:44 UTC, Peter Lam
Details
build.properties file (2.73 KB, text/plain)
2008-11-06 22:49 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-11-06 21:06:28 UTC
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.
Comment 1 Peter Lam 2008-11-06 21:07:27 UTC
Created attachment 73398 [details]
duplicate entries in python platforms
Comment 2 Peter Lam 2008-11-06 21:10:58 UTC
This is a regression from previous builds.
Comment 3 Torbjorn Norbye 2008-11-06 21:40:00 UTC
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:\ ? 
Comment 4 Torbjorn Norbye 2008-11-06 21:51:26 UTC
...and can you attach your user directory's build.properties file? (It's in the top level directory of your userdir)
Comment 5 Peter Lam 2008-11-06 22:00:54 UTC
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
Comment 6 Torbjorn Norbye 2008-11-06 22:15:50 UTC
Created attachment 73400 [details]
Special version of the platform module with diagnostic logging
Comment 7 Torbjorn Norbye 2008-11-06 22:21:03 UTC
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.
Comment 8 Peter Lam 2008-11-06 22:43:35 UTC
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.
Comment 9 Peter Lam 2008-11-06 22:44:46 UTC
Created attachment 73401 [details]
ide log file
Comment 10 Peter Lam 2008-11-06 22:49:54 UTC
Created attachment 73402 [details]
build.properties file
Comment 11 Torbjorn Norbye 2008-11-06 23:33:52 UTC
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.
Comment 12 Peter Lam 2008-11-06 23:59:41 UTC
Thanks. I actually see it on Mac as well. Haven't tried other platforms though.
Comment 13 Torbjorn Norbye 2008-11-07 00:23:13 UTC
The fix will appear in build 161, now in progress:
http://deadlock.netbeans.org/hudson/job/python/161/
Comment 14 Peter Lam 2008-11-08 02:05:53 UTC
verified in build 164 (20081107)