For me, the issue was being inside a Cargo project. rust-analyzer works fine when inside a project, but not on files outside -- I would try a Cargo new project_name and try editing something there.
rust-analyzer
Cargo new project_name