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

TestFormatPath Failed #75

Closed
NeverRaR opened this issue Dec 21, 2022 · 1 comment · Fixed by #94
Closed

TestFormatPath Failed #75

NeverRaR opened this issue Dec 21, 2022 · 1 comment · Fixed by #94

Comments

@NeverRaR
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

OS: ubuntu:20.04
python version: 3.9.10
run command : go test -run ^TestFormatPath$ kusionstack.io/kclvm-go/pkg/tools/format

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

Go test succeeded

3. What did you see instead (Required)

format_test.go:69: format path exec failed. KCL Compile Error[E2L23] : A complie error occurs during compiling
        ---> File /home/runner/work/kclvm-go/kclvm-go/pkg/tools/format/testdata/success/hello.k -> Failure
        [Errno 32] Broken pipe: stderr = KCL format done and 2 files were formatted:

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

v0.4.4-alpha.2

@jakezhu9
Copy link
Contributor

jakezhu9 commented Apr 2, 2023

Hi! Thanks a lot for bringing up this issue. I discovered that the problem is because we're using an incorrect length when writing to the limitBuffer.

https://github.com/KusionStack/kclvm-go/blob/f2813c3b3e867910a44bd251fa6d1a400cc8e8e1/pkg/kclvm_runtime/proc.go#L112

I will make a pr to fix it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants