Does bracket matching stop working at a certain number of total lines, or with a certain level of indent brackets? I can’t find an error in my logic, but double-clicking on the end bracket doesn’t match up with the upper bracket.
Thank you,
Don
Does bracket matching stop working at a certain number of total lines, or with a certain level of indent brackets? I can’t find an error in my logic, but double-clicking on the end bracket doesn’t match up with the upper bracket.
Thank you,
Don
Is it possible that you have mismatched brackets? What if you double click on the top bracket, does it end up selecting to somewhere you don’t expect?
It’s certainly possible, particularly with over 5000 lines. I tried to cut out large chunks to see if I could find a problem, but didn’t turn up anything.
I wonder if my notes after the brackets (for example, “} else if(svcMostRecent_B) { // 8.20.2012”) are confusing the bracket matching.
Thanks for your reply,
Don
More than 5000 lines for one method? If the JS Parser is not choking, I bet you will when you get back to that code a year from now
You should try and break that in smaller pieces of manageable code… With functions you will find that the smaller the better.
Who knows? You could end up reusing some part of it?
-my 2 cents
Hi Patrick,
Tell me how!!
They are separate methods (functions), but they share the same form script.
My old IDE allows the methods to be in individual boxes, designated as global methods, triggers, and form methods. None of them appear on the same “sheet of paper”. But I don’t see how to do that here. There seem to be only two big sheets of paper – one for the form and one for globals.
Thank you,
Don
Oh. I thought you had one long function of more than 5000 lines.
But otherwise, yes, you get one js file per form, one per globals (and now one per scopes) in a solution.
So anyway, you should try and see for each function if you can match brackets, until you cannot anymore.
I’m surprised that there is not an error marker about that though.