Skip to content

Invalid offset -32603 when editing an empty .rs file #17289

@goldeneas

Description

@goldeneas

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 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions