navinpeiris / jsca2js

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

Error with sdk 4.1.0 #18

Open felipe3000 opened 9 years ago

felipe3000 commented 9 years ago

Im getting an error with sdk 4.1.0.

My console output:

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

caspahouzer commented 9 years ago

Same for 5.0.0

thiagotalma commented 9 years ago

@navinpeiris please, add 5.0.0 support

caspahouzer commented 9 years ago

+1

Tako88 commented 9 years ago

+1

beta-tank commented 8 years ago

I cant convert 5.0.0. too.

botmaster commented 8 years ago

+1

DeSater commented 8 years ago

Forked and added 5.0.0 support :)

https://github.com/DeSater/jsca2js