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

[feature] Better Error Display #11

Open
Vurv78 opened this issue Feb 5, 2022 · 0 comments
Open

[feature] Better Error Display #11

Vurv78 opened this issue Feb 5, 2022 · 0 comments
Labels
A-Editor Changes to the editor P-Low T-Feature Feature request X-Wishlist Hopefully this can happen

Comments

@Vurv78
Copy link
Owner

Vurv78 commented Feb 5, 2022

Is your feature request related to a problem? Please describe.
Depends on #10 being fixed.

Describe the solution you'd like
I'd like for error messages to be similar to Rust's errors, where the tokens are pointed out in a code block, and potentially there is a "fixed" code block right under.

E.g.

if (true) {

}

/*
	Warning:
		Redundant if statement:
			if (true)
			^^^^^^^^^ This will always run the if statement.
*/

Or an example from codespan
Example preview

@Vurv78 Vurv78 added T-Feature Feature request A-Editor Changes to the editor X-Wishlist Hopefully this can happen P-Low labels Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Editor Changes to the editor P-Low T-Feature Feature request X-Wishlist Hopefully this can happen
Projects
None yet
Development

No branches or pull requests

1 participant