Giter VIP home page Giter VIP logo

Comments (11)

siebrand avatar siebrand commented on June 6, 2024

Thanks for reporting this. Some Swedish translations were recently contributed from outside of the translation platform in 1f6d202. This may have caused this issue, although from what I read in the error messages, the issue might be in the French translations (?). Do you have any idea where the actual cause of the build error might be?

from blockly-games.

siebrand avatar siebrand commented on June 6, 2024

Can you remove the file with the French translations for a bit a see if the build works without it? It would be /blockly-games/json/fr.json.

from blockly-games.

smuda avatar smuda commented on June 6, 2024

Removing the French translation results in a new error:
Exception in thread "main" com.google.template.soy.msgs.SoyMsgException: While processing "appengine/pond/advanced/generated/pt-br.xlf": org.xml.sax.SAXParseException; lineNumber: 415; columnNumber: 36; Enheten "quaot" har refererats, men är inte deklarerad.

Removing the json/pt-br.json seems to let the build process continue (even though I haven't waited the 5 hours). I'll look more into what's the problem.

from blockly-games.

smuda avatar smuda commented on June 6, 2024

In French translation, in "Pond.stopTooltip" there seems to be an invalid encoding: "Arrêter de nager. Le joueur ralentira pour s&arrêter." As you can see, there is a & which later in XML is detected as invalid encoding. Changing the string to "Arrêter de nager. Le joueur ralentira pour arrêter." seems to let the build process continue, although I haven't waited the full five hours.

from blockly-games.

smuda avatar smuda commented on June 6, 2024

In the pt-br translation, in Turtle.helpText10Reddit, there is &quaot; which likely should be ".

from blockly-games.

smuda avatar smuda commented on June 6, 2024

I changed the pt-br quaot to quot on translatewiki, as it was pretty obvious. The french translation isn't that obvious for me though. ;-)

from blockly-games.

siebrand avatar siebrand commented on June 6, 2024

Many thanks for looking into this. If you can submit a patch, please do. Otherwise I'll look into it tomorrow.

Sounds to me like this sub part of the build process could do with a test that runs slightly quicker.

from blockly-games.

smuda avatar smuda commented on June 6, 2024

There are two commits in pull request #9. Thanks for your quick response!

from blockly-games.

siebrand avatar siebrand commented on June 6, 2024

I've merged your two commits. I don't have the project set up to build, so please confirm here that the (language part of the) build now works again. Once that's confirmed, I'll close the issue.

from blockly-games.

smuda avatar smuda commented on June 6, 2024

I did a fresh clone and it builds nicely now.

from blockly-games.

deherinu avatar deherinu commented on June 6, 2024

I got this problem... what can i do?

deyberth@deyberth:[~/blockly-games]: sudo make languages
[sudo] password for deyberth:
java -jar closure-templates-read-only/build/SoyMsgExtractor.jar --outputFile extracted_msgs.xlf --srcs appengine/template.soy,appengine/index/template.soy,appengine/puzzle/template.soy,appengine/maze/template.soy,appengine/bird/template.soy,appengine/turtle/template.soy,appengine/movie/template.soy,appengine/pond/docs/template.soy,appengine/pond/template.soy,appengine/pond/basic/template.soy,appengine/pond/advanced/template.soy
i18n/xliff_to_json.py --xlf extracted_msgs.xlf --templates appengine/template.soy,appengine/index/template.soy,appengine/puzzle/template.soy,appengine/maze/template.soy,appengine/bird/template.soy,appengine/turtle/template.soy,appengine/movie/template.soy,appengine/pond/docs/template.soy,appengine/pond/template.soy,appengine/pond/basic/template.soy,appengine/pond/advanced/template.soy
Created file: ./json/en.json
Created file: ./json/qqq.json
Created file: ./json/keys.json
Removed extracted_msgs.xlf
Creating .xlf files...
Creating .js files...
Exception in thread "main" com.google.template.soy.base.SoySyntaxException: Error opening Soy file appengine/{.: java.io.FileNotFoundException: appengine/{. (Is a directory)
at com.google.template.soy.base.SoySyntaxException.createWithoutMetaInfo(SoySyntaxException.java:52)
at com.google.template.soy.soyparse.SoyFileSetParser.parseSoyFileHelper(SoyFileSetParser.java:214)
at com.google.template.soy.soyparse.SoyFileSetParser.parseWithVersions(SoyFileSetParser.java:170)
at com.google.template.soy.soyparse.SoyFileSetParser.parse(SoyFileSetParser.java:152)
at com.google.template.soy.SoyFileSet.compileToJsSrcFiles(SoyFileSet.java:818)
at com.google.template.soy.SoyToJsSrcCompiler.execMain(SoyToJsSrcCompiler.java:284)
at com.google.template.soy.SoyToJsSrcCompiler.main(SoyToJsSrcCompiler.java:226)
Traceback (most recent call last):
File "i18n/json_to_js.py", line 252, in
main()
File "i18n/json_to_js.py", line 239, in main
'--srcs', args.template])
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['java', '-jar', 'closure-templates-read-only/build/SoyToJsSrcCompiler.jar', '--locales', 'ace,af,ar,arz,az,be-tarask,bg,bn,br,ca,cdo,cs,da,de,diq,el,en,es,eu,fa,fi,fo,fr,frr,gl,gn,hak,he,hi,hrx,hu,ia,id,is,it,ja,ka,kbd-cyrl,km,ko,ksh,ku-latn,ky,la,lb,lrc,lt,lv,mg,mk,ml,mr,ms,mzn,nb,ne,nl,oc,pa,pl,pms,ps,pt-br,pt,ro,ru,sc,sco,si,sk,sr,sv,sw,ta,te,th,tr,uk,vi,zh-hans,zh-hant', '--shouldProvideRequireSoyNamespaces', '--isUsingIjData', '--messageFilePathFormat', 'appengine/{./,index,puzzle,maze,bird,turtle,movie,pond/docs,pond,pond/basic,pond/advanced}/generated/{LOCALE}.xlf', '--outputPathFormat', 'appengine/{./,index,puzzle,maze,bird,turtle,movie,pond/docs,pond,pond/basic,pond/advanced}/generated/{LOCALE}/soy.js', '--srcs', 'appengine/{./,index,puzzle,maze,bird,turtle,movie,pond/docs,pond,pond/basic,pond/advanced}/template.soy']' returned non-zero exit status 1
make: *** [languages] Error 1

from blockly-games.

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.