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

Attach source code to certain errors #1351

Conversation

shaobo-he-aws
Copy link
Contributor

@shaobo-he-aws shaobo-he-aws commented Dec 2, 2024

Description of changes

Issue #s, if available

#977, #1335

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A change "invisible" to users (e.g., documentation, changes to "internal" crates like cedar-policy-core, cedar-validator, etc.)

I confirm that this PR (choose one, and delete the other options):

  • Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).

I confirm that cedar-spec (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

I confirm that docs.cedarpolicy.com (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar language specification.

@shaobo-he-aws shaobo-he-aws linked an issue Dec 2, 2024 that may be closed by this pull request
2 tasks
@shaobo-he-aws shaobo-he-aws marked this pull request as draft December 2, 2024 23:33
Signed-off-by: Shaobo He <[email protected]>
@john-h-kastner-aws
Copy link
Contributor

Should probably also fix #948

@shaobo-he-aws shaobo-he-aws marked this pull request as ready for review December 3, 2024 19:17
Signed-off-by: Shaobo He <[email protected]>
cedar-policy-core/src/parser/err.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@cdisselkoen cdisselkoen left a comment

Choose a reason for hiding this comment

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

Looks great

cedar-policy-core/src/ast/name.rs Outdated Show resolved Hide resolved
cedar-policy-core/src/test_utils.rs Outdated Show resolved Hide resolved
cedar-policy-core/src/test_utils.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/cedar_schema/err.rs Outdated Show resolved Hide resolved
shaobo-he-aws and others added 5 commits December 3, 2024 13:19
Signed-off-by: Shaobo He <[email protected]>
Co-authored-by: Craig Disselkoen <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
Copy link
Contributor

@cdisselkoen cdisselkoen left a comment

Choose a reason for hiding this comment

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

Looks good.

cedar-policy-core/Cargo.toml Outdated Show resolved Hide resolved
cedar-policy-core/src/ast/policy.rs Outdated Show resolved Hide resolved
shaobo-he-aws and others added 2 commits December 5, 2024 10:20
Signed-off-by: Shaobo He <[email protected]>
@shaobo-he-aws shaobo-he-aws merged commit 2647376 into main Dec 5, 2024
19 checks passed
@shaobo-he-aws shaobo-he-aws deleted the 977-some-diagnostic-implementations-set-labels-without-source_code branch December 5, 2024 18:45
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.

Some Diagnostic implementations set labels without source_code
3 participants