-
Notifications
You must be signed in to change notification settings - Fork 503
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
Add "not matching regex" conditional #2490
Conversation
22641dd
to
bc176f2
Compare
The See the test I added in the last commit, which fails with something like:
I think the signature of lex_choices should be changed to:
And if |
Done and fixed the failing test. Thanks for the hint how to make that error message more sensible 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, LGTM!
@casey Actually there is an issue with this approach to the error message: With the following invalid justfile content:
If this is saved in a justfile without trailing newline, so that the
But this is not a bug in Adding the trailing newline to the justfile results in the expected error message. An alternative approach I considered when making this PR was adding a
I didn't go that route because Not sure what would be best fix this (and not sure if I'll have time to make another PR myself |
Nice catch! This is an easy fix, there's an |
Much better, thanks! Seems to be some extra backticks in the error message? -
|
Good catch, fixed in #2522! |
Closes #2416