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

[Enhancement] Support debug print output for the playground #1676

Closed
andrzejgorski opened this issue Oct 5, 2024 · 1 comment · Fixed by kcl-lang/kcl-playground#49
Closed
Assignees
Labels
api Issues or PRs related to kcl rust native APIs and multi-lang APIs enhancement New feature or request

Comments

@andrzejgorski
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Go to https://play.kcl-lang.io/ and chose Conditionals from examples

2. What did you expect to see? (Required)

Working code:

if True:
    "Hello"
else:
   "unreachable"

with output

"Hello"

https://play.kcl-lang.io/?s=JYMwBAKgTgrgpgLgFBlWARACTgGxwe3SVwGdEU10YA7KOAQwGMALegIxziKA

3. What did you see instead (Required)

if True:
    print("Hello")
else:
    print("unreachable")

With output

{}

https://play.kcl-lang.io/?s=JYMwBAKgTgrgpgLgFBlWADlYA7ALgCgCIAJOAGzIHtCBKJcgZ0RTUxwMJmyjgEMBjABa8ARmTi0kQA

4. What is your KCL components version? (Required)

play.kcl-lang.io

@andrzejgorski andrzejgorski changed the title Wrong examples Not working conditional example Oct 5, 2024
@andrzejgorski
Copy link
Author

The similar problem is with Debugging Values example

@Peefy Peefy changed the title Not working conditional example [Enhancement] Support debug print output for the playground Oct 10, 2024
@Peefy Peefy added the enhancement New feature or request label Oct 10, 2024
@Peefy Peefy transferred this issue from kcl-lang/kcl-lang.io Oct 10, 2024
@Peefy Peefy self-assigned this Oct 10, 2024
@Peefy Peefy mentioned this issue Oct 10, 2024
2 tasks
@Peefy Peefy added the api Issues or PRs related to kcl rust native APIs and multi-lang APIs label Oct 10, 2024
@Peefy Peefy added this to the v0.11.0 Release milestone Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues or PRs related to kcl rust native APIs and multi-lang APIs enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants