kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #26999
Re: PCB forward compatibility
-
To:
Chris Pavlina <pavlina.chris@xxxxxxxxx>, <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Tomasz Wlostowski <tomasz.wlostowski@xxxxxxx>
-
Date:
Fri, 16 Dec 2016 12:03:57 +0100
-
Authentication-results:
spf=pass (sender IP is 188.184.36.48) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<20161215190255.GA5800@turnip.local>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
On 15.12.2016 20:02, Chris Pavlina wrote:
> The addition of (diff_pair_gap) and (diff_pair_width) has made it such
> that NO PCBs made with 'master' builds can now be loaded in the 4.0
> branch. Would a patch be accepted to do one of the following, to be
> added to the 4.0 branch to ease future conversion from 4 to 5?
>
> 1. Fully backport saving diff pair dimensions to v4, but only write them
> to the file if they already existed in it at load. This way, v4
> writes files compatible with older v4 by default, but if editing a
> v5 file will not lose the data.
>
> or:
> 2. Specifically ignore these options on load, since dropping them
> doesn't actually lose any PCB objects.
>
> or:
> 3. Update the version number checker code I wrote before to have both
> Warnings and Errors, using Warnings when ignoring the unknown object
> and loading the board anyway will not lead to "important" data loss.
> Add these attributes to a list of unknown objects that generate
> Warnings.
How about adding an additional section in the .pcb/.sch files describing
all objects used together with required versions and their descriptions,
e.g:
(object-info
(object "diff_pair_gap" ( minimum_version 4 ) ( severity warning )
(message "This file contains differential pair gap settings that come
with XXXX version of Kicad. Older versions will not respect the defined
gap settings ) )
(object "fancy_geom_shape" ( minimum_version 12345 ) ( severity error )
)
Cheers,
Tom
Follow ups
References