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

Blockly toolbox collapse subcategories exception #2723

Closed
samelhusseini opened this issue Aug 15, 2017 · 3 comments
Closed

Blockly toolbox collapse subcategories exception #2723

samelhusseini opened this issue Aug 15, 2017 · 3 comments

Comments

@samelhusseini
Copy link
Contributor

samelhusseini commented Aug 15, 2017

Exception when adding a new package and a toolbox flyout with a subcategory is open.

Repro steps:

  1. Open the Math category and make sure you see the "More" subcategory show up.
  2. From the top menu go to Settings -> Add Package. (and not from the Advanced menu).

The following exception occurs:

main.js:10271 Uncaught TypeError: Cannot read property 'getShowLines' of null
    at Blockly.Toolbox.TreeNode.goog.ui.tree.BaseNode.getExpandIconClass (https://pxt.azureedge.net/blob/f18fda6ee99e040d0478bb329470a321c7cb247c/blockly/blockly_compressed.js:959:88)
    at Blockly.Toolbox.TreeNode.goog.ui.tree.BaseNode.updateExpandIcon (https://pxt.azureedge.net/blob/f18fda6ee99e040d0478bb329470a321c7cb247c/blockly/blockly_compressed.js:967:116)
    at Blockly.Toolbox.TreeNode.goog.ui.tree.BaseNode.setExpanded (https://pxt.azureedge.net/blob/f18fda6ee99e040d0478bb329470a321c7cb247c/blockly/blockly_compressed.js:951:199)
    at collapseSubcategories (https://pxt.azureedge.net/blob/7800799a7071ae92302fe70245ee15a1c64ae4b8/pxtblocks.js:3994:25)
    at Blockly.Toolbox.TreeControl.setSelectedItem (https://pxt.azureedge.net/blob/7800799a7071ae92302fe70245ee15a1c64ae4b8/pxtblocks.js:3970:21)
    at Editor.updateToolbox (https://pxt.azureedge.net/blob/4f361dff26d397350d166a0e0319cad2712690d8/main.js:2678:40)
    at https://pxt.azureedge.net/blob/4f361dff26d397350d166a0e0319cad2712690d8/main.js:2140:23
    at <anonymous>
From previous event:
    at Editor.domUpdate (https://pxt.azureedge.net/blob/4f361dff26d397350d166a0e0319cad2712690d8/main.js:2130:18)
    at ProjectView.componentDidUpdate (https://pxt.azureedge.net/blob/4f361dff26d397350d166a0e0319cad2712690d8/main.js:208:21)
    at CallbackQueue.notifyAll (https://pxt.azureedge.net/blob/4f361dff26d397350d166a0e0319cad2712690d8/main.js:44656:22)
    at ReactReconcileTransaction.close (

Exception freezes the editor

@samelhusseini
Copy link
Contributor Author

This issue only repros in v0. Another way to repro this issue is to have the Blockly flyout open and go to Javascript and back to Blocks.

@samelhusseini
Copy link
Contributor Author

Fixed in /beta

@samelhusseini samelhusseini self-assigned this Oct 3, 2017
@lock
Copy link

lock bot commented Sep 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant