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

(core): App Constructor Prevents Cdk Synth #27949

Closed
Kapral67 opened this issue Nov 12, 2023 · 3 comments
Closed

(core): App Constructor Prevents Cdk Synth #27949

Kapral67 opened this issue Nov 12, 2023 · 3 comments
Labels
@aws-cdk/core Related to core CDK functionality bug This issue is a bug. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@Kapral67
Copy link

Describe the bug

new software.amazon.awscdk.App() prevents cdk synth

Expected Behavior

No Exception Thrown (as in v2.105.0 & v2.106.0)

Current Behavior

SyntaxError: Unexpected end of input
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1178:20)
    at Module._compile (node:internal/modules/cjs/loader:1220:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at jsiiDeprecationWarnings (/tmp/jsii-kernel-Gt1yCb/node_modules/aws-cdk-lib/core/lib/stage.js:1:138)
    at new Stage (/tmp/jsii-kernel-Gt1yCb/node_modules/aws-cdk-lib/core/lib/stage.js:1:868)
        at software.amazon.jsii.JsiiRuntime.processErrorResponse(JsiiRuntime.java:150)
        at software.amazon.jsii.JsiiRuntime.requestResponse(JsiiRuntime.java:116)
        at software.amazon.jsii.JsiiClient.createObject(JsiiClient.java:89)
        at software.amazon.jsii.JsiiEngine.createNewObject(JsiiEngine.java:614)
        at software.amazon.awscdk.App.<init>(App.java:61)

Reproduction Steps

import software.amazon.awscdk.App;

public final class CdkApp {
    public static void main (final String[] args) {
        new App();  
    }
}

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.106.1

Framework Version

No response

Node.js Version

18.18.2

OS

archlinux 6.6.1-arch1-1

Language

Java

Language Version

Java ( Corretto-17.0.9.8.1 (build 17.0.9+8-LTS) )

Other information

No response

@Kapral67 Kapral67 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 12, 2023
@github-actions github-actions bot added the @aws-cdk/core Related to core CDK functionality label Nov 12, 2023
@pahud
Copy link
Contributor

pahud commented Nov 14, 2023

Are you still having this issue in the latest 2.108.0 ?

@pahud pahud added p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Nov 14, 2023
@Kapral67
Copy link
Author

This issue doesn't affect me anymore after upgrading to 2.108.0

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality bug This issue is a bug. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants