kcl-lang / kcl-lang.io

KCL Website and Documentation Repo: https://kcl-lang.io
https://kcl-lang.github.io
Apache License 2.0
12 stars 33 forks source link

Error at the end of the installation script execution (+ kcl binary missing?) #331

Closed sanzoghenzo closed 4 months ago

sanzoghenzo commented 4 months ago

Bug Report

1. Minimal reproduce step (Required)

Install KCL with the script

wget -q https://kcl-lang.io/script/install.sh -O - | /bin/bash

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

Installation running smoothly without errors

3. What did you see instead (Required)

The installation goes well, but at the end it gives the following messages, with an error:

Please add /usr/local/kclvm/bin into your PATH
Remeber run the command source ~/.bash_profile or source ~/.bashrc to ensure your PATH is effective
main: line 331: kcl: command not found
Reopen a terminal and execute  to ensure successful installation

This is because the message at line 331 has backticks like a markdown test, but it gets evaluated and there's no kcl binary found.

Also, the documentation talks about the kcl command, but there's no such binary in the /ust/local/kclvm/bin folder, only kclvm_cli, kcl-language-server and libkclvm_cli_cdylib.so.

Is the documentation outdated or does the build process have some trouble renaming the binary?

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

kclvm_cli 0.8.3

sanzoghenzo commented 4 months ago

Nevermind, I was looking at an outdated documentation (0.4 - don't ask me why, I suppose google chose for me)