Bug 315880 - XL new project types are not categorized
Summary: XL new project types are not categorized
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-05 11:28 EDT by Elena Laskavaia CLA
Modified: 2020-09-04 15:20 EDT (History)
0 users

See Also:


Attachments
screenshot (56.35 KB, image/png)
2010-06-05 11:30 EDT, Elena Laskavaia CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elena Laskavaia CLA 2010-06-05 11:28:49 EDT
While other project types in new C project wizard are nicely categorized
Xl appear right on the root. And there are categories for the too but they have empty projects... And in C project wizard there are C++ types! There are filters
for that (to not show c++ in c project wizard)

See scrennshot
Comment 1 Elena Laskavaia CLA 2010-06-05 11:30:03 EDT
Created attachment 171198 [details]
screenshot
Comment 2 Elena Laskavaia CLA 2010-06-05 15:03:09 EDT
There is also inconsistency between categorization. If you click on Empty project in Executable category it show XL C/C++ Tool Chain, but XL UPC Tool Chain appear in Executable (XL UPC) category. In should be in Executable category, I don't
why it has own category.
Comment 3 Chris Recoskie CLA 2010-06-05 15:43:09 EDT
Yeah it doesn't make sense to me as to why UPC has its own category either.

The other top level entries that are not categorized, I'm not quite sure how to get rid of.  That's been an outstanding issue for quite some time.  The toolchain specifies the right artifact types, so that's why stuff shows up in the categories as it should, but I'm not sure what makes MBS decide that a given projectType should get a top level entry as well.
Comment 4 Chris Recoskie CLA 2010-06-05 15:45:31 EDT
(In reply to comment #0)
 And there are categories for the too but they have
> empty projects... And in C project wizard there are C++ types!

Sorry this confuses me.  The toolchain does both C and C++ so it should show up for both wizards.

I'm not sure what you mean by empty projects.
Comment 5 Andrew Gvozdev CLA 2010-06-05 22:26:59 EDT
XL* project types are also ignoring checkbox "Show project types and toolchains only if they are supported on the platform". I understand that some users could use them compiling on remote system but it is not good excuse IMHO as that logic could be applied for any project type.
Comment 6 Chris Recoskie CLA 2010-06-06 01:04:01 EDT
(In reply to comment #5)
> XL* project types are also ignoring checkbox "Show project types and toolchains
> only if they are supported on the platform". I understand that some users could
> use them compiling on remote system but it is not good excuse IMHO as that
> logic could be applied for any project type.

Unfortunately the build system's idea of target platform for a configuration is only checked against the local system.  So depending on what you mark your toolchain as supporting, either you end up with toolchains being hidden when the user might want them shown, or you end up with them shown when the user might want them hidden.

There is a Java callback you can provide to determine whether a toolchain is supported, but as I recall, it takes no parameters and hence doesn't really give you any context on which you could interrogate what type of project you're creating, or where you're creating it, in order to properly determine whether to enable the toolchain or not.  The callback seems to have been originally created with the scenarion in mind of just checking to see if the compiler is installed via some registry check or checking a known location on the hard drive, as examples.

This all being said, there is a Remote XL C/C++ toolchain in PTP that was created after the original XL C/C++ one was created, so we could restrict the target platform for the local one to AIX and Linux/PPC and avoid the particular situation you mention.
Comment 7 Andrew Gvozdev CLA 2010-06-09 10:12:21 EDT
(In reply to comment #3)
> The other top level entries that are not categorized, I'm not quite sure how to
> get rid of.  That's been an outstanding issue for quite some time.  The
> toolchain specifies the right artifact types, so that's why stuff shows up in
> the categories as it should, but I'm not sure what makes MBS decide that a given
> projectType should get a top level entry as well.
Note that there is a preference on page "New CDT Project Wizard"->tab "Wizard Defaults"->Group old-style toolchains to <Others> folder. If this preference were enabled by default it would be less confusing I think.
Comment 8 Jonah Graham CLA 2019-12-30 17:05:37 EST
This bug was assigned and targeted at a now released milestone. As that milestone has now passed, the milestone field has been cleared. If this bug has been fixed, please set the milestone to the version it was fixed in and marked the bug as resolved.