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

Improve html! error messages. #1192

Merged
merged 13 commits into from
May 10, 2020
Merged

Conversation

teymour-aldridge
Copy link
Contributor

@teymour-aldridge teymour-aldridge commented May 9, 2020

I think this makes the debugging experience smoother and more enjoyable.

@jstarry
Copy link
Member

jstarry commented May 9, 2020

yay for enjoyable debugging 🎉

FYI you'll probably find this useful for making CI happy: https://github.com/yewstack/yew/blob/master/CONTRIBUTING.md#macro-tests

@teymour-aldridge
Copy link
Contributor Author

teymour-aldridge commented May 9, 2020 via email

@teymour-aldridge
Copy link
Contributor Author

Not sure why it's only working on Rust 1.40.0 and not on the stable release channel.

@teymour-aldridge
Copy link
Contributor Author

Seems to be a problem with the change from "expected expression" to "expected an expression."

@jstarry
Copy link
Member

jstarry commented May 10, 2020

@teymour-aldridge the rust version will change the output since it depends on the compiler error messages. For this reason, we only run these macro tests on latest stable (they are not run on 1.40.0) You'll need to update the .stderr files by running the tests on 1.43+

@teymour-aldridge
Copy link
Contributor Author

Ah, thanks!

@teymour-aldridge
Copy link
Contributor Author

I think I've now resolved this.

@jstarry jstarry merged commit d55765a into yewstack:master May 10, 2020
jstarry pushed a commit that referenced this pull request May 14, 2020
* Improve `html!` error messages.

* Improved some additional error messages.

* Improved error messages for iterables.

* Improved list error messages.

* Made a comment clearer.

* Updated an `html_tag` error message.

* Improved duplicate attribute error message.

* Updated tests to reflect updated error messages.

* Reformat code.

* Updated tests to reflect new error messages.

* Updated macro tests.

* Fix macro tests.

* Reformat code.
mergify bot pushed a commit that referenced this pull request May 14, 2020
* Improve `html!` error messages.

* Improved some additional error messages.

* Improved error messages for iterables.

* Improved list error messages.

* Made a comment clearer.

* Updated an `html_tag` error message.

* Improved duplicate attribute error message.

* Updated tests to reflect updated error messages.

* Reformat code.

* Updated tests to reflect new error messages.

* Updated macro tests.

* Fix macro tests.

* Reformat code.
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

Successfully merging this pull request may close these issues.

2 participants