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.
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_03-b05 OS: Linux, 2.6.22-14-generic, amd64 User comments: I was trying to create new C/C++ project from existing code, being CARMEN (carmen.sf.net), version 0.7-beta. STACKTRACE: (first 10 lines) java.lang.NullPointerException at org.netbeans.modules.cnd.makeproject.ui.wizards.NewMakeProjectWizardIterator.instantiate(NewMakeProjectWizardIterator.java:245) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1025) at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:595) at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:416) at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248) at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:161) at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1387) at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1341) at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:119) at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1908)
I've created this issue because I was unable to post additional comments in my previously reported exception (as Guest). After clicking "Send" I was twice asked for my username and password, before logging in, and then I was redirected to "My start page". After that, I navigated back to exception page, to se that my comment wasn't on the page. Entering comment again and hitting post repeats this cycle. So, here's the comment: I tried to use CARMEN's Makefile, rather than configure script, and that solves the problem. Exception isn't thrown, and my project gets created. Maybe thats because CARMEN doesn't use autoconf? Sorry for reporting the same exception twice (18941 and 18942), Netbeans said that first report failed.
The problem is the configure script in carmen is written in perl which is not a supported scripting langauge by the C/C++ plugin. I fixed this by adding '/usr/bin/perl' to list of recognized scripting languages. I does fix the problem with the configure scrip in this bug report but probably more work is needed to properly support perl scripting language in general.
Fixed: Checking in CndSniffyMIMEResolver.java; /cvs/cnd/core/src/org/netbeans/modules/cnd/loaders/CndSniffyMIMEResolver.java,v <-- CndSniffyMIMEResolver.java new revision: 1.6; previous revision: 1.5 done
--- CndSniffyMIMEResolver.java 30 Nov 2007 11:01:41 -0000 1.5 +++ CndSniffyMIMEResolver.java 21 Jan 2008 22:42:48 -0000 1.6 @@ -118,7 +118,8 @@ line.startsWith("#!/bin/sh") || // NOI18N line.startsWith("#!/bin/ksh") || // NOI18N line.startsWith("#!/bin/csh") || // NOI18N - line.startsWith("#!/bin/zsh")) { // NOI18N + line.startsWith("#!/bin/csh") || // NOI18N + line.startsWith("#!/usr/bin/perl")) { // NOI18N return true; } }
Verified in build 20080211
Could be an issue with the commit message or my eyes, but looks like the patch removed "/bin/zsh" and added a duplicate of "/bin/csh" instead...
*reopening issue to draw some attention*
I checked 6.1, 6.1_fixes, and 6.5 sources. They all have the duplication, which seem wrong but shouldn't cause serious problems. Do you see a specific problem with any builds today? The code has been completely rewritten in 7.0 so it would require a different fix is it doesn't work in 7.0.
I checked 7.0 dev and it seems to OK with perl configure scripts. Will close as Worksforme. Please reopen if there are any reproducible issues.
I guess I should open another issue - given this is for perl script. However, I am referring to the absence of "/bin/zsh", not (just) the duplication of "/bin/csh"...