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

[lsp] 0.11.0 consistently crashing #1830

Open
jamie-oconnell opened this issue Jan 18, 2025 · 3 comments
Open

[lsp] 0.11.0 consistently crashing #1830

jamie-oconnell opened this issue Jan 18, 2025 · 3 comments

Comments

@jamie-oconnell
Copy link

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
@He1pa
Copy link
Contributor

He1pa commented Feb 5, 2025

Does this problem occur in a specific project, or does it occur in any project? If just in some specific project, can you provide sample code?

@gagemillerlob
Copy link

I also see the LSP constantly having issues when using the vscode extension. It really degrades usability when working with the language.

@He1pa
Copy link
Contributor

He1pa commented Feb 13, 2025

Can you provide some code snippets that cause the error, or some steps to reproduce it? @gagemillerlob

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

No branches or pull requests

3 participants