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

[Merged by Bors] - feat(simps): improve error messages #4653

Closed
wants to merge 3 commits into from

Conversation

fpvandoorn
Copy link
Member

If a custom projection has a different type than the expected projection, then it will show a more specific error message.
Also reflow most long lines
Also add some tests


Not sure what to do with strings of >100 characters without newline in it.
@eric-wieser

@fpvandoorn fpvandoorn added the awaiting-review The author would like community review of the PR label Oct 16, 2020
@urkud urkud added the t-meta Tactics, attributes or user commands label Oct 17, 2020
src/tactic/simps.lean Outdated Show resolved Hide resolved
Comment on lines 20 to 22
* `@[_simps_str]` is automatically added to structures that have been used in `@[simps]` at least
once. They contain the data of the projections used for this structure by all following
invocations of `@[simps]`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the referent of They is in "They contain the data". Could you add a bit more here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better now?

src/tactic/simps.lean Outdated Show resolved Hide resolved
test/simps.lean Outdated Show resolved Hide resolved
@semorrison
Copy link
Collaborator

LGTM.

I'll bors d+ shortly if no one else chimes in.

@semorrison semorrison added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Oct 19, 2020
@eric-wieser
Copy link
Member

Thanks for this, this would have definitely saved me the confusion I had on Zulip!

fpvandoorn and others added 2 commits October 19, 2020 15:41
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@fpvandoorn fpvandoorn added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Oct 19, 2020
@fpvandoorn
Copy link
Member Author

@semorrison ping

@robertylewis
Copy link
Member

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Oct 26, 2020
bors bot pushed a commit that referenced this pull request Oct 26, 2020
If a custom projection has a different type than the expected projection, then it will show a more specific error message.
Also reflow most long lines
Also add some tests
@bors
Copy link

bors bot commented Oct 26, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(simps): improve error messages [Merged by Bors] - feat(simps): improve error messages Oct 26, 2020
@bors bors bot closed this Oct 26, 2020
@bors bors bot deleted the simps-error-msg branch October 26, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-meta Tactics, attributes or user commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants