LiveCode file edit issue

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

LiveCode file edit issue

Post by Armenhui » Tue Jul 19, 2016 5:06 pm

Hi all,

I can not edit my stack, can not write code on my stack. Anyone knows why it can be happen? And what I can do?

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 861
Joined: Fri Feb 06, 2015 4:03 pm

Re: LiveCode file edit issue

Post by LiveCode_Panos » Tue Jul 19, 2016 5:27 pm

Hi Armenhui,

I would suggest deleting your Prefs. On OS X they are located in /Users/your_user_name/Library/Preferences/RunRev/ folder.

You should see one or two files there:

livecode.rev --> Prefs for LiveCode versions < 7
livecode7.rev --> Prefs for LiveCode 7 and 8

1. Quit LC
2. Remove those 2 files from this folder. Those files will be re-generated once you start LiveCode again.
3. Start LC
4. Try to edit your stack now

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LiveCode file edit issue

Post by Klaus » Tue Jul 19, 2016 5:28 pm

Hi Armenuhi,

did someone, not you, eventually check "cantmodify" in the inspector for that stack? 8)

Or is it "protected" on a system level?
e.g. I can check "Protected" on my Mac for a file in the INFO for that file.


best

Klaus

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: LiveCode file edit issue

Post by Armenhui » Tue Jul 19, 2016 5:43 pm

Thanks, I try two options which you said but the result was same, I can not edit the stack.:(

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

Re: LiveCode file edit issue

Post by FourthWorld » Tue Jul 19, 2016 7:03 pm

Perhaps the style property of the stack has been changed from topLevel to modeless?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: LiveCode file edit issue

Post by jacque » Wed Jul 20, 2016 5:43 pm

I've seen something similar when LC gets stuck in an infinite loop in one of its IDE handlers. There may be something in your script that causes that. If none of the other suggestions work, try launching LC and clicking the Messages icon in the toolbar, which turns off your scripts. Then use the File menu to open the stack.

If the stack is editable now, something in your script is causing the IDE to think it's in debug mode when it isn't.

Another thing to try is to hold down cmd-period (ctrl-period on Windows) when the stack stops working. If that clears the problem there may be a bug in the IDE. I've only seen this twice and I don't have a recipe for it yet, but if it's reproducible for you the team would probably want to see your stack.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply