Skip to content

rust-analyzer fails to provide diagnostics after 'rustlings lsp' (Windows 11) #1421

Closed
@GersiD

Description

@GersiD

------problem-statement----

After running rustlings lsp and setting cargo to use all features (for the exercise feature). Rust analyzer still fails to recognize the workspace and populate the exercises subdirectory with diagnostic information.

Please note that I still get Syntax Errors

---------env-info-----------

  • Neovim Version: v0.9.0-dev-1147+ge389b1890
  • cargo 1.66.0 (d65d197ad 2022-11-15)
  • rust-analyzer 1.68.0 (2c8cc343 2023-03-06)

-------what-I-tried--------

  1. Run rustligns lsp multiple times after re installing rustlings
  2. setting cargo. Features to "exercises"
  3. setting cargo.features to "all"
  4. updating rust
  5. updating rust-analyzer
  6. trying to see if VScode gets it
  7. manually adding the exercise subdir into the cargo.toml file with
[features]
default = ["exercises"]
exercises = []

None of the above worked :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions