Bug 4564

Summary: Eclipse plugin must detect if eclipse was started in a poky sourced environment
Product: [Documentation] ADT Manual Reporter: Codrin Pruteanu <codrin.c.pruteanu>
Component: SDKAssignee: brian avery <brian.avery>
Status: RESOLVED OBSOLETE QA Contact: Valentin Hangan <valentinx.hangan>
Severity: enhancement    
Priority: Medium CC: bogdanx.a.voiculescu, ioanax.grigoropol, jessica.zhang, poky.doc.watcher, poky.watcher, tim.orling, todor.minchev, yp.ep.watcher, yp.watcher
Version: 1.5   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Codrin Pruteanu 2013-05-27 14:10:46 UTC
Creating a bibtake commander project, implies that a poky environment will be sourced in the eclipse console. If eclipse is started in an already sourced environment by mistake, errors may appear. To prevent this, a check must be added in advance.

Error example:

Root exception:
java.io.IOException: Error while executing: DISABLE_SANITY_CHECKS=1 bitbake -e
Error: The OE SDK/ADT was detected as already being present in this shell environment. Please use a clean shell when sourcing this environment script.
Comment 1 Jessica 2013-08-28 22:00:25 UTC
Hi Codrin,

Since start eclipse is out of scope of Yocto Project, we can't fix the bug by chaning the code, we can add document that mention before start eclipse, the user need to run command from shell:

echo $OECORE_SDK_VERSION

if it's defined, they need to find a clean shell.

Thanks,
Jessica
Comment 2 brian avery 2017-02-14 15:12:09 UTC
This only affects bitbake commander which has been deprecated. Closing.