eclipse-cdt / cdt

Eclipse CDT™ C/C++ Development Tools
http://eclipse.org/cdt
Eclipse Public License 2.0
299 stars 198 forks source link

Improve workflow for new users when MinGW toolchain not detected #678

Open jld01 opened 7 months ago

jld01 commented 7 months ago

CDT attempts to detect MinGW toolchain installations and, by default, will present the MinGW GCC toolchain in the new project wizard only if an installation is detected. In cases where a MinGW toolchain is not detected, new users might be tempted to select an alternative (incorrect) toolchain resulting in a bad initial user experience.

I propose that MinGW GCC toolchain is presented as an option unconditionally on Windows hosts. If the MinGW GCC toolchain is selected but CDT has been unable to detect a MinGW toolchain installation then an informative message should be presented in the title area of the new project wizard.

Ideally, the user should be invited to browse to the location of the MinGW toolchain if the location is not detected by CDT.

jantje commented 7 months ago

During investigation #642 I found that "to browse to the location of the MinGW toolchain if the location is not detected by CDT." already exists in CDT.

jantje commented 7 months ago

EDIT: This comment was intended for #642 I found that this functionality is already implemented in CDT using IToolChainManager and IBuildTools. Not via plugin.xml but via BundleContext getServiceReference I still don't know how it exactly works though.