Nice work! I got a ton of WARNings when the Titanium mobile compiler
tries to compile the JS. There 4 types of warning...
Missing ';'
Missing { or } on if statements etc.
Missing variable declaration in for loop. e.g. for(var i in blah)
{.....}
Missing if check in body of for loop (something to do with
prototypes). for(var i in blah){if(true){.....}}
Any ways around this lot? Are there any plans to make it Titanium
Mobile compatible?
Tobin
Let me say that there is currently a known issue with JazzRecord in
Titanium DESKTOP (a bug which I've reported to Appcelerator and they
are aware of, hopefully it will be fixed in Titanium 1.1), and I have
therefore been unable to finish porting the test suite to run in
Titanium desktop.
Next, it's been a little while since I've looked at running JazzRecord
in Titanium mobile, but I will definitely try this out later today.
Maybe I can port the test suite to mobile even if it doesn't work in
desktop. Whether I get this working or not, I'll post back to the
group to let you know the status. I know it was working fine at one
point, but Appcelerator has been moving quickly the last few months
and may have changed an API I wasn't aware of.
I've done lots of de-linting on the JazzRecord code, so there
shouldn't be any missing semicolons or unmatched curlies, or anything
of that nature. Is it possible this has snuck into your own code? If
you can pinpoint the lines where this occurs in JazzRecord I'll
happily take a look.
Are you definitely using the latest branch code (0.8) from Github?
Sometimes the Web site isn't quite up to date. I've been thinking
perhaps we should just point folks directly at Github for this very
reason, as it's a pain to maintain.
The latest stable version on Github: http://github.com/thynctank/jazzrecord/tree/0.8
Thanks for the quick reply, JazzRecord is very promising :)
Nope, I'm not using GitHub version, which might explain everything.
Let me grab that and try again :)
Thanks
Tobin
I'm dragging build/jazz_record.js into my Titanium solution, and not
too many warnings now...
[WARN] JavaScript compiler reported "Missing semicolon." at
jazz_record.js:24
[WARN] JavaScript compiler reported "Missing semicolon." at
jazz_record.js:24
[WARN] JavaScript compiler reported "'}' is not a statement label." at
jazz_record.js:24
[WARN] JavaScript compiler reported "Missing semicolon." at
jazz_record.js:24
[WARN] JavaScript compiler reported "Expected an identifier and
instead saw ','." at jazz_record.js:24
[WARN] JavaScript compiler reported "Stopping, unable to continue.
(100% scanned)." at jazz_record.js:24
[WARN] JavaScript compiler reported "Missing semicolon." at news.js:63
[WARN] JavaScript compiler reported "['group'] is better written in
dot notation." at news.js:73
[WARN] JavaScript compiler reported "['group'] is better written in
dot notation." at news.js:75
[WARN] JavaScript compiler reported "['group'] is better written in
dot notation." at news.js:76
[WARN] JavaScript compiler reported "['group'] is better written in
dot notation." at news.js:77
I get this error whilst creating a few models and running migrate.
Script Error = Result of expression 'this.result' [null] is not an
object. at jazz_record.js (line 1)
Anyway, I haven't really got my head into that yet, I'll post up
something more useful once I've had a play :)
T
They're failing in both TI environments, but you're welcome to run
them and tinker with the code as you like. I will continue to look
into this as time allows.