I'm enjoying my stroll through the laser game walk through, but find the VM caching scheme getting in the way with my test driven development (you know, hack w/t regard, fix typos, test again ;-)). How do I flush it?
TIA, D _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Tue, Jul 08, 2008 at 05:21:01PM -0400, Dirk Leas wrote:
> I'm enjoying my stroll through the laser game walk through, but find the > VM caching scheme getting in the way with my test driven development (you > know, hack w/t regard, fix typos, test again ;-)). How do I flush it? I have no idea what you are talking about. I don't know of any VM caching scheme. Could you describe what problem you encountered, and what you were doing? -- Matthew Fulmer -- http://mtfulmer.wordpress.com/ _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
I'm running latest Squeak on OS X. I in the beginning of Section 2 of the laser game walk through and I forgot to add the class method to GridDirection. I run the test cases including my new GridDirectionTestCase and it of course fails as it doesn't know what the symbol is. I go back and add it (browse it again after adding it just to make sure I added it), and I get the same error in the Test Runner.
There have been several occasions where I add "something" (e.g. class, method, instance variable, etc.), go back to do some rafactoring, and expect the latest save to cascade through the VM so that my next test case runs the latest code -- often it doesn't. I've seen this before in other environments where the VM is cashing "stuff" and latest code isn't always getting run. TIA, D On Tue, Jul 8, 2008 at 5:34 PM, Matthew Fulmer <[hidden email]> wrote:
-- Dirk Leas South Orange, NJ Ergonomic Tip of the Day: Hug your spouse and kids! _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Tue, Jul 08, 2008 at 05:42:13PM -0400, Dirk Leas wrote:
> I'm running latest Squeak on OS X. I in the beginning of Section 2 of the > laser game walk through and I forgot to add the class method to > GridDirection. I run the test cases including my new GridDirectionTestCase > and it of course fails as it doesn't know what the symbol is. I go back > and add it (browse it again after adding it just to make sure I added it), > and I get the same error in the Test Runner. > > There have been several occasions where I add "something" (e.g. class, > method, instance variable, etc.), go back to do some rafactoring, and > expect the latest save to cascade through the VM so that my next test case > runs the latest code -- often it doesn't. I've seen this before in other > environments where the VM is cashing "stuff" and latest code isn't always > getting run. what is the error? The error message is saved as text in the SqueakDebug.log file, which is next to the image file. How are you adding the method? you just using the debugger or browser to add the method, or are you doing something else? Methods are compiled and added to the system as soon as you press alt-s, so I think you may be seeing a different problem than what you think you are seeing. The error you would see in the case of a missing method is "MessageNotUnderstood: GridDirection>>something" are you getting this error instead? "MessageNotUnderstood: UndefinedObject>>something" That means you tried to send the message #something to the object nil. -- Matthew Fulmer -- http://mtfulmer.wordpress.com/ _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
In reply to this post by Tapple Gao
I encountered a similar problem a few days ago, and asked about it. Discussion, but no particular answer was forthcoming, probably because I included the work around, which is: ClassName compileAll
On 7/8/08, Dirk Leas <[hidden email]> wrote: I'm running latest Squeak on OS X. I in the beginning of Section 2 of the laser game walk through and I forgot to add the class method to GridDirection. I run the test cases including my new GridDirectionTestCase and it of course fails as it doesn't know what the symbol is. I go back and add it (browse it again after adding it just to make sure I added it), and I get the same error in the Test Runner. _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Free forum by Nabble | Edit this page |