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

produce error when grammar build fails #6795

Merged
merged 2 commits into from
Apr 20, 2023

Conversation

pascalkuthe
Copy link
Member

Fixes the issue described in #6792 (comment).

Currently, grammar builds fail without actually aborting the build (even tough that seems to be the intention since we explicitly call except) because we only print to stdout when the build fails but don't actually return an error. This makes diagnosing and fixing build failures harder. This PR fixes that by simply calling bail! instead of println!. As described here #6792 (comment) this slightly changes the formatting of the error message. I have therefore opted to remove the indentation from the failure message as that now looks a bit out of place

@pascalkuthe pascalkuthe added E-easy Call for participation: Experience needed to fix: Easy / not much A-packaging Area: Packaging and bundling S-waiting-on-review Status: Awaiting review from a maintainer. C-enhancement Category: Improvements labels Apr 17, 2023
@pascalkuthe
Copy link
Member Author

pascalkuthe commented Apr 17, 2023

Interesting with this patch applied the CI actually fails on macos with #6788 so this also caused that issue to slip trough so I am rebasing this on #6792

@archseer
Copy link
Member

With the other PR merged, can you rebase this one?

@pascalkuthe
Copy link
Member Author

pascalkuthe commented Apr 18, 2023

Will do that tomorrow morning. The timing was a bit unfortunate just turned off my PC for today sorry about that

I had the other branch merged into this branch to be able to check that the build really passes CI, I guess I should have just made this a single PR

@pascalkuthe
Copy link
Member Author

(done)

@archseer archseer merged commit f5d38ce into helix-editor:master Apr 20, 2023
@pascalkuthe pascalkuthe deleted the grammer_build_error branch April 20, 2023 21:06
Triton171 pushed a commit to Triton171/helix that referenced this pull request Jun 18, 2023
* produce error when grammar build fails

* print which grammar build failed
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
* produce error when grammar build fails

* print which grammar build failed
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
* produce error when grammar build fails

* print which grammar build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-packaging Area: Packaging and bundling C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants