Latent red dots?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10337
Joined: Wed May 06, 2009 2:28 pm

Latent red dots?

Post by dunbarx » Tue Aug 13, 2024 5:32 pm

In writing a code snippet, as one types, the SE will usually present a red dot. This since the syntax for a half-built line of code is unlikely to be "error" free. But once that line is complete and correct, the dot went away.

For the last couple of weeks, as I am building such a snippet, the red dot appears as usual, but persists after I have finished the (perfectly correct) line of code. I have to click elsewhere or save the stack in order for the dot to clear.

This has never caused a problem apart from my wasting time trying to find a non-existent error. I now am learning to force the issue each time I complete typing.

Anyone see this?

LC 9.6.9. Mac Mini, Ventura 13.4

Craig

stam
Posts: 3089
Joined: Sun Jun 04, 2006 9:39 pm

Re: Latent red dots?

Post by stam » Tue Aug 13, 2024 7:36 pm

It's not a red dot - it's a red dot with an "x" in it (not to be confused with the red dot that sets a breakpoint, which is what I though you meant on first reading your post).

It just means you can't "compile" the script hitting the "apply" button top left.
This type of syntax error highlighting (yes it is an error until your line is syntactically correct!) is common across many IDEs for other languages.

You can switch this behaviour off if it bothers you.
While having the script editor in focus: Edit menu -> Options -> Live errors.

Personally I prefer this 'on' but it's easy to change.
Stam

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10337
Joined: Wed May 06, 2009 2:28 pm

Re: Latent red dots?

Post by dunbarx » Tue Aug 13, 2024 8:30 pm

Stam.

Thanks. I know about those, and I should have been clearer about "red dots".

My issue is that even if the line of code I just made is correct in all respects, after I sat back and admired it the dot persists until I "do" something, like click on another line. It then disappears. Right now I cannot duplicate it, typical of how my world works. :roll:

Craig

stam
Posts: 3089
Joined: Sun Jun 04, 2006 9:39 pm

Re: Latent red dots?

Post by stam » Tue Aug 13, 2024 9:51 pm

Yeh not seen that. Ghost in the machine?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10337
Joined: Wed May 06, 2009 2:28 pm

Re: Latent red dots?

Post by dunbarx » Tue Aug 13, 2024 10:21 pm

Welcome to my world. :D

Craig

Post Reply