Bug 19201 - [ExternalTools] Linux external tool error messages
Summary: [ExternalTools] Linux external tool error messages
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-06-04 16:04 EDT by Adam Schlegel CLA
Modified: 2009-08-30 02:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Schlegel CLA 2002-06-04 16:04:29 EDT
Build F2

When trying to run a shell script using External tools, the error messages for 
common errors could be improved.

If the script does not have the executable bit set, then the error that is 
reported is:
External tool failed to run because of an internal error.
Reason:
${tool-path}: cannot execute

If the script is missing the appropriate #! ${command} declaration at the 
beginning of the file, the error reported in the log console is:
Warning: UNIXProcess.forkAndExec native error: Exec format error

If the script contains the wrong path in the #! ${command} declaration, then 
the error reported to the log console is:
Warning: UNIXProcess.forkAndExec native error: No such file or directory

It would be better if the user could be told exactly what is wrong in each case.
Comment 1 Simon Arsenault CLA 2002-06-06 11:44:00 EDT
I agree, we should continue to improve our error messages. But sometimes it is 
not possible given the message given in the Exception we catch. We need to 
verify that the exception does not have a better message than what we are 
displaying. Or maybe it contains another exception with a better error message. 
Otherwise, the only option left is to look for these "common" error condition 
when the exception is thrown and try to generate a better message. This may be 
tricky because it would be platform dependent (windows does not have an execute 
permission flag problem, for example).
Comment 2 Darin Wright CLA 2002-11-15 10:43:57 EST
marking as later - nothing planned for 2.1
Comment 3 Denis Roy CLA 2009-08-30 02:17:25 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.