Error "Failed to discover workspace" every time I open project
malaire opened this issue · comments
Markus Laire commented
Every time I open project I get error "Failed to discover workspace" from rust-analyzer.
Also many features like information on hovering or code completion are not working at all.
Предраг Николић commented
The following things are helpful to debug this:
- Can you provide some steps to reproduce this?
- Can you paste the output from
LSP: troubleshoot server
(it is located in the command palette) than selectrust-analyzer
? - Also can you paste LSP logs
Markus Laire commented
Sorry, I forgot to add the folder to project, i.e. steps where:
- create new package with
cargo new rust-test
- open Sublime Text 4, save project to that rust-test directory
- open main.rs in Sublime Text 4
- close Sublime Text 4 and re-open project