compiler not catching bad exit within routine

Ralph DiMola rdimola at evergreeninfo.net
Wed Dec 7 19:31:27 CET 2016


I just had a problem like this minutes ago. I had fat fingers and must have
hit some bizarre ctrl key combo and LC(8.1.1) instantly quit with no
messages. I restarted LC When I opened the script LC was OK but when I
clicked the left bar to select the handler I was working on... BOOM LC quit
again. I restarted LC again, opened the script and selected the entire
script (15,000 lines) and copied it to the clipboard, then deleted the
entire script, I clicked Apply and then pasted the 15,00 lines back in,
clicked Apply again. I was now able to click on the handler I was working on
and go on my merry way(but not before I did a "ctrl S").

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Dr. Hawkins
Sent: Wednesday, December 07, 2016 11:13 AM
To: How to use LiveCode
Subject: Re: compiler not catching bad exit within routine

On Wed, Dec 7, 2016 at 3:21 AM, Dave Kilroy <dave at applicationinsight.com>
wrote:

> Have you tried checking your script for invisible characters? Try 
> copying the entire script to something like BBedit, selecting and 
> copying it afresh there, deleting everything in the LiveCode script, 
> saving it to ensure it's clean, pasting in the (hopefully cleaned) 
> script from Bbedit and finally saving...
>

I didn't even have to go that far.

Pasting it into another script whole was enough for that; it gets found
there, and actually compiles & runs.

And to get it going, I added a new handler above it, and pasted a third of
it at a time, including spacing.

But that's the small stuff.

The real problem here is that the compiler is quietly failing.  the rest of
the script gets compiled, no error is thrown, and the problem can't be found
until another routine attempts to call this routine and it can't be found.


There *should* be an error whenever the compile fails to compile . . .

FWIW, this was the las hanger in that script, so I don't know what would
have happened to subsequent handlers.


--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list