PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

BUG: Invalid target directory in package.json cargo:check script

Open nishtha-agarwal-211 opened this issue 1 month ago • 4 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

What happened?

What happened?

In the root package.json, the cargo:check script is configured as:

"cargo:check": "cd backend && cargo check"

The backend/ directory is the Python FastAPI sidecar, which contains no Cargo manifest (Cargo.toml). The Rust shell (Tauri v2) is located in frontend/src-tauri/.

Running npm run cargo:check from the repository root fails:

error: could not find `Cargo.toml` in `/path/to/PictoPy/backend` or any parent directory

Record

  • [x] I agree to follow this project's Code of Conduct

nishtha-agarwal-211 avatar Oct 22 '26 14:10 nishtha-agarwal-211

👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)

github-actions[bot] avatar Oct 22 '26 14:10 github-actions[bot]

I would like to work on it

nishtha-agarwal-211 avatar Oct 22 '26 14:10 nishtha-agarwal-211

Confirmed! I tested npm run cargo:check from root or /backend on latest dev, and it indeed fails with:

error: could not find `Cargo.toml` in `.../PictoPy/backend` or any parent directory

while i don't think the bug is breaking anything in the app or CI, it is a bug which is sitting there since 2025

Prakhar1808 avatar Oct 22 '26 17:10 Prakhar1808

@Prakhar1808 can you please assign me this issue i have a fix ready for this issue.

swastiksharma45 avatar Nov 05 '26 08:11 swastiksharma45