Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit imports causes RangeError #180

Open
minghinmatthewlam opened this issue Dec 8, 2023 · 0 comments
Open

Explicit imports causes RangeError #180

minghinmatthewlam opened this issue Dec 8, 2023 · 0 comments

Comments

@minghinmatthewlam
Copy link

Trying to use sol2uml class on my contract where the contract declares multiple explicit imports like so

pragma solidity 0.8.18;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
...

When running the sol2uml class command there is the error

RangeError: Maximum call stack size exceeded
    at /opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:6:38
    at Array.find (<anonymous>)
    at findAssociatedClass (/opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:6:33)
    at findInheritedType (/opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:84:56)
    at findAssociatedClass (/opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:23:27)
    at findInheritedType (/opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:84:56)
    at findAssociatedClass (/opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:23:27)
    at findInheritedType (/opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:84:56)
    at findAssociatedClass (/opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:23:27)
    at findInheritedType (/opt/homebrew/lib/node_modules/sol2uml/lib/associations.js:84:56)

Running with sol2uml version 2.5.20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@minghinmatthewlam and others