willcrichton/flowistry

Flowistry does not work if Cargo.toml is in a subdirectory

belst opened this issue · 2 comments

belst commented

When working on a project with different parts, I like to have the parent folder as my vscode workspace, eg:

projectname/
├─ .vscode/
├─ frontend/
│  ├─ package.json
├─ backend/
│  ├─ Cargo.toml

When trying to activate Flowistry I get:

Flowistry could not run because your project failed to build with error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: CargoMetadata { stderr: "error: could not find `Cargo.toml` in `/path/to/projectname` or any parent directory\n" }', /home/runner/work/flowistry/flowistry/crates/rustc_plugin/src/lib.rs:91:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Thanks for the report. I just fixed this and will put out a release soon.

Just hit this myself. Look forward to the release, haha.