Re: can't edit...while it is executing
Richard: > It's what software testers call a test. ;) > It isolates the issue to the fewest lines of code > needed to demonstrate the issue. And it was a very good test! I loved it. Forewarned is forearmed, and LC has had quite a few traps to avoid. Glad this one is fixed in latest version. The recipe I gave is well-tested and does work with your code, assuming it holds true on all platforms and machines; you simply have to click as fast as you can, constantly, while holding the Enter/Return key constantly until you get lucky. Then the Inspector or Message box opens free to type or click, if your luck holds, which is 3 out of 4 times for me. Kind of a fun exercise. I've used this trick or a similar one before to gain control in one or two real situations. Turning Debug Mode off while not actively using it (so, using it consciously, only when actually needed, after experiencing a bug that you can't solve without examining variables) has been one of the easiest ways to improve IDE stability on both Windows and Mac over the years. I think Debug has improved quite a bit, but I would recommend it just in case to anyone who is having trouble. When that's rock-solid, it'll be another thing to celebrate! :) Best wishes, Curry Kenworthy Custom Software Development LiveCode Training and Consulting http://livecodeconsulting.com/ --- This email has been checked for viruses by AVG. http://www.avg.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
Mark Waddingham wrote: > On 2017-06-15 16:26, Richard Gaskin via use-livecode wrote: >> Know of any trick for getting Ctrl-. to work for this in LC as it >> does in other xTalks? > > Wait until dp-7 appears: > >http://quality.livecode.com/show_bug.cgi?id=19479 Whoohoo! Thanks! One more great reason to love v9. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
Monte Goulding wrote: > On 15 Jun 2017, at 10:28 am, Richard Gaskin wrote: > >> on mouseUp >> repeat >>answer "Hi" >> end repeat >> end mouseUp > > Lol… that I would abort in my head before it enters the script > editor ;-) It's what software testers call a test. ;) It isolates the issue to the fewest lines of code needed to demonstrate the issue. It would be great to remember to never put an answer dialog in an untested loop, and to inform newcomers that they need to use the answer and ask dialogs with great care to avoid any circumstances which might call them repeatedly. But in our imperfect world I see questions about how to cancel out of such loops from time to time, and even manage to have a "D'oh!" moment myself when I forget to treat LC more delicately than other xTalks I've used. What is it about LC that makes safely exiting with Ctrl-. harder here than in other xTalks? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
On 2017-06-15 16:26, Richard Gaskin via use-livecode wrote: Know of any trick for getting Ctrl-. to work for this in LC as it does in other xTalks? Wait until dp-7 appears: http://quality.livecode.com/show_bug.cgi?id=19479 Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
A slightly better version: on mouseUp repeat answer "Hi" with "What The Hell Was I Thinking About?" end repeat end mouseUp Bob S > On Jun 14, 2017, at 22:39 , Monte Goulding via use-livecode >wrote: > >> on mouseUp >> repeat >> answer "Hi" >> end repeat >> end mouseUp ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
Curry Kenworthy wrote: > Richard: > > > Any way to abort this?: > > on mouseUp > >repeat > > answer "Hi" > >end repeat > > end mouseUp > > There is a good chance of succeeding if you hold down Enter > continually to actuate the dialog OK while clicking rapidly > on the toolbar Property Inspector icon. If the Inspector > appears, you can use it to select your button, edit the script, > add a breakpoint, "OK" and then stop the script. It's also > possible to open the Message Box this way or (for slightly > different code) turn off messages. Depending on the exact > code and situation it may take a while to get back control but > it's nice when it works! The loop's too tight, can't access anything other than the answer dialog's OK button, after which it appears again. Know of any trick for getting Ctrl-. to work for this in LC as it does in other xTalks? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
> On 15 Jun 2017, at 10:28 am, Richard Gaskin via use-livecode >wrote: > > on mouseUp > repeat >answer "Hi" > end repeat > end mouseUp Lol… that I would abort in my head before it enters the script editor ;-) Cheers Monte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
Richard: > Any way to abort this?: > on mouseUp >repeat > answer "Hi" >end repeat > end mouseUp There is a good chance of succeeding if you hold down Enter continually to actuate the dialog OK while clicking rapidly on the toolbar Property Inspector icon. If the Inspector appears, you can use it to select your button, edit the script, add a breakpoint, "OK" and then stop the script. It's also possible to open the Message Box this way or (for slightly different code) turn off messages. Depending on the exact code and situation it may take a while to get back control but it's nice when it works! BTW I'm on Windows, real Windows that is. :) I think I've used this technique on Mac too but let me know if it works. Best wishes, Curry Kenworthy Custom Software Development http://curryk.com/consulting/ --- This email has been checked for viruses by AVG. http://www.avg.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
Mark Wieder wrote: On 06/14/2017 04:48 PM, Monte Goulding via use-livecode wrote: >> Aborting the script usually works for me when this happens. > > Yeah. I'd love it if that worked for me too. > Or do you have some special way of aborting the script? Any way to abort this?: on mouseUp repeat answer "Hi" end repeat end mouseUp -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
On 06/14/2017 04:48 PM, Monte Goulding via use-livecode wrote: Aborting the script usually works for me when this happens. Yeah. I'd love it if that worked for me too. Or do you have some special way of aborting the script? Mine is "kill -9". -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
On 06/14/2017 04:43 PM, Richard Gaskin via use-livecode wrote: The traditional xTalk solution for this is Cmd-./Ctrl-,. which safely exits to top with a notification the the script was aborted. I of course tried all the usual escape routes: ctl-., ctl-break, escape, setting the traceabort to true... I think the latest hangup was a result of jsonToArray choking on a badly-formed json object, so maybe I can blame mergJson for this, but even so it seems that there's some flag that gets set in the engine and I haven't figured out how to turn it loose. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
Aborting the script usually works for me when this happens. > On 15 Jun 2017, at 7:31 am, Mark Wieder via use-livecode >wrote: > > Did we ever figure out how to deal with the "can't with this > script while it is executing" problem? > > I've had to force-quit the IDE several times over the last few days due to a > script error. My own errors, but this halt-and-catch-fire mode prevents me > from correcting them without killing and resurrecting LC. Fortunately I've > gotten into the habit of saving every time I edit anything, so I haven't lost > any code, but I'm annoyed that the system is so unstable that I have to do > that. > > -- > Mark Wieder > ahsoftw...@gmail.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: can't edit...while it is executing
Mark Wieder wrote: Did we ever figure out how to deal with the "can't with this script while it is executing" problem? I've had to force-quit the IDE several times over the last few days due to a script error. My own errors, but this halt-and-catch-fire mode prevents me from correcting them without killing and resurrecting LC. Fortunately I've gotten into the habit of saving every time I edit anything, so I haven't lost any code, but I'm annoyed that the system is so unstable that I have to do that. The traditional xTalk solution for this is Cmd-./Ctrl-,. which safely exits to top with a notification the the script was aborted. It worked that way in HC, SC, and IIRC every other xTalk I've used, even in the middle of a loop calling "answer". This escape is partially implemented in LiveCode, but there are cases (like calling "answer" in a loop) where it isn't yet. It would be a VERY useful addition to this xTalk dialect to have feature completion on this. I'm guessing there's something about the LC engine that makes this harder to do than in any other xTalk. I don't know what that challenge is. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
can't edit...while it is executing
Did we ever figure out how to deal with the "can't with this script while it is executing" problem? I've had to force-quit the IDE several times over the last few days due to a script error. My own errors, but this halt-and-catch-fire mode prevents me from correcting them without killing and resurrecting LC. Fortunately I've gotten into the habit of saving every time I edit anything, so I haven't lost any code, but I'm annoyed that the system is so unstable that I have to do that. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode