Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#62 Configuration files not preserved?

closed-fixed
ianaré
General (31)
8
2011-01-19
2010-12-30
rick
No

Just went after an upgrade for the windows version from 0.71 to 0.80 - anything fine, apart for one thing. I didn't see any hint on how to preserve former configurations, so I copied my configuration files from /program files/config to /application data/../config.

When I try to load one of them, all "replace" renamings have disappeared - only one empty "replace" is present. Subsequent "insert" do not show up as well.

Attached you'll find a very simple 0.7x version of one of my configs: it contains 3 modifications (all fine), 5 replaces (all missing) and 1 insert (missing as well). Attached as well, an extract from the logfile, showing some rants about a missing ReplaceToolsPanel attribute.

Discussion

  • rick
    rick
    2010-12-30

    test case

     
    Attachments
  • ianaré
    ianaré
    2010-12-30

    Thank you for bringing this to my attention.

    There was a lot of work done under the hood for this release which caused some incompatabilites with the config files.

    With medium version changes (ie 0.7.0 -> 0.8.0), expect some minor breakage to occur. Minor revisions (ie 0.8.0 -> 0.8.1) will not cause any problems.

    Now, all *ToolsPanel items must start with lowercase (ie ReplaceToolsPanel -> replaceToolsPanel). I have updated the test config file and uploaded it to show this.

    However, there is also a bug in the application, so even the updated config file will not work just yet. I will make a new release, 0.8.1 within a few days to fix this issue. For the impatient, the fix is in SVN trunk.

     
  • ianaré
    ianaré
    2010-12-30

    • priority: 5 --> 8
    • labels: 1344207 --> General
    • status: open --> open-fixed
     
  • ianaré
    ianaré
    2010-12-30

    updated config file

     
    Attachments
  • ianaré
    ianaré
    2010-12-30

    • status: open-fixed --> pending-fixed
     
  • ianaré
    ianaré
    2010-12-30

    I was able to release earlier than thought. New release is out ! Let me know if the issue is fixed, thanks.

     
  • rick
    rick
    2010-12-31

    Thanks Ianarè for your prompt intervention - unfortunately the point is not yet complete: all of my former replace/insert activities are now present, but still _empty_.

    I mean: had a Replace "this" with "that" - what I see now is an empty Replace "" with "". Clicked into the fields, in order to see whether it was a matter of lost focus - no way: they're really empty.

    Pls let me know if you need some specific test case in order to reproduce the point.

    Thanks in advance, rick.

     
  • ianaré
    ianaré
    2010-12-31

    Remember, there is still an incompatability between the two versions, you will need to edit the config files ...

    Does the config file I uploaded display correctly ?

     
  • ianaré
    ianaré
    2010-12-31

    • status: pending-fixed --> open-fixed
     
  • rick
    rick
    2010-12-31

    Yes, it does.

    I'll appreciate an indication on how to edit the xml configs, eventually.

     
  • ianaré
    ianaré
    2010-12-31

    Just open up the config file with a text editor (notepad++ is very good) and find/replace 'InsertToolsPanel' with 'insertToolsPanel' and 'ReplaceToolsPanel' with 'replaceToolsPanel'.

     
  • ianaré
    ianaré
    2011-01-01

    Thinking about this some more ... the next release will try to convert between versions. Should be out within a couple weeks.

     
  • ianaré
    ianaré
    2011-01-05

    Unfortunately there were too many changes between the two versions to be able to convert from 0.7.x to current. So sorry ...

     
  • ianaré
    ianaré
    2011-01-05

    • status: open-fixed --> pending-fixed
     
  • rick
    rick
    2011-01-08

    Don't mind - thought it were much easier, given what you suggested in comment #6 and a solution "as seen from the moon" of "read either the old or the new way, put into same variables, write only the new way (so you don't have to worry for the future)". I understand from what you write that life is a bit more complicated ;-)

    Haven't tried yet on my mid-sized configs (some 50ish rules), I'll let you know how it works.

     
  • ianaré
    ianaré
    2011-01-08

    The names in the config file have a direct relationship with the internal application variables, these were changed in order to bring the app in accordance with certain programming guidelines and to allow future improvements to be done easier.

    The panel names were changed, but also some of the panel settings, notably with regular expressions. It might be easier to simply recreate the configs, in windows you can change the install directory to have both versions side by side, in Linux you can download the tar file, unpack and run src/metamorphose2.py from the extracted folder.

    Regards

     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-fixed --> closed-fixed