libedssharp icon indicating copy to clipboard operation
libedssharp copied to clipboard

Bug?: File path was removed.

Open Reissner opened this issue 5 years ago • 1 comments

when i load an xml file and then i do "save eds+xml+..." a popup windows occurs with message File path was removed. Please manually save as EDS once. This is so although tab "Device Info" shows the correct EDS path.

If I load the eds file first without xml, and then save as eds, Please manually save as XML at least once This seems ok, because tab "Device Info" does not show xml path.

If i save eds first and then do again "save eds+xml+..." a popup windows occurs with message File path was removed. Please export CO_OD.c/h once

If i do that, next time i do "save eds+xml+..." all works fine.

I have a nice idea: the eds file allows comment lines by starting with ";". If such a file is created through edseditor, there shall be some introductory lines like that, "created with edseditor version xxx" like in .h and .c files. Also there shall be a line with the path to save .h and .c and .xml if so. These comment lines shall be read by the editor.

Suggestion: if a line starts with "; EDSeditor" a parse should be tried. If this does not work, that line is really ignored, else used to restore information.

I want to point out, that this is similar to what the xml format offers.

Reissner avatar Feb 26 '20 13:02 Reissner

I can not reproduce the "File path was removed" stuff with v0.8 2e53bbc (if the directory does exist).

trojanobelix avatar Feb 27 '20 10:02 trojanobelix