foundry-rs / compilers

Utilities for working with native solc and compiling projects.
Apache License 2.0
58 stars 36 forks source link

fix: account for Solc inexplicably not formatting the message #85

Closed DaniPopes closed 4 months ago

DaniPopes commented 4 months ago

Apparently it's not just old solc versions, some errors just are not formatted on the latest versions too.

Edit: if the file name does not end in .sol, the source locations are not formatted. Lol

DaniPopes commented 4 months ago

Testing with https://github.com/foundry-rs/foundry/pull/7210