kcl-lang / kcl

KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io
https://kcl-lang.io
Apache License 2.0
1.61k stars 113 forks source link

[Bug] KCL language server panic with stack overflow for the circular reference code #1627

Closed Peefy closed 3 weeks ago

Peefy commented 3 weeks ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

schema Name(Name):

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

The kcl-language-server works well and show the circular reference error.

3. What did you see instead (Required)

The kcl-language-server panic with following message.

fatal runtime error: stack overflow

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

Version: 0.10.0-rc.1-c020ab3eb4b9179219d6837a57f5d323
Platform: aarch64-apple-darwin
GitCommit: 4151909bef9fe1c5661513dfaad6e8869312dc6