Menu

#915 Segment marked as empty causes error when running QA check script

4.1
closed-fixed
None
5
2018-08-06
2018-06-13
No

To reproduce:
Run the script check_rules.groovy ("QA - Check rules") with the language tool checkbox ticked on a document that contains a segment marked as empty.
In the console, when reaching that segment, two errors are displayed:

Error: Uncatched exception in thread [AWT-EventQueue-0]
Error: java.lang.ArrayIndexOutOfBoundsException

Result:
The script stops and does not display any result.

Expected behaviour:
The segment should be ignored or marked as an untranslated segment.

Discussion

  • Damien Rembert

    Damien Rembert - 2018-06-13

    As a sidenote, for anyone running into that error, the easy fix is to right click on the segment in the editor and click on "Remove translation" and then run the script again.
    [EDIT] As Didier said, bear in mind that unless you set the segment back to empty, the source segment will appear in the target document.

     

    Last edit: Damien Rembert 2018-06-14
    • Didier Briel

      Didier Briel - 2018-06-14

      click on "Remove translation"

      Note that it will not have the same effect as a segment being empty. Without a translation, the source segment will appear in the target text.

      Didier

       
  • Didier Briel

    Didier Briel - 2018-06-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,6 @@
     **To reproduce:**
     Run the script check_rules.groovy ("QA - Check rules") with the language tool checkbox ticked on a document that contains a segment marked as empty.
    -In the console, when reaching that segment, to errors are displayed:
    +In the console, when reaching that segment, two errors are displayed:
     ~~~
     Error: Uncatched exception in thread [AWT-EventQueue-0]
     Error: java.lang.ArrayIndexOutOfBoundsException
    
     
  • Didier Briel

    Didier Briel - 2018-06-28
    • status: open --> closed-fixed
    • assigned_to: Didier Briel
     
  • Didier Briel

    Didier Briel - 2018-06-28

    Fixed in SVN (/trunk, [r10430])

    Didier

     

    Related

    Commit: [r10430]

  • Didier Briel

    Didier Briel - 2018-06-28
    • status: closed-fixed --> open-fixed
     
  • Didier Briel

    Didier Briel - 2018-08-06
    • status: open-fixed --> closed-fixed
     
  • Didier Briel

    Didier Briel - 2018-08-06

    Closed in the released version 4.1.5 update 1 of OmegaT.

    Didier

     

Log in to post a comment.

MongoDB Logo MongoDB