Bug 3539 - Unwanted errors appear if the Yocto Project ADT isn’t configured in Preferences
Summary: Unwanted errors appear if the Yocto Project ADT isn’t configured in Preferences
Status: RESOLVED WONTFIX
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium minor
Target Milestone: 1.5.4
Assignee: Jessica
QA Contact: Andra Necula
URL:
Whiteboard:
Depends on: 4009
Blocks:
  Show dependency tree
 
Reported: 2012-12-05 13:05 UTC by Alexandru Georgescu
Modified: 2014-12-03 23:57 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
err screen shot (301.42 KB, image/png)
2012-12-05 13:06 UTC, Alexandru Georgescu
no flags Details
error mesage (51.55 KB, image/png)
2013-03-11 11:34 UTC, Alexandru Georgescu
no flags Details
outcome error (160.73 KB, image/png)
2014-08-27 14:17 UTC, Andra Necula
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2012-12-05 13:05:21 UTC
ENVIRONMENT
Host: any linux machine (e.g. Fedora, Ubuntu)
Eclipse-plugin: any version, e.g. http://autobuilder.yoctoproject.org/pub/nightly/20121128-1/eclipse-plugin/
TOOLCHAIN/SYSROOT: any version, e.g.: http://autobuilder.yoctoproject.org/pub/nightly/20121128-1/adt_installer-QA/




STEPS TO REPRODUCE
1. Install adt-installer and the Yocto ADT plugin for Eclipse
2. Select File New project WITHOUT configuring the plugin in Preferences
3. Select C Project -> Hello World ANSI C Autotools Project
4. Complete the required fields and press OK (Project name: prj1)


EXPECTED OUTCOME:
1.	Only one error must be displayed announcing that the Project cannot be created and 

ACTUAL OUTCOME:
1.	After pressing the OK button after the normal Error is displayed additional errors appear (see attached “Screenshot at 2012-11-22 19 20 27” image
Comment 1 Alexandru Georgescu 2012-12-05 13:06:11 UTC
Created attachment 971 [details]
err screen shot
Comment 3 Alexandru Georgescu 2013-03-11 11:34:24 UTC
Created attachment 1109 [details]
error mesage

Reopening sice the error message still isn't clear.
Please see the new print screen attached
Comment 4 Alexandru Georgescu 2013-03-11 11:35:10 UTC
The eclipse-plugin commit id i have retested is: 
d18c45e0f5367979f7402380ee123242da2b57d5
Comment 5 Ioana Grigoropol 2013-03-27 15:29:26 UTC
After further investigation, I have realized that the problem here is the use of ProcessFailureException when we validate the project name.
It seems that in the upstream code, even if this error is thrown and shown, after caching it, the process still continues and somehow manages to hit a point where the project configuration is null, showing a second exception.
When using a different type of exception, such as OperationCanceledException, only one error message is shown, but whitout offering the possibility to configure the message shown(except for the details).
Comment 6 valentin 2014-04-10 12:38:06 UTC
Doesn't reproduce anymore on Juno and Kepler.
Comment 7 Andra Necula 2014-08-27 14:17:48 UTC
Created attachment 2095 [details]
outcome error
Comment 8 Andra Necula 2014-08-27 14:39:32 UTC
Verified with eclipse Kepler

poky: 52b788c6df9201764130ab744bf67b770b24b896
eclipse-poky-kepler: 4a167fd662262ebdaa3cf0d332ac0debb52d7904

Ubuntu 14.04, x86_64

Cheers! Andra N.
Comment 9 Jessica 2014-12-03 23:57:00 UTC
This is the best we can achieve to prompt the user with the info on the error by clicking the details due to limitation of underline upstream code