Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't build blockly games with "make all" or "make languages" #39

Closed
duzc2 opened this issue Jul 27, 2016 · 9 comments
Closed

can't build blockly games with "make all" or "make languages" #39

duzc2 opened this issue Jul 27, 2016 · 9 comments

Comments

@duzc2
Copy link

duzc2 commented Jul 27, 2016

default
1

excuse me .
I get the error message every time I try to build languages .
I just make all , or make deps languages .

@duzc2
Copy link
Author

duzc2 commented Jul 28, 2016

I found out the SoyFileSetParser class from very old version of closure template .
this class does not appear in new version of closure.
a versions conflict ???

@duzc2
Copy link
Author

duzc2 commented Jul 28, 2016

I found this code in Makefile:
ALL_JSON = {./,index,puzzle,maze,bird,turtle,movie,pond/docs,pond,pond/tutor,pond/duck}
and "make languages" create a folder:
2016-07-29 00-06-37

@duzc2
Copy link
Author

duzc2 commented Jul 29, 2016

2016-07-29 12-26-18
it must be some problem with my build system ...

@NeilFraser
Copy link
Contributor

What happens on your shell when you execute the following:

ls /usr/bin/{a,b}*

It should print all the files in that directory that start with 'a' or 'b'.

Likewise, the '{...}' notation in the rm command should delete the generated directories in each of the application sub directories. Nothing wrong with your build system.

@duzc2
Copy link
Author

duzc2 commented Aug 27, 2016

yes, ls command works .
but the make command does not work well.
you can see the long file name in my picture.
I'v tried on Ubuntu 16.04 , centos , and mac os.
I don't know why it does not work well.

@fthuin
Copy link

fthuin commented Oct 9, 2016

I had the same problem with make languages (Linux Mint 18)

java -jar third-party/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/tutor/template.soy,appengine/pond/duck/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/tutor/template.soy,appengine/pond/duck/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/{. (est un dossier)
    at com.google.template.soy.base.SoySyntaxException.createWithoutMetaInfo(SoySyntaxException.java:52)
    at com.google.template.soy.soyparse.SoyFileSetParser.parseSoyFileHelper(SoyFileSetParser.java:261)
    at com.google.template.soy.soyparse.SoyFileSetParser.parseWithVersions(SoyFileSetParser.java:213)
    at com.google.template.soy.soyparse.SoyFileSetParser.parse(SoyFileSetParser.java:173)
    at com.google.template.soy.SoyFileSet.compileToJsSrcFiles(SoyFileSet.java:921)
    at com.google.template.soy.SoyToJsSrcCompiler.execMain(SoyToJsSrcCompiler.java:307)
    at com.google.template.soy.SoyToJsSrcCompiler.main(SoyToJsSrcCompiler.java:243)
Traceback (most recent call last):
  File "i18n/json_to_js.py", line 252, in <module>
    main()
  File "i18n/json_to_js.py", line 239, in main
    '--srcs', args.template])
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['java', '-jar', 'third-party/SoyToJsSrcCompiler.jar', '--locales', 'ace,af,ar,arz,ast,az,ba,be-tarask,bg,bn,br,ca,cdo,cs,da,de,diq,el,en,es,et,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,lki,lrc,lt,lv,mg,mk,ml,mr,ms,my,mzn,nb,ne,nl,oc,pa,pl,pms,ps,pt-br,pt,ro,ru,sc,sco,sd,si,sk,sl,sr,sv,sw,ta,tcy,te,th,tr,uk,vi,zh-hans,zh-hant', '--shouldProvideRequireSoyNamespaces', '--isUsingIjData', '--messageFilePathFormat', 'appengine/{./,index,puzzle,maze,bird,turtle,movie,pond/docs,pond,pond/tutor,pond/duck}/generated/{LOCALE}.xlf', '--outputPathFormat', 'appengine/{./,index,puzzle,maze,bird,turtle,movie,pond/docs,pond,pond/tutor,pond/duck}/generated/{LOCALE}/soy.js', '--srcs', 'appengine/{./,index,puzzle,maze,bird,turtle,movie,pond/docs,pond,pond/tutor,pond/duck}/template.soy']' returned non-zero exit status 1

Your fix in #40 works! Thank you @duzc2

@scott987
Copy link

I had the same problem on Ubuntu 16.04
And also fixed by #40

@NeilFraser
Copy link
Contributor

Several dependencies (including Blockly) changed over time, breaking the build. Blockly Games has been updated so that everything builds properly now.

@ojgarciab
Copy link

Make execution still fails, Ubuntu 18.04. Fixed with #40 + #81 , thanks @duzc2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants