okaxaki / objc2swift

Objective-C to Swift Converter
http://okaxaki.github.io/objc2swift/
ISC License
268 stars 38 forks source link

Getting [TypeError: Object #<Object> has no method 'isNumber'] #1

Closed mapodev closed 8 years ago

mapodev commented 8 years ago

Error Msg is [TypeError: Object #<Object> has no method 'isNumber']

when trying to convert a file.

objc2swift Status.m
Preprocess : 293ms
[TypeError: Object #<Object> has no method 'isNumber']
Internal Error
okaxaki commented 8 years ago

Thank you for reporting. Does the same error occur for any source code? If so, util.isNumber method is missing. Please make sure you use node v4.4 or later.

If the error occurs only with the specific source code, it might be a parser problem. Could I see the source or its fragment? --stacktrace option may output useful information for debug.

objc2swift --stacktrace Status.m
okaxaki commented 8 years ago

I have confirmed that the same error is occurred on node v0.12 environment. So it probably a node version problem and I close this issue.

If the same error is reproduced with node 4.4 or later, please reopen the issue again.