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

"Render state machine graph from CDK application" always fails #4561

Open
anentropic opened this issue Mar 20, 2024 · 2 comments
Open

"Render state machine graph from CDK application" always fails #4561

anentropic opened this issue Mar 20, 2024 · 2 comments
Labels
bug We can reproduce the issue and confirmed it is a bug. stepfunctions

Comments

@anentropic
Copy link

Problem

I have defined two Step Functions state machines in my CDK (Python) application.

When I try to use the render option the preview panel opens but with this error:

Errors detected. Cannot preview.

Steps to reproduce the issue

Open my project then either use the AWS browser and click preview icon:
Screenshot 2024-03-20 at 14 59 30

or Cmd+Shift+P and select "AWS: Render state machine graph from CDK application"

Expected behavior

See a graph

System details (run the AWS: About Toolkit command)

  • OS: macOS 14.3.1
  • Visual Studio Code version: 1.87.2 (Universal)
  • AWS Toolkit version: v2.15.0
@anentropic anentropic added the bug We can reproduce the issue and confirmed it is a bug. label Mar 20, 2024
@wong-a
Copy link
Contributor

wong-a commented Mar 20, 2024

Can you share an example the CDK code causing errors? Is this happening for any CDK generated state machines or just some?

@wong-a
Copy link
Contributor

wong-a commented Mar 20, 2024

Unable to reproduce using the python cdk example here: https://github.com/aws-samples/aws-cdk-examples/tree/master/python/stepfunctions

Even after updating the dependency of aws-cdk-lib to the latest version (2.133.0) I am able to visualize the state machine. Maybe the generated definition is invalid, or the extension is unable to parse certain construct generated ASL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug We can reproduce the issue and confirmed it is a bug. stepfunctions
Projects
None yet
Development

No branches or pull requests

3 participants