Code Monkey home page Code Monkey logo

jsca2js's Issues

Could you update the file for Titanium 2.0.2?

Titanium 2.0.2 has just been released.. I don't know how many changes has been done to the API...

I'm new to Titanium but prefer IntelliJ IDEA to Eclipse and need to able to code offline so I would really like to have an updated file :)

Conversion of 3.2.1 API to .js

I was unable to convert the 3.2.1. api to .js format using this utility. I had no problem up until now, so I am wondering if the new iOS7 additions broke something. I could really use the new version, so if it can be converted and included in the download, that would be great.

Error with SDK 1.4.0

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

unable to generate against current 3.2.1 version

Hi-

I'm using the current 3.2.1 version of Ti, and when I run your script, I get:

$ ./titanium-mobile.py 3.2.1
Retrieving Titanium JSCA API for version: 3.2.1
Unable to retrieve API for Titanium version 3.2.1

It will however fetch the older versions, such as 3.1.2, so maybe something changed on the server-side for this latest version?

TIA, and great utility!

Error with sdk 4.1.0

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

Error with parsing 3.4.0

Hi!

I got an error parsing the newest SDK json 3.4.0

Retrieving Titanium JSCA API for version: 3.4.0
100.0% 24731648 / 24723669
Converting API to JavaScript
Writing JavaScript to file: titanium-js/titanium-mobile-3.4.0.js
Traceback (most recent call last):
  File "titanium-mobile.py", line 124, in <module>
    main()
  File "titanium-mobile.py", line 118, in main
    writeJsFile(javascript, outputFilePath)
  File "titanium-mobile.py", line 63, in writeJsFile
    file.write(content)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 443792: ordinal not in range(128)

Could you please fix it? Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.