renciso218 / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

installation wiki is missing something - Blockly.Language is undefined #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. follow the directions here: 
http://code.google.com/p/blockly/wiki/Installation
2. make your own helloworld.html
3. open it in firefox

What is the expected output? What do you see instead?
Expecting to see the blockly interface.  Note that i can run the blockly demos 
in demos/index.html without any problems.

What browser are you using?
firefox on ubuntu12.04

Please provide any additional information below.
here is my helloworld.html
<html>
  <head>
    <meta charset="utf-8">
    <script type="text/javascript" src="blockly/demos/blockly_compressed.js"></script>
    <script type="text/javascript" src="blockly/generators/javascript.js"></script>
    <script type="text/javascript" src="blockly/generators/javascript/control.js"></script>
    <script type="text/javascript" src="blockly/generators/javascript/text.js"></script>
    <script type="text/javascript" src="blockly/language/en/_messages.js"></script>
    <script type="text/javascript" src="blockly/language/en/control.js"></script>
    <script type="text/javascript" src="blockly/language/en/text.js"></script>
    <style>
      html, body {
        background-color: #fff;
        margin: 0;
        padding:0;
        overflow: hidden;
      }
    </style>
    <script>
      function init() {
        Blockly.inject(document.body, {path: 'blockly/'});
        // Let the top-level application know that Blockly is ready.
        //window.parent.blocklyLoaded(Blockly);
        window.Blockly = Blockly;
      }
    </script>
  </head>
  <body onload="init()"></body>
</html>

===================== debug output from fire fox ============================
[10:57:43.023] file:///home/brett/test-blockly.html
[10:57:43.071] file:///home/brett/blockly/demos/blockly_compressed.js
[10:57:43.080] file:///home/brett/blockly/generators/javascript.js
[10:57:43.089] file:///home/brett/blockly/generators/javascript/control.js
[10:57:43.099] file:///home/brett/blockly/generators/javascript/text.js
[10:57:43.108] file:///home/brett/blockly/language/en/_messages.js
[10:57:43.156] file:///home/brett/blockly/blockly.css
[10:57:43.178] file:///home/brett/blockly/1x1.gif
[10:57:43.184] file:///home/brett/blockly/1x1.gif
[10:57:43.352] Error in parsing value for 'height'.  Declaration dropped. @ 
file:///home/brett/test-blockly.html
[10:57:43.361] Blockly.Language is undefined @ 
file:///home/brett/blockly/demos/blockly_compressed.js:248
[10:57:43.375] Unknown property 'user-select'.  Declaration dropped. @ 
file:///home/brett/blockly/blockly.css:105
[10:57:43.404] Blockly.Language is undefined @ 
file:///home/brett/blockly/demos/blockly_compressed.js:248

Original issue reported on code.google.com by br...@insynchq.com on 16 Jul 2012 at 3:08

GoogleCodeExporter commented 8 years ago
Confirmed.  That's odd...

Original comment by neil.fra...@gmail.com on 16 Jul 2012 at 3:48

GoogleCodeExporter commented 8 years ago
Ah, we forgot to update the installation docs when the control and text blocks 
were made generic.  Sorry about that.  
Documentation fixed (r353).

Change the following JavaScript includes in your frames.html file from:
<script type="text/javascript" src="blockly/language/en/control.js"></script>
<script type="text/javascript" src="blockly/language/en/text.js"></script>
to:
<script type="text/javascript" 
src="blockly/language/common/control.js"></script>
<script type="text/javascript" src="blockly/language/common/text.js"></script>

Original comment by neil.fra...@gmail.com on 16 Jul 2012 at 5:38