Am Sonntag, 10. März 2019 19:18:49 CET schrieb Scott Kostyshak 
<[email protected]>:
> I get the following on current master:
> 
> $ ctest --timeout 60 -R "lyx2lyx"
> 
> The following tests FAILED:
>       1357 - INVERTED.TODO_export/export/lyx2lyx/lyx_2_3_test_lyx16 (Timeout)
>       1358 - INVERTED.TODO_export/export/lyx2lyx/lyx_2_3_test_lyx21 (Timeout)
>       1359 - INVERTED.TODO_export/export/lyx2lyx/lyx_2_3_test_lyx22 (Timeout)
> 
> Without --timeout, I get an infinite loop.
> 
> Note that the export is not actually supposed to work without error, as
> noted in the invertedTests file:
> 
>   # back-conversion fails for rotated float inset in a list
>   export/export/lyx2lyx/lyx_2_3_test_lyx(16|20|21|22)
> 
> However, the recent problem introduced is that now there is a
> (seemingly) infinite loop.
> 
> Scott
> 

According to the log, the loop is inside
        $ lyx -e lyx22x autotests/export/lyx2lyx/lyx_2_3_test.lyx
So, trying
        $ lyx2lyx -V 2.2 lyx_2_3_test.lyx

The error is inside  function revert_new_babel_languages, 
lib/lyx2lyx/lyx2lyx_tools.py:792
Doing:
        document.body[2 : 2] = [" something big"]
increments the size, but the pointer 'i' for the find_token(document.body, 
'\\lang', i) inside the while(true) loop is not incremented,
and so the same token '\lang' is found again.

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to