Some problems ... Do not take into consideration the elements used, but only the malfunctions of the plugin.
Context VISTA 32bits :
1- editing the compiler "GNU GCC Compiler" => "GNU GCC Compiler mingw32-730"
No problem, even on a workspace.
2- modifications of '#WX' => '#wx28_730' : see the image
If there are multiple lines in the compiler paths or the other paths, only the first one is motified. We must start a search again to recover the others.
After asking to make a backup, a message tells us that the backup failed.
forum
Good point. My assumption was, that each parameter is unique.
A solution would be to modify ProjectOptionsManipulator::HasOption in a way that it iterates all options and returns the parameter full_opt as wxArrayString. Then, where options are to be modified (remove, change) you have to loop over all strings in the wxArrayString and call the respective function (e.g. calling RemoveCompilerOption(opt) many times).
My time is rather limited though atm... it will take some time unless you'll give it a try and provide a patch. :-)
Last edit: Morten MacFly 2019-08-29
This patch should do it. Are you willing to try?
How can you ask for a backup?
@MortenMacfly :
I could test it early next week.
@Miguel Gimenez :
It's the plugin that asks me if I want to save the modified project.
If I answer yes, so he answers me: (see the picture)
I think I remember the one with the message. The problem is, that at plugin level you don't know the reason why the saving failed because its just a boolean return code from a call to an SDK function. We would need to introduce an API so that we can show the user a good reason. For now, all you kno is really "it didn't work". :-/
Yes, it is true. For now, I say 'No' and I'm saving on the project.
I started patching with 'cb-11830' for project 'cb-11831' to compile with 'wx28' and 'gcc810'
But I was wrong: I replaced "#WX" with "# wx_810" instead of "# wx28_810 " !! => POM to display the result in 'ProjectOptionsManipulatorResultDlg' which can not be canceled !
It is imperative to introduce (as in 'ProjectOptionsManipulatorDlg') the possibility to cancel the result of the search, because this will happen quite often by inattention.
I continue the patch test ...
Last edit: LETARTARE 2019-08-31
With patch, I tested (VISTA) project and workspace :
- replacing the compiler => good
- replacing in paths '#wx" or "#WX" to "#wx_810" => good
It remains the backup error.
Another problem under Opensuse-Leap-42.3 (64bits) :
The items of 'Operation' are placed horizontally !! and the window becomes larger than the screen width.
forum
Last edit: LETARTARE 2019-09-02