I have a script that has bumped from 4240 lines / 144401 bytes to 4447 lines / 151469 bytes. I cannot seem to find any syntax errors in the new version but it does not seem to load, even when I comment out most of the new code. Is there a hard limit of 150000 bytes on booster script sizes by any chance? If so I can probably trim some fat to get it below that. Thanks.
No, the only limit would be if it winds up going over the POST data size limit when you save the script. I recommend pasting the script into an editor like VS Code which has a JavaScript language service and can notify you of syntax errors in-line.
I will note that we do have an open issue in our backlog to improve error handling for scripts so that it will actually tell you where such errors are occurring in the future when running the script. I know it’s not a great experience right now! If you want help with a specific script let me know and I can try to look into it.
I run my scripts through nodejs to test for syntax errors. That has worked so far for 99% of the cases. Time for a binary search on the code?
The script in question is Eterna (Mutate Codons v1.104).
Don’t spend too much time on it as the lab is over in less than 4 hours!
Thanks.
Adding some quick and dirty logging in the booster execution code, I see the following raised:
MsdCtx is not defined
Bingo! Thanks. A semantic typographical error, not a syntactic one.