sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error "Failed to discover workspace" every time I open project

malaire opened this issue · comments

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.

The following things are helpful to debug this:

  1. Can you provide some steps to reproduce this?
  2. Can you paste the output from LSP: troubleshoot server(it is located in the command palette) than select rust-analyzer?
  3. Also can you paste LSP logs

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