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

create-rspc-app build fails #128

Open
mnpqraven opened this issue Feb 25, 2023 · 3 comments
Open

create-rspc-app build fails #128

mnpqraven opened this issue Feb 25, 2023 · 3 comments

Comments

@mnpqraven
Copy link

mnpqraven commented Feb 25, 2023

I was checking out create-rspc-app to see quick scaffolding with PCR but got these errors where the first seems to be the build scripts not handling linux machines (I'm running linux)

❯ create-rspc-app


██████╗ ███████╗██████╗  ██████╗
██╔══██╗██╔════╝██╔══██╗██╔════╝
██████╔╝███████╗██████╔╝██║
██╔══██╗╚════██║██╔═══╝ ██║
██║  ██║███████║██║     ╚██████╗
╚═╝  ╚═╝╚══════╝╚═╝      ╚═════╝

✔ What will your project be called? · pnc-checklist-solid
✔ What backend framework would you like to use? · Tauri
✔ What database ORM would you like to use? · Prisma Client Rust
✔ What frontend framework would you like to use? · SolidJS
✔ What package manager would you like to use? · NPM
Generated project at '/home/othi/Repos/pnc-checklist-solid'
$ npm install
sh: /C: No such file or directory
Successfully installed npm packages
sh: /C: No such file or directory

when I cd into the folder and run cargo run the following errors show up

error: failed to run custom build command for `pnc-checklist-solid v0.1.0 (/home/othi/Repos/pnc-checklist-solid/src-tauri)`

Caused by:
  process didn't exit successfully: `/home/othi/Repos/pnc-checklist-solid/target/debug/build/pnc-checklist-solid-bd1fc19084e72f6c/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=TAURI_CONFIG
  cargo:rerun-if-changed=tauri.conf.json
  cargo:rustc-cfg=desktop
  This manifest requires workspace inheritance, but `inherit_workspace` hasn't been called yet

Tauri CLI also doesn't seem to get set up in package.json even if it's selected

@trymbill
Copy link

trymbill commented Mar 8, 2023

Also seeing this. Looks like it will be fixed on Tauri's end in v1.3 (not sure when that will be released): tauri-apps/tauri#6252 (comment)

What has me perplexed is how @spacedriveapp are able to get past this issue. They seem to have a very similar setup to how create-rspc-app's Tauri/PCR template looks like, and clearly they're not having any issues with cargo build-ing or cargo run-ing 🤔

@oscartbeaumont
Copy link
Member

Whoops, missed this issue.

It is definitely a problem in Tauri when using workspace = true in your Cargo.toml. You can replace workspace = true with version = "..." replacing it with the latest version of the crate and it will work.

Alternatively, you can import tauri-build from Git because they have fixed it there.

Spacedrive is just magic sometimes, idk why it's working.

It's very odd this issue wasn't caught earlier. I have been very busy but will try and find some time to update the create-rspc-app templates to fix this.

@trymbill
Copy link

trymbill commented Mar 8, 2023

Spacedrive is just magic sometimes

^ this 💯. Thanks for the suggestions, will try those out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants