Page 1 of 1

Strange IDE bug

Posted: Fri May 10, 2013 5:08 am
by ricochet1k
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.

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
I am at a complete loss to explain why the referenced control would change. Any ideas?

Re: Strange IDE bug

Posted: Tue May 14, 2013 10:54 pm
by Mark
Hi,

To get help with your question, you'll have to post the error that you don't remember along with the code that causes the error.

All I can tell you for now is that the error you pasted in your question corresponds to "object does not have this property".

Kind regards,

Mark

Re: Strange IDE bug

Posted: Tue May 21, 2013 11:36 am
by LCMark
@ricochet1k: I'll get Elanor to take a look at this when she's back from holiday - the project browser was her baby so will hopefully be able to shed some light :)