ApeWorX / ape-solidity

Solidity compiler plugin for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
17 stars 24 forks source link

feat: way nicer error when typing an import statement wrong [APE-1152] #113

Closed antazoey closed 1 year ago

antazoey commented 1 year ago

What I did

Better error when you type an import wrong and stuff, like this:

import "@openzeppelin/contracts/proxy/beacon/IdBeacon.sol";

see, i spelled it wrong, and it failed with FileNotFoundError which wasn't bad but was kinda unexpected. If I let it slide to the compiler, the message was really nasty tho.

So here i made it ideal

How I did it

check for missing files and raise a nice pretty message if you find any.

How to verify it

see my sol example at top

Checklist