Strange IDE bug
Posted: Fri May 10, 2013 5:08 am
Ever since I found out about gRevDevelopment, I've been playing with various things with it on to see what happens. I noticed that the Project Browser is really slow when scrolling, so I decided to try to figure out why by writing a simple script that looks for all the disclosure buttons and expands them. The bug I found almost immediately doesn't make a lot of sense to me.
First of all, debugging these in general hits an infinite loop "freeze" in a few places due to trace messages throwing exceptions. I found a way to bail these out early.
The error is on line 386 of stack "revProjectInformationLibrary", I don't remember what the error message is, but basically the selectGroupedControls doesn't exist for this "group". So I added a line of code above that records the long name at the time it fills tType, and then made it dump that and the current long name of the control in the catch section of a try block I wrapped around the offending line, along with the caught error.
I am at a complete loss to explain why the referenced control would change. Any ideas?
First of all, debugging these in general hits an infinite loop "freeze" in a few places due to trace messages throwing exceptions. I found a way to bail these out early.
The error is on line 386 of stack "revProjectInformationLibrary", I don't remember what the error message is, but basically the selectGroupedControls doesn't exist for this "group". So I added a line of code above that records the long name at the time it fills tType, and then made it dump that and the current long name of the control in the catch section of a try block I wrapped around the offending line, along with the caught error.
Code: Select all
group "line26" of group "object list" of card "treeView" of stack "/home/matt/code/livecode/ide/Toolset/revProjectBrowser.livecode"
image "warning.png" of group "line26" of group "object list" of card "treeView" of stack "/home/matt/code/livecode/ide/Toolset/revProjectBrowser.livecode"
348,0,0
90,388,39
456,388,13
198,388,55
270,388,55
252,388,1