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 86466

Summary: IOException when open any project
Product: cnd Reporter: alexandrov <alexandrov>
Component: ProjectAssignee: Thomas Preisler <thp>
Status: VERIFIED FIXED    
Severity: blocker Keywords: USABILITY
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description alexandrov 2006-10-04 14:44:26 UTC
Exclude path to gcc from PATH variable. Open Netbeans, open/create any project:

java.io.IOException: java.io.IOException: gcc: not found
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
	at java.lang.ProcessImpl.start(ProcessImpl.java:65)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
	at java.lang.Runtime.exec(Runtime.java:591)
	at java.lang.Runtime.exec(Runtime.java:429)
	at java.lang.Runtime.exec(Runtime.java:326)
	at
org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludesAndDefines(CCCCompiler.java:58)
	at
org.netbeans.modules.cnd.makeproject.api.compilers.GNUCCCompiler.getSystemIncludesAndDefines(GNUCCCompiler.java:407)
	at
org.netbeans.modules.cnd.makeproject.api.compilers.GNUCCCompiler.getSystemPreprocessorSymbols(GNUCCCompiler.java:96)
	at
org.netbeans.modules.cnd.makeproject.api.configurations.Item.getSystemMacroDefinitions(Item.java:246)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getMacroMap(ProjectBase.java:307)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getDefaultPreprocState(ProjectBase.java:259)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl.createIfNeed(ProjectImpl.java:48)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase$1.visit(ProjectBase.java:235)
	at
org.netbeans.modules.cnd.modelimpl.platform.ModelSupport.visitNativeFileItems(ModelSupport.java:228)
	at
org.netbeans.modules.cnd.modelimpl.platform.ModelSupport.visitProjectFiles(ModelSupport.java:259)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.ensureFilesCreated(ProjectBase.java:233)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.waitParse(ProjectBase.java:197)
	at
org.netbeans.modules.cnd.modelimpl.platform.ParserWarmUpTask$1.run(ParserWarmUpTask.java:52)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.CodeModelRequestProcessor$1.run(CodeModelRequestProcessor.java:57)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)


I set the high priority to this bug because it is visible from the first action
of user who has not previously installed gcc on his system.
Comment 1 Thomas Preisler 2006-10-06 06:38:03 UTC
Fixed. The compiler is not in the path and the parser cannot be configured.
Changed the ioe to an warning message.
Comment 2 dnikitin 2007-12-13 17:55:27 UTC
Verified in NetBeans IDE Dev (Build 200712130000)