← Back to team overview

kicad-developers team mailing list archive

Re: Saving the pin-to-pin map

 

Nothing is in for saving project-local settings to JSON, unfortunately.
You could play with it in the context of saving to global settings if you
had a use case for that.

On Thu, Mar 12, 2020 at 10:20 AM Jeff Young <jeff@xxxxxxxxx> wrote:

> It’d certainly be better for situations where we’re saving lists, etc.  Is
> the JSON stuff all in so I could play around with that now, or do I need to
> wait a bit?
>
> On 12 Mar 2020, at 14:17, Jon Evans <jon@xxxxxxxxxxxxx> wrote:
>
> Or, maybe I didn't understand you right -- there are similar PARAM helpers
> for JSON as well, so that code doesn't necessarily need to know about JSON
> and its requirements/limitations in order to save settings.  I was not
> planning on removing those and have everywhere that writes settings just
> write to the JSON object directly.  If you think that would be better for
> some situations, feel free to play around with that approach.
>
> On Thu, Mar 12, 2020 at 10:15 AM Jon Evans <jon@xxxxxxxxxxxxx> wrote:
>
>> Yes, that's right.  As part of splitting the project settings into
>> different files, those new files will be in JSON format, at which point all
>> the wxConfig helper code will be deprecated/removed.
>>
>> On Thu, Mar 12, 2020 at 10:13 AM Jeff Young <jeff@xxxxxxxxx> wrote:
>>
>>> Hi Jon,
>>>
>>> Speaking of which, I note that we’re still using the PARAM_CFG stuff to
>>> read/write the stuff in the new preferences structs.  I assume that’s a
>>> temporary measure and we’ll just be writing the structs to JSON at some
>>> point?
>>>
>>> Thanks,
>>> Jeff.
>>>
>>>
>>> On 12 Mar 2020, at 14:10, Jon Evans <jon@xxxxxxxxxxxxx> wrote:
>>>
>>> Project (it will be moved into a separate ERC settings file)
>>>
>>> On Thu, Mar 12, 2020 at 9:59 AM Jeff Young <jeff@xxxxxxxxx> wrote:
>>>
>>>> We don’t currently save the ERC pin-to-pin map (which I would think
>>>> makes it nearly useless).
>>>>
>>>> Should it be project-relative, or global?
>>>>
>>>> Cheers,
>>>> Jeff.
>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>
>>>
>

References