The %#@%&$ red dots no longer stick. (SOLVED)

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

The %#@%&$ red dots no longer stick. (SOLVED)

Post by dunbarx » Tue Nov 03, 2020 7:42 pm

They did last week!

Restarted, yelled, swore, cried. Nothing worked.

And much worse, now they lose their place even if I only modify a line, not that I add or subtract lines. I thought it used to be a loss of line count. Now any change at all breaks them.

v. 9.6.1 on a Mac.

Craig
Last edited by dunbarx on Fri Nov 06, 2020 7:41 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10115
Joined: Fri Feb 19, 2010 10:17 am

Re: The %#@%&$ red dots no longer stick.

Post by richmond62 » Tue Nov 03, 2020 8:02 pm

What a relief I've never had recourse to the red dots.

When I work on a long script I tend to shift it out into a word-processing document, then copy-paste back and forth (yup, it's nutty).

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10054
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: The %#@%&$ red dots no longer stick.

Post by FourthWorld » Tue Nov 03, 2020 8:46 pm

richmond62 wrote:
Tue Nov 03, 2020 8:02 pm
What a relief I've never had recourse to the red dots.

When I work on a long script I tend to shift it out into a word-processing document, then copy-paste back and forth (yup, it's nutty).
What do we need to fix that currently makes that workflow desirable?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: The %#@%&$ red dots no longer stick.

Post by dunbarx » Tue Nov 03, 2020 11:50 pm

Richard.

What we need to fix are red dots. They aren't very useful if you cannot trust them. They were fixed not too long ago. Rats.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10054
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: The %#@%&$ red dots no longer stick.

Post by FourthWorld » Wed Nov 04, 2020 12:41 am

dunbarx wrote:
Tue Nov 03, 2020 11:50 pm
Richard.

What we need to fix are red dots. They aren't very useful if you cannot trust them. They were fixed not too long ago. Rats.
Sounds good. Recipe?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10115
Joined: Fri Feb 19, 2010 10:17 am

Re: The %#@%&$ red dots no longer stick.

Post by richmond62 » Wed Nov 04, 2020 8:51 am

Let's back up a spot . . .

No obvious problems here:
-
Screenshot 2020-11-04 at 9.47.00.png
-
When I run that script the thing stops at the red dot and the script editor opens.

Adding a line makes no difference:
-
Screenshot 2020-11-04 at 9.50.50.png
-

LC 9.6.1, macOS 11.0.1 Beta
They did last week!
What else in your operating environment has changed?

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

Re: The %#@%&$ red dots no longer stick.

Post by dunbarx » Wed Nov 04, 2020 2:52 pm

Richard.

Recipe for what? The red dots are now, if anything, less stable than a year or two ago. Then, I could at least change a comma on a line somewhere, that is, not add or delete any lines, and they would stick. Now I cannot. ANY change to the script, even, within a single line, changing "xyz" to "abc", will unstick all red dots currently in place.

I know I can add breakpoint commands. That is not the point. I love red dots, or rather, used to.

Maybe I will trash my preferences. Watch this space...

Craig

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

Re: The %#@%&$ red dots no longer stick.

Post by dunbarx » Wed Nov 04, 2020 3:58 pm

Well, trashing the preferences file did nothing to help. I did not make any changes to my machine. I will try this at home.

I suppose everyone else's red dots work just fine?

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: The %#@%&$ red dots no longer stick.

Post by jacque » Wed Nov 04, 2020 4:51 pm

I see them move sometimes but it appears to be a cosmetic problem. If I click in another handler or do anything to jog a redraw the dots usually reset themselves.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10054
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: The %#@%&$ red dots no longer stick.

Post by FourthWorld » Wed Nov 04, 2020 5:14 pm

dunbarx wrote:
Wed Nov 04, 2020 2:52 pm
Recipe for what?
For reproducing the issue you're experiencing.

Recipes are the way we communicate bugs, in any software, so that others can more readily see what we're seeing.

I see discussions about breakpoints frequently, but from a surprisingly small number of people. I don't think the problem is with the people, merely something about their workflow. A recipe ensures that others trying to observe the issue have the same workflow, by taking the same steps.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: The %#@%&$ red dots no longer stick.

Post by dunbarx » Wed Nov 04, 2020 8:06 pm

Richard.

I thought this had been rehashed so much that everyone knew what I meant. A recipe would be:

1- In a working script, set a red dot. Run the handler of interest, and note that execution stops at the dot.
2- Make any modification of any kind to the script. This may or may not involve changing the number of lines in that script.
3- Run the handler of interest. Note that execution runs right past the dot.

This was a bug forever. It was fixed somewhere in v.9. For me too, but now is broken again, and worse than before. It used to be that one had to modify the number of lines, so that the dot lost its place. Now, I can modify one char in a line anywhere in the script, and the red dot loses its place. Perhaps it is the recompile that does this.

This happened abruptly about ten days ago. Same OS, same LC, same machine. No new software installed. Restarting does nothing, Trashing the LC preferences does nothing.

I am depressed.

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: The %#@%&$ red dots no longer stick.

Post by jacque » Wed Nov 04, 2020 9:08 pm

Open the property inspector for the stack. Choose the cRevGeneral property set from the Set popdown. The first three properties begin with the word "breakpoint". You can delete all three, but the one that's storing your breakpoints is just called "breakpoint". Empty or delete it and see if that helps.

Sometimes the list gets mangled.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: The %#@%&$ red dots no longer stick.

Post by dunbarx » Wed Nov 04, 2020 9:20 pm

Jacque.

Yep. That did it. You are a genius. Thank you.

All three properties were restored immediately. Was that the issue throughout the history of this incredibly annoying travail? No wonder some people saw it and others did not.

How did the team miss it?

Oh, did I mention I wanted to thank you?

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: The %#@%&$ red dots no longer stick.

Post by jacque » Wed Nov 04, 2020 11:03 pm

You're welcome. I'm less a genius than just a curious user who pokes around in the IDE sometimes.

I think there's probably a bug somewhere that confuses the breakpoint list but yes, this is likely why some have more trouble than others. I just did a quick check and I see that the "Clear all breakpoints" menu item in the Debug menu does the same thing as the manual method, so that's easier. I do tend to use that menu item a lot so maybe that's why I have less trouble. The glitch I originally talked about was the misplacement of existing dots when you scroll or add carriage returns. Those do seem to auto-update correctly when a refresh happens.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: The %#@%&$ red dots no longer stick.

Post by dunbarx » Thu Nov 05, 2020 3:50 pm

Hi.

I saw that you do not have to actually delete the custom prop, just clear it. That does clear the dots themselves, of course.

I made a routine in a plug-in I use for various gadgetry:

Code: Select all

on mouseUp
   set the cREVGeneral["breakpoints"] of this stack to ""
end mouseUp
I will play with this for a while and see if it, er, sticks. Otherwise I will try to delete the prop itself as you first mentioned. Anyway, it is far better to have to reset red dots and have them work again than to reset red dots and not have them not work again. :wink:

Craig

Post Reply