Debug warning in Blockly 12: blockly_compressed.js:164 Blockly.Workspace.getAllVariables was deprecated in v12 and will be deleted in v13. Use Blockly.Workspace.getVariableMap().getAllVariables instead.

46 views
Skip to first unread message

Michael Scherotter

unread,
May 27, 2025, 11:47:23 AMMay 27
to Blockly
I have code that I just upgraded to Blockly 12 where I call 
Blockly.Xml.domToWorkspace(xml, this._workspace);

The code works fine, but I now get a warning in the debugger:

blockly_compressed.js:164
Blockly.Workspace.getAllVariables was deprecated in v12 and will be deleted in v13. Use Blockly.Workspace.getVariableMap().getAllVariables instead.
warn$$module$build$src$core$utils$deprecation@blockly_compressed.js:164
getAllVariables@blockly_compressed.js:1277

domToBlockInternal$$module$build$src$core$xml@blockly_compressed.js:319

$.domToWorkspace$$module$build$src$core$xml@blockly_compressed.js:312


It seems to work fine.Any suggestions?
Michael

Maribeth Moffatt

unread,
May 27, 2025, 7:24:26 PMMay 27
to Blockly
You don't need to do anything, this is a warning that we need to fix within Blockly. You can follow along with our progress here https://github.com/google/blockly/issues/8945 and the fix will be included in a future patch release of Blockly. This warning should have no ill effect on the rest of your application.

Best,
Maribeth

Michael Scherotter

unread,
May 27, 2025, 8:00:56 PMMay 27
to Blockly
Thanks!
Michael

Michael Scherotter

unread,
May 27, 2025, 8:00:58 PMMay 27
to Blockly
Past that, the upgrade to Blockly 12 was very smooth.
Great job, Blockly team!

Thanks,
Michael

On Tuesday, May 27, 2025 at 4:24:26 PM UTC-7 mari...@google.com wrote:
Reply all
Reply to author
Forward
0 new messages