-
Notifications
You must be signed in to change notification settings - Fork 90
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
Some Diagnostic
implementations set labels
without source_code
#977
Labels
papercut
Small annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a fature request
Comments
This is the root cause of #948 (although we could fix that issue by attaching source in the CLI if this larger issue is more difficult to fix) |
I don't think this issue is too much work to fix. I'm just tired of playing with the parsing code, so I figured I'd throw it out there for someone else to pick up 😉 |
2 tasks
4 tasks
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
papercut
Small annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a fature request
Describe the improvement you'd like to request
Some of our
Diagnostic
implementations set thelabels
function without settingsource_code
. These two fields are related (see the excerpt frommiette
below), so it doesn't make sense to set one without the other. The relevant error types seem to print fine (for some reason), but users who are consuming themiette
errors programmatically may observe unexpected behavior. For example: I was trying to update this testing code to use the error's source text instead of the passed in source (which may or may not match the error), but found that the source text didn't exist forToCSTError
s.Here's the list of error types doing this, from a quick scan through the code:
UnexpectedSlotError
ToCSTError
human_schema_errors::ParseError
ToJsonSchemaError
schema_warnings::ShadowsBuiltinWarning
schema_warnings::ShadowsEntityWarning
Describe alternatives you've considered
No response
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: