huggingface/llm-vscode

Extension panicking

remyleone opened this issue · 2 comments

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 

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

Also experiencing this error

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