-
Notifications
You must be signed in to change notification settings - Fork 12
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
Maximum call stack size exceeded when using a localized text and global variable #29
Comments
Thanks for the bug report, @TimeBather! I think I know the likely cause. |
@TimeBather Sorry that it took so long for me to get this fixed. I think I have it done. Before I release it to npm, could you please test it in your environment for me? I've created an
Let me know how it goes! |
Thanks for testing and finding the error case, @TimeBather! I'll take a look and hopefully get back to you soon with a revised, fixed, package. |
@TimeBather Would you mind trying to re-install and test the following new version of the packed file? |
I think it still does not solve the problem. Reproduction |
Thanks again for testing, @TimeBather. I'll take another look. |
@TimeBather, I'm not seeing the behavior that you mention with the latest fixed version of the package. I wonder if there was some cacheing that interfered with the fix. Can you please re-download the
|
I'm sorry that I forget to clean the cache of my package manager. And it works! |
The fix for this has been merged and has been published to the NPM package registry. |
Error:
Enviornment and related Codes
Then, when we place a global variable declaration and a variable-read block,then change the variable dropdown into the global variable , the problem occurs.
Analysis for this bug
First , the dropdown updated ,and trigged
dropdownChange
Then , in some steps, the doValueUpdate calls a function called
FieldLexicalVariable.setValue
, it doesn't supporting the localizeSo the setValue update the text again and again , until the JavaScript engine throw an Error because the stack size exceed.
The text was updated successfully, but these errors were encountered: