It would be an advantage if the auto_detect_compilers.xrc dialog compiler list includes the path to the detected compiler so devs and end users can check and ensure that the compiler they are selecting has been detected correctly.
At the moment the only way I can find this out via the gui is to go into the settings->compilers and check the Compiler's installation directory in the Toolchain executables for the compilers I think have been detected as the list of compilers currently shows installed and not installed.
Please find attached a patch that does implements the following on the "Compilers auto-detection" dialog:
1) Add ability to show only the detected compilers or all compilers. Defaults to all.
2) Add the ability to show the path in a third column in the compiler list. Defaults to off
3) Only enable the OK button is a detected compiler is selected by default or has been selected.
4) Remove the ability to close the dialog by the 'X' on the top right of the dialog. This ensures that the only way to continue is when a detected compiler has been selected.
5) Added more info to some of the compiler status message that are detected when issues are found so that duplicate text is not displayed for different issues.
6) Modify the XRC file so it does not give any wxWidget asserts when you open it in wxSmith (see ticket 1110)
This should make setting up a compiler allot easier for newbies and devs who have multiple compilers installed.
Attached are examples of the dialog.
The changes are also available in the following github branch:
https://github.com/acotty/codeblocks_sf/tree/AC-AutoDetectCompilerStartup
Last edit: Andrew Cottrell 2021-07-09
I found a small bug in the patch when I was modifying the code and bug fixing in the compilerioptionsdlg.cpp. Once I wrap up the compilerioptionsdlg.cpp changes I will post a patch update. The bug is setting detected flag to false instead of true for a user configured compiler.
Latest changes are in the following github branch:
https://github.com/acotty/codeblocks_sf/tree/AC-AutoDetectCompilerStartup
Andrew Cottrell: If you want any of the sort-of-pull-requests you've posted on various tickets recently to be reviewed by me, you'll have to open actual-PRs on my repo on github.
https://github.com/obfuscated/codeblocks_sf/pull/31
Patch attached.
By default there are NO colors displayed, but can be enabled by un commentating the // #define SUPPORT_COLOR in src/sdk/autodetectcompilers.cpp