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

bug: singular/even numbers error in some diagnostics #768

Closed
zong-zhe opened this issue Oct 16, 2023 · 0 comments · Fixed by #769
Closed

bug: singular/even numbers error in some diagnostics #768

zong-zhe opened this issue Oct 16, 2023 · 0 comments · Fixed by #769
Assignees
Labels
bug Something isn't working error-handling Issues or PRs related to kcl error handling

Comments

@zong-zhe
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

schema Foo[a : int]:
    bar? : int

f = lambda x {}

foo = Foo(1,2,3)
f(1,2)

schema Foo2[a : int, b: int]:
    bar? : int

foo2 = Foo2(1,2,3)

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

The error message here contains some singular and plural problems

截屏2023-10-16 15 26 12

3. What did you see instead (Required)

The error message should be

   |
12 | foo2 = Foo2(1,2,3)
   |                 ^ "Foo2" takes 2 positional arguments but 3 were given
   |

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

$ kcl --version
Version: 0.6.0-20ab3eb4b9179219d6837a57f5d35286
Platform: aarch64-apple-darwin
GitCommit: cabe3bf42a55167d24bbac0d5ef0a2a6d8817bad
@zong-zhe zong-zhe added bug Something isn't working error-handling Issues or PRs related to kcl error handling labels Oct 16, 2023
@zong-zhe zong-zhe added this to the v0.7.0 Release milestone Oct 16, 2023
@zong-zhe zong-zhe self-assigned this Oct 16, 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 error-handling Issues or PRs related to kcl error handling
Projects
No open projects
Status: v0.7.0 Release Done
Development

Successfully merging a pull request may close this issue.

1 participant