Hacking Error

174 views
Skip to first unread message

mehmet sinoplu

unread,
Mar 9, 2015, 6:10:43 AM3/9/15
to blo...@googlegroups.com
I want to change something in lists.js in "C:\Downloads\blockly-master\generators\python" directory. After change, I build "build.py", but I get the following error. Please help me. Thanks.

Neil Fraser

unread,
Mar 9, 2015, 12:07:19 PM3/9/15
to blo...@googlegroups.com

The build only works with Python 2, it is not Python 3 compatible.  Something we need to look at.

Send (awkwardly) from an Android phone.

On 9 Mar 2015 03:10, "mehmet sinoplu" <5767g...@gmail.com> wrote:
I want to change something in lists.js in "C:\Downloads\blockly-master\generators\python" directory. After change, I build "build.py", but I get the following error. Please help me. Thanks.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mehmet sinoplu

unread,
Mar 10, 2015, 3:04:57 AM3/10/15
to blo...@googlegroups.com, ro...@neil.fraser.name

 I installed Python 2 and build "build.py" but nothing changed. I get the this error.





9 Mart 2015 Pazartesi 18:07:19 UTC+2 tarihinde Neil Fraser yazdı:

Neil Fraser

unread,
Mar 10, 2015, 3:57:27 AM3/10/15
to blo...@googlegroups.com
A completely different error message is not "nothing changed".  This time it looks like there's a problem with your copy of Closure.  SafeHtml was added to Closure in 2013, do you have an ancient copy?  Or maybe an incomplete copy?

Check for the existence of this file on your computer:
C:\Downloads\closure-library\closure\goog\html\safehtml.js

mehmet sinoplu

unread,
Mar 10, 2015, 4:13:14 AM3/10/15
to blo...@googlegroups.com, ro...@neil.fraser.name
I have the copy. I downloaded the closure library today from this url. https://developers.google.com/blockly/hacking/closure.

10 Mart 2015 Salı 09:57:27 UTC+2 tarihinde Neil Fraser yazdı:

syno...@gmail.com

unread,
Mar 10, 2015, 7:55:25 AM3/10/15
to blo...@googlegroups.com, ro...@neil.fraser.name
Same problem to me, I use blockly for more than a year and this morning I did an update of the librairy and then problems !

I also make a fresh new install of everything just to be sure that it's was not my implementation...

"
SUCCESS: msg/js/pms.js
SUCCESS: msg/js/lb.js
SUCCESS: msg/js/nb.js
SUCCESS: msg/js/it.js
SUCCESS: msg/js/ms.js
SUCCESS: blockly_uncompressed.js
FATAL ERROR
required "goog.html.SafeHtml" namespace never provided
core/connection.js at line 33:
goog.require('goog.html.SafeHtml');
^

Norman Pérez Sánchez

unread,
Mar 10, 2015, 8:07:25 AM3/10/15
to blo...@googlegroups.com, ro...@neil.fraser.name
I have the same a similar problem since this morning, and it worked yesterday.

SUCCESS: msg/js/fr.js
SUCCESS: msg/js/en.js
SUCCESS: msg/js/es.js
SUCCESS: blockly_uncompressed.js
FATAL ERROR
Parse error. missing name after . operator
core/comment.js at line 188:
  Blockly.Realtime.blocksMap_.delete(block.id.toString());

Could anyone help us??

Thank you!

Norman Pérez Sánchez

unread,
Mar 10, 2015, 8:22:32 AM3/10/15
to blo...@googlegroups.com, ro...@neil.fraser.name
Using the last closure-library on https://developers.google.com/blockly/hacking/closure , I get:

SUCCESS: msg/js/fr.js
SUCCESS: msg/js/en.js
SUCCESS: msg/js/es.js
SUCCESS: blockly_uncompressed.js
FATAL ERROR
Parse error. missing name after . operator
../closure-library-read-only/closure/goog/events/listener.js at line 188:
  Blockly.Realtime.blocksMap_.delete(block.id.toString());
                              ^

syno...@gmail.com

unread,
Mar 10, 2015, 8:38:45 AM3/10/15
to blo...@googlegroups.com, ro...@neil.fraser.name
For Information :
Thanks in advance,
Mikael

Austin Bart

unread,
Mar 10, 2015, 9:39:08 AM3/10/15
to blo...@googlegroups.com, ro...@neil.fraser.name
I can add to the pile here - just started working on Blockly stuff this morning, and Closure is complaining.

[... Language translations omitted]
SUCCESS: msg\js\zh-hans.js
SUCCESS: msg\js\zh-hant.js
FATAL ERROR
required "goog.html.SafeHtml" namespace never provided
..\closure-library\closure\goog\reflect\reflect.js at line 33:
goog.require('goog.html.SafeHtml');
^
SUCCESS: blockly_uncompressed.js

I haven't updated Closure or Blockly recently, so I'm guessing this is just an issue with the serverside components of Closure.

~Cory

Norman Pérez Sánchez

unread,
Mar 10, 2015, 12:58:16 PM3/10/15
to blo...@googlegroups.com, ro...@neil.fraser.name
I think so, Austin.

Neil Fraser

unread,
Mar 10, 2015, 6:43:27 PM3/10/15
to blo...@googlegroups.com
This has been traced to a bug in the Closure Compiler service.  They've fixed it, and Blockly now compiles again:
https://groups.google.com/forum/#!topic/closure-compiler-discuss/TIxJNx7bwbI

mehmet sinoplu

unread,
Mar 11, 2015, 2:50:39 AM3/11/15
to blo...@googlegroups.com, ro...@neil.fraser.name









Now I am getting this error:

11 Mart 2015 Çarşamba 00:43:27 UTC+2 tarihinde Neil Fraser yazdı:

syno...@gmail.com

unread,
Mar 11, 2015, 4:01:29 AM3/11/15
to blo...@googlegroups.com, ro...@neil.fraser.name
Thanks, it's working again... ;-)

Neil Fraser

unread,
Mar 11, 2015, 2:49:36 PM3/11/15
to blo...@googlegroups.com
I can't read Turkish error messages, but Google translate suggests it says,
  "Forcibly turned off by an existing connection to a remote host"
I suspect the English equivalent is,
  "Connection reset by peer"

Sounds like you had some network connectivity problems.  Try again.
Or maybe your ISP is blocking access to certain sites, in this case closure-compiler.appspot.com.
Reply all
Reply to author
Forward
0 new messages