On 09/19/2011 05:18 PM, Tommaso Cucinotta wrote:
> Il 19/09/2011 15:34, Richard Heck ha scritto:
>> In its present state, too, LyX is likely to do very weird things
>> (e.g., interpret inset arguments as plain text), if not crash, since
>> it will get confused about where it is in the parsing. If we had a
>> structured (e.g., XML) format, then we could ignore everything within
>> the tags we don't recognize, but the format is not well enough
>> defined to do this as things now are.
>
> One question: assuming the LyX parser gets confused (finds something
> unexpected) at some point, e..g, due to a new inset type that cannot
> be parsed -- what would happen if we simply discarded the current
> inset contents, till the next "\begin_inset" or "\begin_layout", or
> whatever is again understandable ?
>
One could try to do this---I think you'd probably want to discard
everything until you get to the end of whatever you were trying to
parse---but I'm not sure there's any centralized place to do it.
Consider e.g. how different the tabular format is from everything else.

>> All of that said, the issue that started this, as I recall, had to do
>> with a failure to parse the preferences file. In that case, surely,
>> LyX should just start, throwing a warning, and perhaps asking if the
>> user would like to erase the invalid file and start afresh. That
>> ought to be easy enough to do.
>
> exactly, I would expect exactly that. If I manually delete the cache
> folder, it is re-created, if I delete the .lyx/ folder, it is
> re-created. If I have a typo in the prefs file, just ask me whether I
> prefer to start over with a fresh new one or I prefer to fix it manually.
>
If you want to file a bug for this, cc'ing me, I will get to it.

Richard

Reply via email to