Open
Description
rust-analyzer version: rust-analyzer 1.86.0 (05f9846 2025-03-31)
rustc version: rustc 1.86.0 (05f9846f8 2025-03-31)
editor or extension: emacs eglot
relevant settings: eglot-ensure in rust-mode-hook
reproduction steps
cargo init --lib
- open the newly created
src/lib.rs
in editor - open (nonexistent)
src/main.rs
in editor, addfn main() {}
, save file - you will still be getting an
unlined-file
error and all LSP features will not work except highlighting error/warning lines
workaround: restart rust-analyzer (in emacs this can be done with M-x eglot
)
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity