renciso218 / blockly

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

Can not place custom procedure #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Introduction: This current issue has been arise after previous issue #85 been 
fixed

What steps will reproduce the problem?
1.Create a custom procedure "MyProc" with two parameters "IN1" and "IN2". Type 
of the created procedure - without return value. Internal logic of procedure: 
"Set TempVar = get IN1 + get IN2" (or simply TempVar = IN1 + IN2)
2.Trying to place created custom procedure "MyProc" from pallete. Nothing is 
happen. Procedure is not placed to the worksheet at all.   
3.Checking the generated code (any tab). Custom procedure "MyProc" has been 
declared, but called with "null" parameters.
4.Switch to the any other tab in the browser (here "tab" means browser tab, and 
not blockly tab with different generated codes).
5.Switch browser tab back to the blockly web page
5.Custom procedure "MyProc" has been appeared on the worksheet, but without any 
declared parameters.    

What is the expected output? What do you see instead?
 - Custom procedure should be placed with parameters 
 - Calling the custom procedure should be done with custom parameters (not "null")

What browser are you using?
Google Chrome, WinXP

Please provide any additional information below.

Original issue reported on code.google.com by dmitryku...@gmail.com on 23 Oct 2012 at 12:13

GoogleCodeExporter commented 8 years ago
Mental note: Don't attempt to fix bugs after midnight.

The previous patch cleared the reported error, only to have the code explode a 
few lines later.  Testing was geared towards the more complex case of where the 
mutator bubble is left open while the block was created.  The simpler case 
where the mutator is closed was failing.

Ok, this time it works.  Sorry about that.

Original comment by neil.fra...@gmail.com on 23 Oct 2012 at 7:24