Bug 5720 - error when creating a local Bitbake Commander project with an existing git clone
Summary: error when creating a local Bitbake Commander project with an existing git clone
Status: VERIFIED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Jessica
QA Contact: Andra Necula
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-01-13 13:41 UTC by Ada Solcan
Modified: 2014-08-21 13:48 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
Error displayed when creating a local BB Commander project with an existing clone (134.21 KB, image/png)
2014-01-13 13:41 UTC, Ada Solcan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ada Solcan 2014-01-13 13:41:35 UTC
Created attachment 1713 [details]
Error displayed when creating a local BB Commander project with an existing clone

poky 6ee5d95317de77c1cfb6db6f1ab2de77f5fa085e
eclipse-poky-kepler c73c6e4510c42601854f3c542ca6e14b4510380c
HOST: Ubuntu 13.10 64bit

STEPS TO REPRODUCE
1. Perform a headless build for eclipse
2. Install eclipse plugin
3. Open Eclipse and switch to Bitbake Commander perspective on the right corner of the Eclipse window.
4. Create a new BitBake commander project:
  4.1 File -> New -> Project ->Yocto Bitbake Commander -> New Yocto Project
  4.2 Set Remote Service Provider to Local and Connection Name to Local 
  4.3 Set Project Location as the current a folder that contains an existing poky directory
  4.4 Set Project Name as the actual poky directory name
  4.5 "Clone from Yocto Project Git Repository into new location" has to be unchecked

EXPECTED RESULT
A local Bitbake Commander project should be created using the existing git clone

ACTUAL RESULT
An error saying that a project with the same name already exists is displayed (as seen in the atachment)
Comment 1 Ada Solcan 2014-01-17 13:16:54 UTC
The bug can also be reproduced in Juno
Comment 2 Jessica 2014-01-17 17:12:08 UTC
This is the expected behavior since you already have a poky directory.  If you want to clone, find a directory that doesn't contain poky or change the project name to something else, e.g. poky2
Comment 3 Ada Solcan 2014-01-20 09:22:30 UTC
I think this would be the expected behavior if I would want to clone from the Git Repository (and I would check the corresponding check-box), but in this case I wanted to use an existing clone and I didn't check the corresponding check-box
Comment 4 Jessica 2014-01-20 15:30:43 UTC
Look at your project view on the left side, there's already a project with that name exist, that's why you got the error message
Comment 5 Alexandru Georgescu 2014-01-30 13:38:37 UTC
I couldn't reproduce on my Fedora 20. I will investigate further on Ada's machine.
Comment 6 Andra Necula 2014-08-21 13:48:54 UTC
Verified with eclipse Kepler, on master branch
commit 2d1660112e54653f7bb763939d0416472c49fe01

Cheers! Andra N.