Bug 321136 - xlUPC project gives NPE on build if xlupc not installed
Summary: xlUPC project gives NPE on build if xlupc not installed
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 11:05 EDT by Beth Tibbitts CLA
Modified: 2020-09-04 15:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.