huggingface / llm-vscode

LLM powered development for VSCode
Apache License 2.0
1.23k stars 133 forks source link

Extension panicking #107

Closed remyleone closed 1 year ago

remyleone commented 1 year ago
2023-11-08 12:16:06.906 [info] thread 'main' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ropey-1.6.0/src/rope.rs:803:13:
Attempt to index past end of Rope: char index 244, Rope char length 244
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

2023-11-08 12:16:07.169 [info] [Info  - 12:16:07] {llm-ls} file changed
2023-11-08 12:16:07.174 [info] [Error - 12:16:07] Client LLM VS Code: connection to server is erroring. Shutting down server.
2023-11-08 12:16:07.175 [info] [Error - 12:16:07] Sending pending changes failed
2023-11-08 12:16:07.175 [info] Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
2023-11-08 12:16:07.175 [info] [Error - 12:16:07] Delivering pending changes failed
2023-11-08 12:16:07.175 [info] Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
2023-11-08 12:16:07.175 [info] [Error - 12:16:07] Delivering pending changes failed
2023-11-08 12:16:07.175 [info] Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
2023-11-08 12:16:07.175 [info] [Error - 12:16:07] Delivering pending changes failed
2023-11-08 12:16:07.175 [info] Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
2023-11-08 12:16:07.175 [info] [Error - 12:16:07] Delivering pending changes failed
2023-11-08 12:16:07.175 [info] Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
2023-11-08 12:16:07.176 [info] [Error - 12:16:07] Stopping server failed
2023-11-08 12:16:07.176 [info]   Message: Cannot call write after a stream was destroyed
  Code: -32099 
2023-11-08 12:16:07.176 [info] [Error - 12:16:07] Stopping server failed
2023-11-08 12:16:07.176 [info]   Message: Cannot call write after a stream was destroyed
  Code: -32099 
McPatate commented 1 year ago

Probably missing a -1 somewhere in a range bound. I'll take a look

giladd123 commented 1 year ago

Also experiencing this error

It happens when I'm trying to write hebrew at the end of a file (in the middle it works)