- Follow “Building Titanium From Source” guide until last chapter (namely “Building and running”)
Checkout version 1.0 because trunk doesn’t have bindings for
Titanium.Filesystem:git checkout titanium_1.0.0; cd kroll; git checkout titanium_1.0.0; cd ..Run
scons apicoverage; it will createbuild/linux/apicoverage.json(of course path is platform-specific)- Download genapidoc.py (taken from mbirth’s wiki) and generate JSDoc-annotated dummy file by calling
genapidoc.py > titanium.jsin directory withapicoverage.json. - You still have to fix some syntax errors in generated file. After correcting them you’ll get working autocompletion of Titanium Desktop API in your favorite IDE.
Enjoy!
Inspired by mbirth’s “Generate JSDoc file for your IDE” recipe for Titanium Mobile.