Bug 9648 - New Yocto Bitbake Commander Project: weird concatenation avoids finding the specified folder
Summary: New Yocto Bitbake Commander Project: weird concatenation avoids finding the s...
Status: RESOLVED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium minor
Target Milestone: 2.1.1
Assignee: Humberto Ibarra
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-05-17 21:08 UTC by Humberto Ibarra
Modified: 2016-05-19 18:32 UTC (History)
4 users (show)

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


Attachments
concatenation of project name and location (24.64 KB, image/png)
2016-05-17 21:08 UTC, Humberto Ibarra
no flags Details
weird concatenation (23.46 KB, image/png)
2016-05-17 21:10 UTC, Humberto Ibarra
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Humberto Ibarra 2016-05-17 21:08:18 UTC
Created attachment 3177 [details]
concatenation of project name and location

First, it seems pretty odd that, if what we need is an existing poky directory, we ask the user for a project name and a location in different fields. It is quickly understood that what you are asking is the poky folder as a Project name and the base folder for the poky folder as "Project Location.

Wouldn't it be better to have a Project name as an eclipse-level identifier (to appear in the project window), and the project location to browse for the whole directory structure?

Either way, the code is weirdly concatenating the directory structure. I attached an example of it.

In the example, I have my poky directory in "/home/humberto/test-poky". I set Project name to "test-poky" and project location to "/home/humberto" (via the browse button, I didn't modified this myself). Automatically the window believes that I have my directory in "/home/humbertotest-poky", which is clearly wrong.

I would prefer a better solution to this window (as stated at the beginning of this description), but a fix to this concatenation is the least we can do here.
Comment 1 Humberto Ibarra 2016-05-17 21:10:25 UTC
Created attachment 3178 [details]
weird concatenation
Comment 2 Humberto Ibarra 2016-05-17 21:12:04 UTC
I just attached a new example.

With my poky directory in "/home/humberto/poky", giving a project Name of "ky" and a location of "/home/humberto/po", the system recognizes this as the "/home/humberto/poky" which is really weird.
Comment 3 Humberto Ibarra 2016-05-18 19:33:23 UTC
Sent patch

https://lists.yoctoproject.org/pipermail/yocto/2016-May/030122.html
Comment 4 Humberto Ibarra 2016-05-18 20:29:06 UTC
Sent patch v2

https://lists.yoctoproject.org/pipermail/yocto/2016-May/030126.html
Comment 5 Humberto Ibarra 2016-05-19 17:18:52 UTC
Missed the signed-off. Sent v3.

https://lists.yoctoproject.org/pipermail/yocto/2016-May/030160.html
Comment 6 Tim Orling 2016-05-19 18:32:30 UTC
Merged to kepler-master, luna-master, mars-master.
Thank you.