Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

rust-project.json example? #4

Open
cbiffle opened this issue Mar 21, 2024 · 1 comment
Open

rust-project.json example? #4

cbiffle opened this issue Mar 21, 2024 · 1 comment

Comments

@cbiffle
Copy link

cbiffle commented Mar 21, 2024

Hi!

I got here from the rust-analyzer manual, which contains these paragraphs:

Relative paths are interpreted relative to rust-project.json file location or (for inline JSON) relative to rootUri.

See https://github.com/rust-analyzer/rust-project.json-example for a small example.

Since this repo is named rust-project.json-example, I thought it might contain an example of a rust-project.json. I'm having a hard time finding it. Is it hiding?

Thanks!

@nemethf
Copy link

nemethf commented Mar 30, 2024

I got here from the rust-analyzer manual,

me as well.

which contains these paragraphs:

Relative paths are interpreted relative to rust-project.json file location or (for inline JSON) relative to rootUri.
See https://github.com/rust-analyzer/rust-project.json-example for a small example.

The manual says there are three ways to feed rust-project.json to rust-analyzer. This repo seems to use the third case when rust-project.json is sent inline in the initialize request. See rust-project.json-example/.vscode/settings.json

cbiffle added a commit to cbiffle/rust-analyzer that referenced this issue Apr 26, 2024
The manual has been linking to the repo

https://github.com/rust-analyzer/rust-project.json-example/tree/master

This repo does not contain a rust-project.json, does not appear to have _ever_ contained a rust-project.json, and my bug report about this has gone untouched: rust-analyzer/rust-project.json-example#4

Since I can't figure out an example, this commit removes the link pending better documentation.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants