IssueRaiser

Invalid offset -32603 when editing an empty .rs file

<!-- Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting Forum for questions: https://users.rust-lang.org/c/ide/14 Before submitting, please make sure that you're not running into one of these known issues: 1. on-the-fly diagnostics are mostly unimplemented (`cargo check` diagnostics will be shown when saving a file): #3107 Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3. --> **rust-analyzer version**: 2024-05-09 **rustc version**: (eg. output of `rustc -V`): 1.78.0 **editor or extension**: neovim with Mason+Lspconfig+RustAnalyzer **relevant settings**: none **repository link (if public, optional)**: none **code snippet to reproduce**: ```rust ``` Rust analyzer is printing this error if I start editing an empty .rs file before it has completed its startup. There are no settings involved, just an empty cargo project with a main.rs. Once that error pops up, it will keep appearing on every keystroke until I close the buffer, reopen it, wait for it to fully initialize and then start writing. This does not happen if the file is not empty.

Posted by goldeneas on May 24, 2024, 11:14 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

github (Software)

Invalid offset -32603 when editing an empty .rs file

goldeneasMay 24, 2024, 11:14 AM

<!-- Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting Forum for questions: https://users.rust-lang.org/c/ide/14 Before submitting, please make sure that you're not running into one of these known issues: 1. on-the-fly diagnostics are mostly unimplemented (`cargo check` diagnostics will be shown when saving a file): #3107 Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3. --> **rust-analyzer version**: 2024-05-09 **rustc version**: (eg. output of `rustc -V`): 1.78.0 **editor or extension**: neovim with Mason+Lspconfig+RustAnalyzer **relevant settings**: none **repository link (if public, optional)**: none **code snippet to reproduce**: ```rust ``` Rust analyzer is printing this error if I start editing an empty .rs file before it has completed its startup. There are no settings involved, just an empty cargo project with a main.rs. Once that error pops up, it will keep appearing on every keystroke until I close the buffer, reopen it, wait for it to fully initialize and then start writing. This does not happen if the file is not empty.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue