navinpeiris / jsca2js

Utility to convert JSON in Appcelerator's JSCA format to JavaScript
74 stars 24 forks source link

Error with SDK 1.4.0 #19

Open stephenconnolly opened 9 years ago

stephenconnolly commented 9 years ago

Hello,

See below, I get the the following error:

Retrieving Titanium JSCA API for version: 4.1.0 Converting API to JavaScript Traceback (most recent call last): File "./titanium-mobile.py", line 124, in main() File "./titanium-mobile.py", line 114, in main javascript = convertJsca2Js(jsca, version) File "/Users/stephenconnolly/Documents/PhpstormProjects/jsca2js/jsca2js.py", line 268, in convertJsca2Js javascript += formatNamespace(namespace) File "/Users/stephen/Documents/PhpstormProjects/jsca2js/jsca2js.py", line 251, in formatNamespace formatter.addLine(formatMethods(namespaceContent)) File "/Users/stephen/Documents/PhpstormProjects/jsca2js/jsca2js.py", line 196, in formatMethods formatter.add(generateMethodJSDoc(method)) File "/Users/stephen/Documents/PhpstormProjects/jsca2js/jsca2js.py", line 142, in generateMethodJSDoc formatter.addLine(prefix, '@returns ', formatReturn(returns)) File "/Users/stephen/Documents/PhpstormProjects/jsca2js/formatter.py", line 18, in addLine return self.add(self.indent).add(''.join(args)).newLine() TypeError: sequence item 2: expected string, list found

Any ideas ?

Regards, Stephen

caspahouzer commented 9 years ago

Same for 5.0.0

DeSater commented 8 years ago

Forked and added 5.0.0 support :)

https://github.com/DeSater/jsca2js

caspahouzer commented 8 years ago

f**ck yeah!