Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321136

Summary: xlUPC project gives NPE on build if xlupc not installed
Product: [Tools] CDT Reporter: Beth Tibbitts <beth>
Component: cdt-build-managedAssignee: Project Inbox <cdt-build-managed-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Beth Tibbitts CLA 2010-07-28 11:05:27 EDT
OK, granted, I don't have xlUPC on this machine but...

To recreate:
I created a new BUPC project (just to get its 'hello world') and called it helloBUPC
I created a new xlUPC project
  (new C project, select, under "Executable (XLUPC)" i selected "Empty Project" with the  XL UPC Tool Chain selected ( it was the only toolchain selection available)
I pasted the src dir from my helloBUPC project into my xlUPC project, to get the sample code
I built it by hitting the hammer icon with the xlUPC project selected.
A red 'x' appears on the project but no other error indication.
However the console does show

make all 
Building file: ../src/helloUPC.upc
Invoking: Local XL UPC Compiler
/usr/vacpp/bin/xlupc -c -O0 -g -o"src/helloUPC.o" "../src/helloUPC.upc"
/bin/sh: /usr/vacpp/bin/xlupc: No such file or directory
make: *** [src/helloUPC.o] Error 127

Error but no info at all for the user to see
Error log shows:
java.lang.NullPointerException
at org.eclipse.cdt.managedbuilder.xlc.ui.wizards.XLCSettingsWizardRunnable.run(XLCSettingsWizardRunnable.java:40)
at org.eclipse.cdt.managedbuilder.xlupc.ui.wizards.XLUpcSettingsWizardRunnable.run(XLUpcSettingsWizardRunnable.java:45)

Can we give the user a more obvious error message in a dialog or something that is more visible?
Or is a console message all that is expected?
The console didn't come forward so a new user may not know to look.