Giter Club home page Giter Club logo

Comments (7)

nijel avatar nijel commented on May 25, 2024

This will be most likely an issue with pyparsing, but I can't find anything related in their issue tracker, so we will need to figure out what is actually broken.

from translate.

nijel avatar nijel commented on May 25, 2024

Created pyparsing/pyparsing#517 to ask about pyparsing status.

from translate.

nijel avatar nijel commented on May 25, 2024

Confirmed in our CI environment: https://github.com/translate/translate/actions/runs/6771797656/job/18402990631

Can you try to isolate a smaller testcase as requested in pyparsing/pyparsing#517?

from translate.

mgorny avatar mgorny commented on May 25, 2024

I suppose I could try but can't promise anything. Already spent most of the day reducing slixmpp but hopefully this one's less convoluted ;-).

from translate.

mgorny avatar mgorny commented on May 25, 2024

Ok, I think it's actually output buffering problem in translate-toolkit. While debugging it, I've tried:

diff --git a/translate/convert/rc2po.py b/translate/convert/rc2po.py
index e4f02a6c..5bf9fa3f 100755
--- a/translate/convert/rc2po.py
+++ b/translate/convert/rc2po.py
@@ -122,6 +122,7 @@ def convertrc(
     if output_store.isempty():
         return 0
     output_store.serialize(output_file)
+    output_file.flush()
     return 1
 
 

and that makes all the tests pass. Though I suppose there is probably a better place to do the flushing.

from translate.

nijel avatar nijel commented on May 25, 2024

Thanks for good pointer, it is caused by not closing output file in the converters, #5073 should fix this.

from translate.

mgorny avatar mgorny commented on May 25, 2024

Thanks a lot! I can confirm that the commit fixes the issue.

from translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.