ConsenSysDiligence / ConsenSysDiligence/scribble

Javascript call stack exceeded

Open
#80 8 comments 0 reactions 1 assignee Assigned to @cd1m0 View on GitHub
bug
Dominant language
TypeScript
Stars
334
Forks
28
PR merge metrics
No merged PRs in 30d

Description

On the same codebase whatever I do (like adding an `invariant` or a `if_succeeds` statement) I keep getting Javascript Maximum call stack size exceeded errors.

Two kinds in particular:

1) The first seems to be inside type checking:
```
Internal error in type-checking: Maximum call stack size exceeded
```

2) The seconds seems to be around recursive imports:
```
/Users/alex/Projects/scribble/dist/bin/scribble.js:494
throw e;
^

RangeError: Maximum call stack size exceeded
at ImportDirective.get vSymbolAliases [as vSymbolAliases] (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/implementation/meta/import_directive.js:55:45)
at lookupInSourceUnit (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:101:28)
at lookupInSourceUnit.next ()
at new Set ()
at lookupInScope (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:229:12)
at lookupInSourceUnit (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:104:35)
at lookupInSourceUnit.next ()
at new Set ()
at lookupInScope (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:229:12)
at lookupInSourceUnit (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:104:35)
```

(It is a local install of 912a472)

I think the second case may be connected to #64.

I tried for a quite bit of time create a reduced example, but can't really spend too many hours on it. @cd1m0 do you have any idea based on the above?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.