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

Invalid runtime union type check that contains utf-8 chars #594

Closed
Peefy opened this issue Jul 3, 2023 · 0 comments · Fixed by #600
Closed

Invalid runtime union type check that contains utf-8 chars #594

Peefy opened this issue Jul 3, 2023 · 0 comments · Fixed by #600
Assignees
Labels
bug Something isn't working runtime Issues or PRs related to kcl runtime including value and value opertions

Comments

@Peefy
Copy link
Contributor

Peefy commented Jul 3, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  • Write KCL Code (main.k)
schema Data:
    msg: "无需容灾" | "标准型" | "流水型" = "流水型"

data = Data()
kcl main.k

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

The yaml output:

data:
  msg: 流水型

3. What did you see instead (Required)

The error message

EvaluationError
 --> main.k:2:1
  |
2 |     msg: "无需容灾" | "标准型" | "流水型" = "流水型"
  |  byte index 17 is not a char boundary; it is inside '' (bytes 16..19) of `"无需容灾"|"标准型"|"流水型"`
  |

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

kcl-v0.5.0-beta.1

@Peefy Peefy added bug Something isn't working runtime Issues or PRs related to kcl runtime including value and value opertions labels Jul 3, 2023
@Peefy Peefy self-assigned this Jul 3, 2023
@Peefy Peefy added this to the v0.5.0 Release milestone Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime Issues or PRs related to kcl runtime including value and value opertions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant