Page 1 of 1
"Unquoted literal" error - big BUG in LC?
Posted: Thu Mar 27, 2014 9:10 pm
by croivo
Here is my short story... Everything was working fine - all code was running without any problems, but then, suddenly, I got "Unquoted literal" error for almost every button in my stack that has some code. Weird thing is that SAME code was running fine, but suddenly it went weird.
Can anybody tell me if I did something wrong (I think I didn't because everything is same as before) or this is just another BIG, very frustrating bug in LiveCode? I tried to re-run my stack with 6.1, 6.5, 6.5.2 and 6.6 version of LC.
Please help.
Cheers
Re: "Unquoted literal" error - big BUG in LC?
Posted: Thu Mar 27, 2014 9:16 pm
by Dixie
With a 'script editor' open... go to the 'Edit' menu > 'Variable Checking' and set it so the check mark is not showing against it... I think that may solve your problem... Variable checking causes LiveCode to perform a stricter check of your scripts. Using any variable without declaring it first, or using a literal string without encloning it in quotes causes a compile error. This behavior can be useful in tracking down certain subtle problems such as misspelling a variable name. - from the 'User Guide'...
Re: "Unquoted literal" error - big BUG in LC?
Posted: Thu Mar 27, 2014 9:32 pm
by dunbarx
Simon has a point. This is the same as checking "strict compilation mode" in the LC preferences, which can be done in browse mode if you wish.
There has been hubbub over time that somehow this property get set, and nobody knows how. Do check yours out, and if it has indeed been set, and you KNOW it wasn't you. write back
Craig Newman
Re: "Unquoted literal" error - big BUG in LC?
Posted: Thu Mar 27, 2014 9:35 pm
by croivo
It works now fine as before. Thanks guys for quick reply!
Re: "Unquoted literal" error - big BUG in LC?
Posted: Thu Mar 27, 2014 9:49 pm
by dunbarx
Dixie had the point. Not Simon.
Glad it is working. But did you set that property? If not, are you sure?
Craig
Re: "Unquoted literal" error - big BUG in LC?
Posted: Thu Mar 27, 2014 10:50 pm
by croivo
dunbarx wrote:Dixie had the point. Not Simon.
Glad it is working. But did you set that property? If not, are you sure?
Craig
I'm 99% sure I didn't click on that.
Re: "Unquoted literal" error - big BUG in LC?
Posted: Thu Mar 27, 2014 10:51 pm
by Dixie
LOL... it's that 1% that you have to be careful of

Re: "Unquoted literal" error - big BUG in LC?
Posted: Thu Mar 27, 2014 10:54 pm
by Simon
Isn't working with unquoted literal's just asking to kicked?
Simon
(who will take credit for Dixie's work any day)
Re: "Unquoted literal" error - big BUG in LC?
Posted: Fri Mar 28, 2014 9:15 am
by SparkOut
Simon wrote:Isn't working with unquoted literal's just asking to kicked?
Simon
(who will take credit for Dixie's work any day)
Yes it is. You may be able to get away with it much of the time but there will surely be problems at some point or other. Then they will be hard to track down - frustrating, and as you found, easy to mistake for a bug.
Re: "Unquoted literal" error - big BUG in LC?
Posted: Fri Mar 28, 2014 10:49 am
by Simon
Hi SparkOut,
Not me... I'm not so cavalier.
Simon
Re: "Unquoted literal" error - big BUG in LC?
Posted: Fri Mar 28, 2014 8:38 pm
by SparkOut
Yes sorry, I shouldn't switch addressee mid post!