Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project not found when open any rust file, Cargo.toml exists in parent directory but is not found #560

Open
JohnBasrai opened this issue May 2, 2024 · 0 comments

Comments

@JohnBasrai
Copy link

JohnBasrai commented May 2, 2024

Whenever I open a rust source file a window pops up on the bottom of the frame that says
XYZ.rs is not part of any project.

If I select 'i', it assumes the top of the git repo is the project dir, but it has passed up a directory with a Cargo.toml in it before getting to the top of the repo. I do not have a Cargo.toml file at the top of the repo since the project has two executables each with its own Cargo.toml.

This is the truncated tree of the repo.

├── caas-runtime-ftagent
│   ├── caas-dmd
│   │   ├── Cargo.lock
│   │   ├── Cargo.toml
│   │   ├── config
│   │   │   ├── caas-dmd-bad.toml
│   │   │   └── caas-dmd.toml
│   │   ├── rustfmt.toml
│   │   └── src
│   │       ├── app.rs
│   │       ├── arg_parser.rs
│   │       ├── config.rs
│   │       └── main.rs
│   ├── caas-ftm
│   │   ├── Cargo.lock
│   │   ├── Cargo.toml
│   │   ├── config
│   │   │   ├── caas-ftm-minimal.toml
│   │   │   └── caas-ftm.toml
│   │   ├── rustfmt.toml
│   │   ├── rust-toolchain.toml
│   │   └── src
│   │       ├── arg_parser.rs
│   │       ├── config.rs
│   │       ├── db_sqlx.rs
│   │       ├── dir_mon.rs
│   │       ├── fta_cb.rs
│   │       ├── main.rs
│   │       ├── pm_exporter.rs
│   │       └── service_endpoint.rs
│   ├── config
│   │   ├── ground-host-fta.conf
│   │   └── sensor-host-fta.conf
│   ├── db-init.sql
│   ├── docker-build.sh
│   ├── Dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant