You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the app immidiately stops when an error in processing (grammer parsing, type checking, CDK evaluation) occurs.
This makes it very tedious to fix things.
We should try and continue processing as much as possible, while collecting all errors and printing them together.
The text was updated successfully, but these errors were encountered:
Yaml Errors look like this and cannot be collected (unless we switch the library):
YAMLSemanticError: Implicit map keys need to be on a single line at line 10, column 5:
Type aws-cdk-lib.aws_cloudfront.OriginAccessIdentity
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
Resolves first part of #410
Laying the groudwork and collect evaluation errors.
---
Creates errors like below. Note that the formatting is not final. We should probably do some tree based output.
The errors can also be inspected programatically.
```
DeclarativeStackError:
[RuntimeError at Resources.SiteDistribution]
Cannot read properties of undefined (reading 'bind')
[TypeError at Resources.SiteDistribution.Properties.defaultBehavior.origin."aws-cdk-lib.aws_cloudfront_origins.S3Origin"]
Cannot read properties of undefined (reading 'isWebsite')
[RuntimeError at Resources.SiteDistribution.Properties.defaultBehavior.origin."aws-cdk-lib.aws_cloudfront_origins.S3Origin".0.Ref]
No such Resource or Parameter: SiteCertificate
[RuntimeError at Resources.SiteDistribution.Properties.defaultBehavior.origin."aws-cdk-lib.aws_cloudfront_origins.S3Origin".1.originAccessIdentity.Ref]
No such Resource or Parameter: CloudFrontOAI
[RuntimeError at Resources.SiteDistribution.Properties.certificate.Ref]
No such Resource or Parameter: SiteBucket
[RuntimeError at Resources.SiteDistribution.Properties.domainNames.0.Ref]
No such Resource or Parameter: DomainName
```
Currently the app immidiately stops when an error in processing (grammer parsing, type checking, CDK evaluation) occurs.
This makes it very tedious to fix things.
We should try and continue processing as much as possible, while collecting all errors and printing them together.
The text was updated successfully, but these errors were encountered: