O$8.1.6: importing from JSON into lbs

Alex Clay aclay at mac.com
Tue Aug 28 21:39:36 EDT 2018


Hi Greg,

To be clear, is "sql" the name of your memory-only file class and "errlist" a field on it with type list?

Alex

> On Aug 28, 2018, at 16:26, Grzegorz (Greg) Pasternak <gpasternak at cogeco.ca> wrote:
> 
> OK, here is what I have discovered:
> 
> I have replaced 
> Set current list sql.errlist
> with
> Set current list ['sql'].errlist
> 
> I have produced JSON and then attempted to create library file from it.
> This time the error pertaining to this method did not show up.
> 
> I don't think that it has anything to do with the name of the file being "sql" (though I though this might be a reserved name)
> Perhaps it is about {file_name}.{field_name} not processed properly when producing JSON?
> 
> 
> On Aug 28, 2018, at 4:18 PM, Alex Clay via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
>> On Aug 28, 2018, at 16:01, Grzegorz (Greg) Pasternak <gpasternak at cogeco.ca> wrote:
>> 
>>>> This might be a good one to send to Omnis support. Can you extract this method and the sql file class to a sample library and see if exporting and importing it to JSON produces the same error?
>>>> 
>>> 
>>> First I would like to see if this can be resolved without bothering support.
>> 
>> To be clear, you're encountering a bug in Omnis. The expected behavior is that Omnis can take ANY library, export it to JSON, import it back, and produce the same library. Reporting bugs in Omnis should NEVER be a bother to Omnis Software Ltd. Reporting bugs helps ensure we get the quality development tool we pay for.
>> 
>> The bother, in my experience, is producing a reproducible test case. Fortunately, my experience has also been that issues with a JSON export or import are very easy to reproduce by simply copying code snippets to another library.
>> 
>> If you can isolate the problematic code, great. You can then find a workaround for this bug and move on with other work. If you can't determine a workaround, perhaps the list could offer a functional alternative that Omnis might like better on the import.
>> 
>> But that doesn't make Omnis any better for anyone else. Omnis isn't open-source, so you can't fix the root bug and submit a pull request to get it fixed. It's an enterprise tool, so you have to get Omnis Software to fix the bug. Moreover, you PAY for Omnis to fix the code so you DON'T have to submit pull requests to fix it yourself. I believe Omnis Software Ltd. would want the issue reported so they could fix it. I sure would love to have this fix for our own exports and imports, and I imagine many others would was the fix as well.
>> 
>> I'll step off the soapbox now, but please consider reporting this as a bug. Support is paid...by customers like you and me...to be bothered with bug reports. :)
>> 
>> Alex
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 




More information about the omnisdev-en mailing list