"The following objects were modified outside the script editor, would you like to reload them"

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
danielrr
Posts: 106
Joined: Mon Mar 04, 2013 4:03 pm

"The following objects were modified outside the script editor, would you like to reload them"

Post by danielrr » Sun May 12, 2019 2:26 pm

Whenever I use a specific stack, I keep receiving the following warning:

"The following objects were modified outside the script editor, would you like to reload them"

It appears every time I try to save a script, or while I am scripting, for no reason I can isolate. Its becoming really annoying. :shock:

Somebody knows why this may happen, and how to get rid of it?

I am using dropbox, but I don't have this issue with any other stack I usually use from Dropbox.

bogs
Posts: 3786
Joined: Sat Feb 25, 2017 10:45 pm

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by bogs » Sun May 12, 2019 3:12 pm

I've seen this pop up on the forum before, so maybe reading that will help you isolate the cause.

The only thing I am pretty sure of is that you will see that message if you or a script is editing the control script outside of the SE. Since your indicating this is happening with one stack in particular, maybe go through the code and see if it is triggering a change to some object.
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6833
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by FourthWorld » Sun May 12, 2019 3:21 pm

How do you respond to the prompt?
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

danielrr
Posts: 106
Joined: Mon Mar 04, 2013 4:03 pm

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by danielrr » Sun May 12, 2019 3:51 pm

I tryed both ways, "cancel" and "Reload". ANd the problem remains the same, only that if you answer "reload" there's some panick since all the script vanishes the very second (it reappears latter)

danielrr
Posts: 106
Joined: Mon Mar 04, 2013 4:03 pm

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by danielrr » Sun May 12, 2019 3:54 pm

The only odd thing I see is that, if I go to the Proyect browser of this particular stack, in addition to all the cards I can see a "Data Grid Templates" (followed by a longish number) I can't say anything bout.
bogs wrote:
Sun May 12, 2019 3:12 pm
I've seen this pop up on the forum before, so maybe reading that will help you isolate the cause.

The only thing I am pretty sure of is that you will see that message if you or a script is editing the control script outside of the SE. Since your indicating this is happening with one stack in particular, maybe go through the code and see if it is triggering a change to some object.

Klaus
Posts: 11197
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by Klaus » Sun May 12, 2019 4:12 pm

danielrr wrote:
Sun May 12, 2019 3:54 pm
... in addition to all the cards I can see a "Data Grid Templates" (followed by a longish number) I can't say anything bout.
LC will create this automatically when you add a Datagrid to your stack, so this is desired behavior!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5104
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by jacque » Sun May 12, 2019 4:35 pm

LiveCode tracks the last version of the script it knows about and if it differs from the current one, you get that dialog. That's because LC allows you to use an external script editor and it wants to be sure you meant to keep the changes the external editor made. But there's a glitch somewhere that triggers the dialog even when you don't use an external editor, and I've seen the same thing you do occasionally. I've never figured out why.

If any of your other controls are changing the script, that may cause it. Or if you paste in a revised script or handler, that might too, though I've done that a lot and never got the dialog. Do you have any scripts that set the script of a different control? I wonder if the datagrid does that.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

danielrr
Posts: 106
Joined: Mon Mar 04, 2013 4:03 pm

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by danielrr » Mon May 13, 2019 2:52 pm

Thanks Jacque,

There's nothing special in this stack. No calls to an external editor (I'd like to know how can I call an external editor, BTW) no weird things. Just ordinary do this and that via functions stuff. All non-basic fields, erased. I tried (twice) to start anew: I created a new stack. Created fresh new buttons & copied the script from the old buttons into the new buttons (even copy&pasting via BBedit to delete all weid stuff and evil spirits)… and the problem remains the same. It is really annoying not only because I need to answer the unsolicited messages (about 20 times an hour) but because eventually LC crashes. I feel miserable :cry:

bogs
Posts: 3786
Joined: Sat Feb 25, 2017 10:45 pm

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by bogs » Mon May 13, 2019 7:58 pm

danielrr wrote:
Mon May 13, 2019 2:52 pm
No calls to an external editor (I'd like to know how can I call an external editor, BTW)
In the olden days of Mc, circa 2.5, you could call an external editor directly from the preferences by entering the cli for the editor of choice, which was subsequently hidden when it went OSS, but here is what it looked like...
Preferences_001.png
Edit from outside of yourself...
Sometime there-after, Ken Ray (I think) created a plugin to achieve the same thing, named the STS/MLXEditor...
STS-MLXEditor 2.0.1_002.png
STS/MLX-pealidocious!
Which you can still download from his site: http://www.sonsothunder.com/devres/live ... nloads.htm

However, I won't be able to vouch for whether it works or not in the newest versions of Lc, as I rarely venture past 6.x. I believe it was still working as of 7.x though :roll:

You will give up some things using an external editor, proper syntax coloring (unless it is atom, sublime, or a few others), and of course debugging is a bit more extended and the like.
Image

danielrr
Posts: 106
Joined: Mon Mar 04, 2013 4:03 pm

Re: "The following objects were modified outside the script editor, would you like to reload them"

Post by danielrr » Thu May 16, 2019 3:54 pm

I have identified a piece of code that causes LC keep asking me to reload the script again and again with the infamous prompt "The following objects were modified outside the script editor, would you like to reload them", until it eventually crashes. BUt the thing is, it is not the code itself (it is just a declaration) but some hidden character what is causing the problem. I am sending the characters using an attachment, just for the curious of you. Can anybody do something with this info?
Attachments
bugLC.livecode.zip
(982 Bytes) Downloaded 18 times

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”