My RunRev is corrupted ?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 1084
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

My RunRev is corrupted ?

Post by trevix » Sat Dec 27, 2008 7:20 pm

On OSX 10.5 and Rev 3 after several debugging cycle I've got a problem I cannot resolve (I tried also to download and re-install Revolution from scratch with no result and there there are no problems on another Mac of mine)

Before: I was trying to use the "DefaultFolder" in a script without success.
After a Rev lock, after relaunch, I could not insert nowhere a red breakpoint dot (resolved making a new copy of the stack)
Then I found out that a simple script like this, on a clean empty stack (nothing except a button):

Code: Select all

on mouseUp
   put "asino" into Cosa
end mouseUp
gets this error:
button "Button": compilation error at line 2 (Chunk: can't create a variable with that name (explicitVariables?)) near "Cosa", char 16
- I checked the explicitVariables and it is set to false.
- I restarted the Mac
- I trashed the "revpreferences.rev" file from preferences
Is there some hidden Revolution file that is making the problem?

Thanks for any help
Trevix

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Sun Dec 28, 2008 3:52 pm

Hi Trevix,

this looks like a set preference for the script editor. Open the preferences->script editor->Strict compilation mode

check this and uncheck afterwards

Close Preferences.

The script editor can set the explicitvars temporary to check if the script compiles with "simulated" explicit vars. (Even though I recommend to leave that on and declare variables + quote literals, that might be a matter of taste though)

Cheers,

Malte

trevix
Posts: 1084
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Post by trevix » Mon Dec 29, 2008 3:53 pm

Thank you for the as usual prompt answer.
Every thing is fine now...

Post Reply