-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[bug] Improve error messages if cargo metadata
fails.
#12273
Comments
thanks for the report. Since it's missing in the tauri info output for some reason, could you share the output of |
Sorry about that - I think the info is above, though only after my edit.
(the reason for the odd output above is that I had |
thanks. I just tried it on my system and don't see any issues. Can you share the generated Cargo.toml file? |
@FabianLars - Opps! I just renamed my wrapper script and it works fine. I didn't realise that Is it possible to move away from Perhaps this should instead be a request to improve the error message; something about not being able to correctly parse the output of |
in development you can use For building apps you can also use
This would require us to copy a shit ton of logic out of cargo itself and keeping that up to date, so i'd really rather not tbh, especially since this is the first time it ever caused problems iirc. But yeah, the error message should be improved (like almost all current error messages...) |
tauri-cli
command possibly brokencargo metadata
fails.
Understood - in that case, I'll rebrand this as a request to improve that
error message. Thanks for the fast response and helping me figure out the
issue!
…On Mon, 6 Jan 2025, 13:58 Fabian-Lars, ***@***.***> wrote:
in development you can use cargo run just fine. you just have to run the
beforeDevCommand yourself in another terminal.
For building apps you can also use cargo build --release plus the
beforeBuildCommand but if you also want to bundle them into installers then
you need cargo tauri.
Is it possible to move away from cargo tauri using the CLI output of the
cargo command? That said, I can see that that might be tricky or
undesirable.
This would require us to copy a shit ton of logic out of cargo itself and
keeping that up to date, so i'd really rather not tbh, especially since
this is the first time it ever caused problems iirc.
But yeah, the error message should be improved (like almost all current
error messages...)
—
Reply to this email directly, view it on GitHub
<#12273 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO4IJH6BJPEYCJFWG2KZX32JJ4YHAVCNFSM6AAAAABUVQFYP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZTGA3DAOJZGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Describe the bug
Running:
cargo create-tauri-app
orsh <(curl https://create.tauri.app/sh)
then
cargo tauri android init
orpnpm tauri android init
ordeno task tauri android init
all produce:Trying
cargo tauri dev
instead ofandroid init
gives the same issue.Adding verbose flag with
-v
doesn't give any useful info.Apologies in advance if this is something trivial I've missed; at the same time, the quickstart should be as foolproof as possible IMO, so this could still highlight an area for improvement.
Reproduction
Expected behavior
Should
android init
should create android scaffold, orcargo tauri dev
should correctly build app and launch dev server.Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: