GithubHelp home page GithubHelp logo

Comments (2)

remy2wescale avatar remy2wescale commented on June 16, 2024 1

Hello Peey, no problem, with your message, i've been able to find a solution.
And yes, the problem seems to stem from an older version that was in PATH.
Just for information, i have upgraded KCL from 0.5.5 to 0.7 with the installer script from the documentation (
wget -q https://kcl-lang.io/script/install-kcl-lsp.sh -O - | /bin/bash)

$ which kcl
/usr/local//bin/kcl
$ which kclvm_cli
/usr/local/kclvm/bin/kclvm_cli
$ kclvm_cli version
Version: 0.5.5-20ab3eb4b9179219d6837a57f5d35286
Platform: x86_64-unknown-linux-gnu
GitCommit: VERGEN_IDEMPOTENT_OUTPUT

Remove export PATH="/usr/local/kclvm/bin:$PATH" line in ~/.bashrc :

$ kclvm_cli version
Version: 0.7.0-20ab3eb4b9179219d6837a57f5d35286
Platform: x86_64-unknown-linux-gnu
GitCommit: VERGEN_IDEMPOTENT_OUTPUT
$ kcl test
test_person: PASS (0ms)
test_person_age: PASS (0ms)
test_person_ok: PASS (1ms)
--------------------------------------------------------------------------------
PASS: 3/3

🎉

Thank you for your help 👍

from kcl.

Peefy avatar Peefy commented on June 16, 2024

@remy2wescale Hi there. Sorry for the late reply. I can't reproduce this issue. Could you please tell me how you installed KCL and what are the outputs of the following two commands?

which kcl
which kclvm_cli

from kcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.