zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.58k stars 2.64k forks source link

Relative paths for linkedProjects not working for me #14950

Open huntc opened 1 month ago

huntc commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Relative paths don't appear to work for me... absolute paths do though. Here's my project settings file:

{
  "lsp": {
    "rust-analyzer": {
      "initialization_options": {
        "linkedProjects": [
          "configurator/backend/Cargo.toml"
        ]
      }
    }
  }
}

The path does exist and is relative to the folder I've opened up into Zed.

Environment

Zed: v0.144.4 (Zed)
OS: macOS 14.4.1
Memory: 32 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

No response

osiewicz commented 1 month ago

Could you try setting it in settings as well like so:

{
  "lsp": {
    "rust-analyzer": {
      "settings": {
        "linkedProjects": [
          "configurator/backend/Cargo.toml"
        ]
      }
    }
  }
}

It may be that this option is picked up from workspace configuration.

jesdazrez commented 1 month ago

Seems to be related to https://github.com/rust-lang/rust-analyzer/issues/17664

matthew-levan commented 1 month ago

Could you try setting it in settings as well like so:

{
  "lsp": {
    "rust-analyzer": {
      "settings": {
        "linkedProjects": [
          "configurator/backend/Cargo.toml"
        ]
      }
    }
  }
}

It may be that this option is picked up from workspace configuration.

This workaround did not work for me. I'm on the same platform and version as the @huntc.