You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Solidity: an import with ../ points at a dangling stub instead of the real file #4984
I have checked the Troubleshooting section in the README
What happened?
A Solidity import that goes up a folder (import {Errors} from "../utils/Errors.sol";) gets an imports_from edge to a node that does not exist. The path is joined to the importer's folder without being normalised, so from contracts/proxy/Clones.sol the target becomes contracts/proxy/utils/errors.sol instead of contracts/utils/Errors.sol. That dangling target's id also keeps the absolute checkout path (e.g. c_users_..._contracts_proxy_utils_errors_sol), so graph.json is not portable.
Because the import never reaches the real file, everything that resolves names through imports (type references, and qualified names like Errors.FailedCall) cannot see the imported file.
On OpenZeppelin Contracts v5.4.0, only 87 of 681 Solidity imports_from edges reach a real file; the other 594 (every ../ import) dangle.
Activity
github-actions commentedon Nov 3, 2026
Thanks for opening this issue, @rohit-jsfreaky. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
safishamsi commentedon Nov 3, 2026
Fixed in 0.9.102 (published to PyPI) via #4985. A Solidity import with ../ resolves the .. to the real file instead of a dangling id.