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.
When opening the Versioning Manager and then pressing Add the New Wizard - Generic CVS wizard does NOT contain the expected profiles as in Windows (missing CVS and the other profiles). This bug is probably related to the issue 50708
It seems that issue #50708 is just a consequence of this. I guess you did not uninstall any modules, did you? It might be specific to FreeBSD, because the profiles are enabled only on UNIX (or Windows) systems. If FreeBSD is not detected as a UNIX system, it can cause this bug. Can you please provide what gives you System.getProperty("os.name")?
No a fresh install actually of the Linux version. Could that be the problem? FreeBSD allows you to brand an executable as Linux. The install went OK, no problems there. From the messages.log file: Operating System = FreeBSD version 5.2.1-SECURITY running on i386 Java; VM; Vendor = 1.4.2-p6; Java HotSpot(TM) Client VM 1.4.2-p6- manfred_19_jun_2004_20_02; Sun Microsystems Inc. Java Home = /usr/local/jdk1.4.2/jre Simple program gives it as: FreeBSD
Thanks for the info. It looks that "FreeBSD" is not listed in org.openide.Utilities.getOperatingSystem(). Therefore it's not detected as a UNIX system. Moving to openide module.
What is the correct subcomponent? It's in util package. Does it have an owner? The fix is trivial, so it would be a pity not to have it fixed in 4.0.
Please, reviewers consider the attached proposed change in openide/util/Utilities. This change adds the FreeBSD in family of Unix OS. It easy and secure change, doable to NB4.0. Reason? This fix made FreeBSD to be recognized as Unix OS and its profiles in CVS Wizard won't be empty. Thanks
Created attachment 18489 [details] proposed patch
Field should not be named OS_FEEEBSD - is not fee oposite to free? Are not that two words? In such case OS_FREE_BSD is the prefered constant name. Also the change id should be more descriptive, I am pretty sure, there will be more fixes for FreeBSD in future. Otherwise harmless I think.
Thanks for notice, I have seen OS_FEEEBSD when I attached patch to issue :-( I'll fix it before merge. I'll make the record in apichanges to more descriptive.
Also looks OK to me; second Yarda's comments about constant name. Patch: Maybe we should be using 1 << 0, 1 << 1, 1 << 2, 1 << 3, etc. for OS constants rather than 1, 2, 4, 8, etc. Up to 65536 it's pretty easy to spot typos, but around 131072 I start to forget. :-) Get in the habit of using osName.toLowerCase(Locale.US) rather than osName.toLowerCase(), since you don't really want to use locale-sensitive case operations here I think! Probably doesn't make any difference in this case, but only because the string you are comparing to does not happen to contain the letter 'i'. apichanges.xml: Don't use "util/Utilities" to refer to the class. Use "Utilities" - or if necessary "org.openide.util.Utilities", but here it probably isn't since the <class> element will give a hyperlink anyway. <issue> does not belong there. Validate your XML when you save it.
Thanks for comments, I attach new fixed diff.
Created attachment 18512 [details] fixed diff
Created attachment 18513 [details] maybe a useless test
I am impressed by the "so called useless" test.
Thanks for comments. The fixed patch has been integrated in main trunk.
Checking in openide-spec-vers.properties; /cvs/openide/openide-spec-vers.properties,v <-- openide-spec-vers.properties new revision: 1.160; previous revision: 1.159 done Processing log script arguments... More commits to come... Checking in api/doc/changes/apichanges.xml; /cvs/openide/api/doc/changes/apichanges.xml,v <-- apichanges.xml new revision: 1.226; previous revision: 1.225 done Processing log script arguments... More commits to come... Checking in src/org/openide/util/Utilities.java; /cvs/openide/src/org/openide/util/Utilities.java,v <-- Utilities.java new revision: 1.146; previous revision: 1.145 done Processing log script arguments... More commits to come... RCS file: /cvs/openide/test/unit/src/org/openide/util/UtilitiesTest.java,v done Checking in test/unit/src/org/openide/util/UtilitiesTest.java; /cvs/openide/test/unit/src/org/openide/util/UtilitiesTest.java,v <-- UtilitiesTest.java initial revision: 1.1 done
*** Issue 51692 has been marked as a duplicate of this issue. ***
This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance.