Am Samstag, 4. August 2018 12:51:19 CEST schrieb Enrico Forestieri <for...@lyx.org>: > On Thu, Aug 02, 2018 at 10:54:47PM +0200, Kornel Benko wrote: > > Am Mittwoch, 1. August 2018 20:10:38 CEST schrieb Kornel Benko > > <kor...@lyx.org>: > > > Am Mittwoch, 1. August 2018 19:26:15 CEST schrieb Enrico Forestieri > > > <for...@lyx.org>: > > > > It is not possible loading the attached document with current master > > > > because lyx2lyx fails with the following error: > > > > > > > > Warning: An error ocurred in 482, <function convert_phrases at > > > > 0x6ffffc49d70> > > > > Traceback (most recent call last): > > > > File "/usr/local/src/lyx/lyx-devel/lib/lyx2lyx/lyx2lyx", line 96, in > > > > <module> > > > > main() > > > > File "/usr/local/src/lyx/lyx-devel/lib/lyx2lyx/lyx2lyx", line 90, in > > > > main > > > > doc.convert() > > > > File "/usr/local/src/lyx/lyx-devel/lib/lyx2lyx/LyX.py", line 692, in > > > > convert > > > > conv(self) > > > > File "/usr/local/src/lyx/lyx-devel/lib/lyx2lyx/lyx_2_2.py", line 759, > > > > in convert_phrases > > > > j = document.body[i].find(phrase) > > > > IndexError: list index out of range > > > > > > > > > > Line lyx_2_2.py:761 > > > 'i += 1' > > > is wrong. Should be deleted. > > > > > > > Nobody screamed. Committed at a968456. > > Thanks. However, note that this was not needed in stable. > Now, after e7b3b62b, lyx2lyx seems going into an endless loop. > Reverting e7b3b62b fixes it and the document attached to this thread > is correctly loaded also in lyx 2.3. >
Right, in 2.3.x the 'for phrase in' loop is organized differently. Sorry, did not check. I will revert. Kornel
signature.asc
Description: This is a digitally signed message part.