Thanks to Thomas, the last bugs in the binary project reading are now
squashed. In addition, he's allowed both the RB 5.5 and RB 2006
properties format to be read.
I've removed the last lingering dependency on the DataGrid plug-in
(printing code that referenced it), and I'm now compressing in a Zip
format to see if it'll avoid the problems we had with the Stuffit
format.
Let me know if you have any problems with:
1. Opening the archive or finding extraneous files (ending in ".1")
in the archive. This has been reported, but these files aren't in my
archive.
2. Compiling. There should be no missing external files or
dependencies on plug-ins.
I'm off to finish my REAL World slides and start building a parser/
symbol table!
Dr. Scott Steinman
Brought to you by a grant from the Steinman Foundation (Thanks, Mom
and Dad!)
Recommended by Major University Studies Over the Leading Brand
steinman at midsouth dot rr dot com
I hope I die peacefully in my sleep like my grandfather. . .not
screaming in terror like his passengers. -- "Deep Thoughts", Jack Handy
And it can be found here:
http://homepage.mac.com/drsteinman/
Have a look at it, everyone. It should be pretty stable now, and it
helps you identify potentials bugs and possible improvements in your
RB programs. Check it out to have your code checked out :)
--
Thomas Tempelmann - exaggerating over a million times a day!
http://www.tempel.org/rb/ -- The primary source of outdated REALbasic
plugins and examples
Skype: tempel.org AIM: superTempel
Hi guys, and thanks for the link to the new version of Reality Check. I am
having a problem with it, whenever I open any of my projects, I get an Out
Of Bounds exception and it quits. I tried an older version of the project I
want to check that worked with an older version...I see you have the project
in the folder so I'll try to see if I can find where it is happening myself.
Thanks,
-seanA
For me, this works:
OS 10.4.4, RB 2006r1.
Open RealityCheck.rbp, run it. Then drop "RealityCheck.rbp" into the
window of the app. It then scans the project without an error. Do you
get that far?
On 1/29/06, Sean Arney <se...@rulessoftware.com> wrote:
> >
> > http://homepage.mac.com/drsteinman/
>
> Hi guys, and thanks for the link to the new version of Reality Check. I am
> having a problem with it, whenever I open any of my projects, I get an Out
> Of Bounds exception and it quits. I tried an older version of the project I
> want to check that worked with an older version...I see you have the project
> in the folder so I'll try to see if I can find where it is happening myself.
Thomas
The errors are in the ProjectParser class in the getLocalConstants
method, sArray( 1 ) is being tested on item 1 and that string array has only
a 0 member...
Thx,
-seanA
Im on 2006r1 and now I have my project opening by changing the array check
to '0' member instead of '1'. But Im not sure what that'll do to the
app...Im still reading the code.
It is up now though...any thoughts about the change I made?
-seanA
OK, so it's only with your project, not with the "realitycheck.rbp", right?
I had a very similar problem with properties that I had fixed
yesterday in the RC's code. The problem was that RC was not detecting
the _new_ way of how properties get written to XML yet, formerly it
could only deal with the old way used by RB 5.5
Maybe you're using some new 200x feature with constants that RC does
not parser correctly yet, either.
Try this:
Export your project to XML using the IDE. Does that fix it? If so,
then the .rbp-to-xml converter I added to RC is causing the problem.
In that case please send me a tiny rbp file containing the problematic
constant and I'll fix it ASAP
> I had a very similar problem with properties that I had fixed
> yesterday in the RC's code. The problem was that RC was not detecting
> the _new_ way of how properties get written to XML yet, formerly it
> could only deal with the old way used by RB 5.5
>
> Maybe you're using some new 200x feature with constants that RC does
> not parser correctly yet, either.
>
> Try this:
> Export your project to XML using the IDE. Does that fix it? If so,
> then the .rbp-to-xml converter I added to RC is causing the problem.
> In that case please send me a tiny rbp file containing the problematic
> constant and I'll fix it ASAP
I don't think Im doing anything special with my constants and I did export
my project as XML for RC
...I did change all the references to sArray( 1 ) to sArray( 0 ) in the
method getLocalConstants and it works now. I noticed that that string array
was only one member '0' and that was giving it OutOfBounds Exceptions on
that.
So now it seems to be working just fine with that change. I rebuilt it and
it runs fine now.
Great stuff! Very cool and super helpful. I am going to read up on the
docs/strategies today as I get time. Very nice work, I am totally
impressed.
This is great for refactoring as I go!
-seanA
Sorry I couldn't respond to you when you were having difficulties.
My migraines tend to throw off my sleep schedule, and I just woke up
again.
This is the first report I've had of an Out of Bounds exception with
local constants. My example project contains local constants in some
of its methods, if I remember correctly. I'll go back and check that
code and see if it differs at all from that of the parser for local
variables. Either it's just an "off by one" error in the indexing or
an error in parsing the syntax of the constant declaration. I haven't
yet updated Reality Check for all of the recent changes in syntax for
RB 2005/6, so it's possible.
Thanks for reporting the bug!
-Scott
Why not simply let the Finder unstuff it (i.e. "BOMArchiveHelper.app"
under the hood)?
Ah, Thanks. I was looking for that the other night. I just had no clue
what it was named. None of my "Open with..." options showed this and I
didn't know how to dig it up.
Actually, I see it does show up on the Open with: menu of the get-info
dialog.
Thanks!
--Ed