Menu

#868 Project Options Manipulator plugin

Undefined
pending
Feature_Request
2019-09-02
2019-08-28
LETARTARE
No

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

1 Attachments

Discussion

  • Morten MacFly

    Morten MacFly - 2019-08-29

    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
  • Morten MacFly

    Morten MacFly - 2019-08-29
    • status: open --> accepted
    • assigned_to: Morten MacFly
    • Type: Bug_Report --> Feature_Request
     
  • Morten MacFly

    Morten MacFly - 2019-08-30

    This patch should do it. Are you willing to try?

     
  • Morten MacFly

    Morten MacFly - 2019-08-30
    • status: accepted --> pending
     
  • Miguel Gimenez

    Miguel Gimenez - 2019-08-30

    After asking to make a backup, a message tells us that the backup failed.

    How can you ask for a backup?

     
  • LETARTARE

    LETARTARE - 2019-08-31

    @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)

     
  • Morten MacFly

    Morten MacFly - 2019-08-31

    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". :-/

     
  • LETARTARE

    LETARTARE - 2019-08-31

    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
  • LETARTARE

    LETARTARE - 2019-09-02

    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.

     
  • LETARTARE

    LETARTARE - 2019-09-02

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.