Status: Accepted
Owner: ---- Labels: Milestone-1.4 Type-Bug New issue 5300 by [hidden email]: End of startup script behavior changed ? http://code.google.com/p/pharo/issues/detail?id=5300 Guys, Maybe I missed this, but did something change with the behavior at the end of a startup script between 1.3 and 1.4 ? It used to be that the image kept on running unless you asked it to quit explicitly, now it seems that the image automatically quits unless you keep it busy. Can someone confirm this ? Was this intentional ? What would be the recommended way to keep the image open ? Somehow something like [ (Delay forDuration: 1 hour) wait ] repeat. seems so silly, but it works. Thx, Sven _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #1 on issue 5300 by [hidden email]: End of startup script behavior changed ? http://code.google.com/p/pharo/issues/detail?id=5300 I just tested the following script: script.st <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< FileStream stdout nextPutAll: 'bla'; crlf. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< prints out the expected 'bla' and the image stays open stackVM compilerWarning.image script.st Image: 14329 VM: Mac StackInterpreter VMMaker-oscog-EstebanLorenzano.139 => stays open VM: Mac CoInterpreter VMMaker-oscog-EstebanLorenzano.139 => stays open what VM / Image are you using? _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #2 on issue 5300 by [hidden email]: End of startup script behavior changed ? http://code.google.com/p/pharo/issues/detail?id=5300 Thanks for looking into this ! I just retried everything, and you are right and I was wrong: it is still working as before: $ cat test.sh #!/bin/bash script_home=$(dirname $0) script_home=$(cd $script_home && pwd) image=$script_home/Pharo-1.4.image script=$script_home/test.st args=$* vm=$script_home/bin/CogVM options="-vm-display-null -vm-sound-null" #echo $vm $options $image $script $args $vm $options $image $script $args $ cat test.st FileStream stdout wantsLineEndConversion: true. { Smalltalk version. Smalltalk lastUpdateString. Smalltalk vm version. } do: [ :each | FileStream stdout nextPutAll: each; cr ]. $ ./test.sh Pharo1.4a Latest update: #14332 CoInterpreter VMMaker-oscog-IgorStasenko.123 uuid: f8c5573e-7fd1-4959-91fc-e0c24d967e03 Aug 31 2011, StackToRegisterMappingCogit VMMaker-oscog-IgorStasenko.123 uuid: f8c5573e-7fd1-4959-91fc-e0c24d967e03 Aug 31 2011, https://git.gitorious.org/cogvm/blessed.git Commit: fe0330a267e1a99bd27bd161443c5cc255fde8c3 Date: Wed Aug 31 14:34:23 2011 +0200 By: Igor Stasenko <[hidden email]> And it stays open. I also retried 1.3 and the behavior is the same, as long as I was using stock images. With my custom images it does _not_ work. These were build by starting a stock image, loading code and saving with: SmalltalkImage current saveAs: 'experimental'; snapshot: false andQuit: true. I recently changed this. Before I copied and thus renamed the stock image before building and just saved. Now I do this saveAs: and quit. That seems to have resulted in an image with the quiting behavior. Is that possible ? _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #3 on issue 5300 by [hidden email]: End of startup script behavior changed ? http://code.google.com/p/pharo/issues/detail?id=5300 Haha.. you got catched by this: SmalltalkImage current saveAs: 'experimental'; snapshot: false andQuit: true. now, if you run your saved image 'experimental', once it starts, guess what it does? Yes, it does snapshot: false andQuit: true. :) So you should rewrite it like: restarting := SmalltalkImage current saveAs: 'experimental'. restarting ifFalse: [ Smalltalk snapshot: false andQuit: true ]. _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Updates:
Status: Closed Comment #4 on issue 5300 by [hidden email]: End of startup script behavior changed ? http://code.google.com/p/pharo/issues/detail?id=5300 Very funny indeed. Thanks a lot, I learned something new. I changed the buid script and all is well again ;-) _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Free forum by Nabble | Edit this page |