kcl-lang / kcl-lang.io

Source of the KCL Website. https://kcl-lang.io
https://kcl-lang.github.io
Apache License 2.0
12 stars 33 forks source link

Validation Example from Documentation Fails #364

Closed nkabir closed 2 months ago

nkabir commented 2 months ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Example code from https://www.kcl-lang.io/docs/user_docs/guides/validation

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

Validation to succeed.

3. What did you see instead (Required)

Failed to load KCL file 'validationTempKCLCode.k'. Because 'No such file or directory (os error 2)'

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

kcl version 0.8.9 installed from Linux homebrew on Ubuntu 22.04

Peefy commented 2 months ago

Hello @nkabir Thanks for the feedback. I've tried on darwin local and docker, it passed. Besides, it is also passed in CI https://github.com/kcl-lang/kcl-lang.io/actions/runs/9058521161/job/24884301333 🤔 Could you please show me the kclvm_cli version command output?

nkabir commented 2 months ago

Thank you for checking. This was installed via Homebrew. But this looks like it should be 0.8.x? That may be the problem.

$ kclvm_cli version
Version: 0.5.0-20ab3eb4b9179219d6837a57f5d35286
Platform: x86_64-unknown-linux-gnu
GitCommit: VERGEN_IDEMPOTENT_OUTPUT
Peefy commented 2 months ago

I see. You can delete this kclvm_cli, which affects the latest kcl cli.

Besides, after KCL v0.9, KCL CLI will no longer search for outdated kclvm_cli in PATH by default.

nkabir commented 2 months ago

FIxed! That was the issue. Thank you!