typescript2java icon indicating copy to clipboard operation
typescript2java copied to clipboard

Maximum call stack size exceeded

Open thigg opened this issue 6 years ago • 0 comments

While trying to convert https://github.com/apache/couchdb-nano/blob/master/lib/nano.d.ts with

{
    "sourceRootDir": "../couchdb-nano/lib",
    "baseJavaPackage": "com.couchdb.nano",
    "defaultJavaPackage": "env",
    "javaPackages": {
        "couchdb-nano": "nano",
        "lib":"nano"
    },
    "processInternalTypes": false,
    "outputDirectory": "./out"
}

I get a :

../couchdb-nano/lib/nano.d.ts (1223,25): Type 'ConditionOperands' is not assignable to type 'string'.
../couchdb-nano/lib/nano.d.ts (1224,25): Type 'ArrayFieldOperands' is not assignable to type 'string'.
../couchdb-nano/lib/nano.d.ts (1225,25): Type 'CombinationOperands' is not assignable to type 'string'.
Analyzing exportable nodes...
Ignored SyntaxKind: ImportDeclaration
/home/user/couch/typescript2java/node_modules/typescript/lib/typescript.js:30702
        function getIndexInfoOfStructuredType(type, kind) {
                                             ^

RangeError: Maximum call stack size exceeded
    at getIndexInfoOfStructuredType (/home/thilo/git/couch/typescript2java/node_modules/typescript/lib/typescript.js:30702:46)
    at getIndexTypeOfStructuredType (/home/thilo/git/couch/typescript2java/node_modules/typescript/lib/typescript.js:30709:24)
    at Object.getIndexTypeOfType (/home/thilo/git/couch/typescript2java/node_modules/typescript/lib/typescript.js:30720:20)
    at TypeObject.getNumberIndexType (/home/thilo/git/couch/typescript2java/node_modules/typescript/lib/typescript.js:84489:33)
    at fetchUsedFreeTypeParametersInternal (/home/thilo/git/couch/typescript2java/target/ts-tools.js:146:54)
    at type.types.forEach.t (/home/thilo/git/couch/typescript2java/target/ts-tools.js:168:33)
    at Array.forEach (<anonymous>)
    at fetchUsedFreeTypeParametersInternal (/home/thilo/git/couch/typescript2java/target/ts-tools.js:168:20)
    at fetchUsedFreeTypeParametersInternal (/home/thilo/git/couch/typescript2java/target/ts-tools.js:147:13)
    at type.types.forEach.t (/home/thilo/git/couch/typescript2java/target/ts-tools.js:168:33)


thigg avatar Aug 07 '19 08:08 thigg