-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Broken instance of custom procedures with multiple parameters #1815
Comments
I haven't been able to reproduce this again. Unfortunately I had to restart chrome so I've now lost the tab it was in too. I did manage to diff the procedures.js file I had loaded in the broken state and the one I get now and they were the same. |
I observed the "tried to start the same gesture twice" and the "Trying to end a gesture recursively" console logging, along with non-responsive toolbar behavior. I had just created a validator function for one of the blocks, which affected the entire workspace. Removing the call to the validator function returned operation back to normal. Found that there was an undefined var reference in the javascript function. |
Can you paste your validator function here so we can debug? |
The validator function below had a typo in the if statement, where regexpsubdomain was misspelled and became undefined, which caused this issue. Chrome debugging didn't expose the cause of the issue, but IE 11 debugging did. The validator function was referenced in an appendDummyInput section of a Block definition function validate_Subdomain(text) { |
Original issue is not reproducible. |
Problem statement
I managed to break functions pretty badly this morning. Unfortunately I don't have time to look into this much further right now and don't remember my exact repro steps. It mostly involved doing normal things to add parameters to a custom procedure. I did it on the live playground which a believe has release from Friday.
Here's the JS error in the console:
Here's what the block looks like: Note how it has a ',' after the "abcd" like there should be another.. but there isn't one and how when I open the mutator again, I can't edit anything:
I also noticed the toolbox had every iteration of typing the word "pizza" as a variable name. I'm guessing that's a side effect from the js error... but noting it just in case. Here's what the variables category looks like:

The text was updated successfully, but these errors were encountered: