| Summary: | Java error when creating a project with invalid title | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Yocto Project Subprojects] Eclipse Plugin | Reporter: | Alexandru Georgescu <alexandru.c.georgescu> | ||||
| Component: | eclipse-plugin | Assignee: | Jessica <jessica.zhang> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | andrax.g.necula, ioanax.grigoropol, jessica.zhang, ross.burton, sgw, yp.ep.watcher, yp.watcher | ||||
| Version: | 1.4 | ||||||
| Target Milestone: | 1.5.4 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Bug Depends on: | 4008 | ||||||
| Bug Blocks: | 3539 | ||||||
| Attachments: |
|
||||||
This error comes from inside org.eclipse.cdt.internal.autotools.ui.wizards.AutotoolsBuildWizardHandler.createProject, where somehow the project seems to have a missing description. The project is created by the CDT plugin, along with its definition. At the time we post process the templates, and throw the error for invalid project name, we must also delete the project created, and my guess is that somewhere between these two events, autotools is trying to create a project, that now has a missing description, and recovering from earlier versions fails. The only fix that comes to my mind is to create a custom yocto wizard in which to put all the templates, which will give us the possibility to validate the project name as we go along, not at the end, when we do not have any chance of recovering. 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, after caching it, the process still continues and somehow manages to hit a point where the project configuration is null. 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). The bug is reproduced in eclipse kepler poky: 52b788c6df9201764130ab744bf67b770b24b896 eclipse-poky-kepler: 4a167fd662262ebdaa3cf0d332ac0debb52d7904 Ubuntu 14.04, x86_64 Cheers! Andra N. |
Created attachment 1111 [details] err eclipse-plugin:d18c45e0f5367979f7402380ee123242da2b57d5 STEPS TO REPRODUCE: 1. Install the eclipse-plugin into Eclipse Juno 2. Configure eclipse with Sysroot, toolchain, kernel, etc. 3. Try to create a new project with spaces in it's name, e.g. "PRJ ONE" EXPECTED RESULTS 3. When pressing finnish, an error appears informing the user that the project name(s) cannot contain space(s). ACTUAL RESULTS 4. The error appears, but after clicking OK to close the error, an additional error appear (see attachment) The second error should not be present.