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

codeframe in assertion failures #37

Open
aaronabramov opened this issue Jun 19, 2020 · 1 comment
Open

codeframe in assertion failures #37

aaronabramov opened this issue Jun 19, 2020 · 1 comment

Comments

@aaronabramov
Copy link
Owner

we have line! and column! macros. we can technically take out a pice of code with some context around it where assertion failed and add it to the error message
e.g.

Assertion Failure!

43 | fn do something() {
44 |   let stuff = 1
45 |   assert_equal!(stuff, 2);
46 |  }
@TheWebDevel
Copy link
Contributor

Hi @aaronabramov,

I made a prototype of code-frame: https://github.com/TheWebDevel/codeframe-prototype.

Screenshot 2020-06-20 at 4 36 08 PM

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