solang icon indicating copy to clipboard operation
solang copied to clipboard

Milestone 5. Errors should pass source file and line number

Open xermicus opened this issue 3 years ago • 0 comments

This milestone is an improvement on #971 . When an error occurs, we would like to know what line number, column number and file name that error occurred at.

If Solidity is compiled with -g then each of the errors above should be amended with the correct line number, column number and source file name. This will give developers a good indication of where the problem occurred. This information should either be encoded in the seal_debug_message() or added to the Err<> metadata as described above.

Success is here that whenever an error occurs in Solidity code, the developer has easy access to where the error occurred in the code, to help debug the issue.

This feature should have tests at

https://github.com/hyperledger-labs/solang/tree/main/integration/substrate

Success means that a pull request has had all its review comments addressed and it is merged.

xermicus avatar Aug 18 '22 10:08 xermicus