willcrichton / flowistry

Flowistry is an IDE plugin for Rust that helps you focus on relevant code.
https://marketplace.visualstudio.com/items?itemName=wcrichton.flowistry
MIT License
1.91k stars 45 forks source link

Not working with mixed language projects #85

Open arvid-norlander opened 11 months ago

arvid-norlander commented 11 months ago

I have a mixed language project (we are starting to move pieces from C++), where I set the following rust-analyzer config:

    "rust-analyzer.linkedProjects": [
        "services/web/backend/Cargo.toml"
    ]

Flowistry doesn't use this, and doesn't seem to have anything equivalent. This results in the following when I try to use it:

Flowistry could not run because your project failed to build with error:
thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc_plugin-0.7.3-nightly-2023-08-25/src/cli.rs:28:6:
called `Result::unwrap()` on an `Err` value: CargoMetadata { stderr: "error: could not find `Cargo.toml` in `/home/user/workspace/project` or any parent directory\n" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace