Open
Description
Bug Report
When using v0.11.0 of the lsp. I am getting consistent crashes and poor performance. Tested in both WSL and Windows. I am testing with some fairly large imported crds. Downgrading to v.0.10.8 of the lsp I have seen less frequent crashes.
1. Minimal reproduce step (Required)
Use KCL lsp inside vscode.
2. What did you expect to see? (Required)
No crashes.
3. What did you see instead (Required)
[Info - 8:56:12 PM] Try get "/home/user/code/kcl-test/test.k" db state: In compiling, retry
[Info - 8:56:12 PM] Finished request "textDocument/completion" in 60815 micros
[Info - 8:56:12 PM] Try get "/home/user/code/kcl-test/test.k" db state: In compiling, retry
thread 'main' panicked at tools/src/LSP/src/state.rs:323:90:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info - 8:56:12 PM] Process changed file, open Ok("/home/user/code/kcl-test/generated/models/unknown/network_azure_com_v1api20240301storage_virtual_network.k")
[Info - 8:56:12 PM] Connection to server got closed. Server will restart.
true
[Error - 8:56:12 PM] Server process exited with code 101.
4. What is your KCL components version? (Required)
kcl version v0.11.0
Metadata
Metadata
Assignees
Labels
No labels