#Tauri v2 beta: Error with tauri plugins
36 messages · Page 1 of 1 (latest)
Text error for better copy/pasting:
error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied
--> C:\Users\kevin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-plugin-fs-2.0.0-beta.0\src\commands.rs:805:20
|
805 | global_scope: &GlobalScope<'_, Entry>,
| ^^^^^^^^^^^ -- help: remove this lifetime argument
| |
| expected 0 lifetime arguments
|
note: struct defined here, with 0 lifetime parameters
--> C:\Users\kevin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-2.0.0-beta.3\src\ipc\authority.rs:404:12
|
404 | pub struct GlobalScope<T: ScopeObject>(ScopeValue<T>);
| ^^^^^^^^^^^
error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied
--> C:\Users\kevin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-plugin-fs-2.0.0-beta.0\src\commands.rs:806:21
|
806 | command_scope: &CommandScope<'_, Entry>,
| ^^^^^^^^^^^^ -- help: remove this lifetime argument
| |
| expected 0 lifetime arguments
|
This is currently an issue in the latest beta
#contributing message
You can try to rollback 1 beta versions
Thanks for the info.
Pretty new to rust/env, do you know how to downgrade 1 beta version?
I feel this is a Windows-specific error, and unfortunately there doesn‘t seem to be a fix for it at present. The offending crate is tauri-plugin-shell version 2.0.0-beta.0 - you could maybe try to switch to an alpha version.
You can do that by going into your-project/src-tauri/Cargo.toml and changing the specified version for tauri-plugin-shell to 2.0.0-alpha
Change your tauri version in Cargo.toml to =2.0.0-beta.2.
The = means "exactly this version".
You might need to run cargo update in src-tauri as well. I can never remember when Cargo changes the lock file.
Just tried, no need to do this step.
Perfect, thanks for your help, booting my PC to try 😄
I don't have luck at all
setting tauri to =2.0.0-beta.2 gives me this error on npm run tauri dev
I missed a step or something 🤔
Seems the lock file is missing from the repository.
Well, i can't fix that myself then 😦
You can, just got to find the crate that's causing it.
If i'm understand well: tauri_utils
But if i want to rollback tauri-utils i need to rollback tauri-build as well. Doing it to check
All good! thaks for your help!
I'm still getting failing builds. What did you have for your Cargo.toml?
I have the same problem. Did you manage to find a solution?
Rolling back to a previous version fixed the issue for now (unfortunatly no other solutions was found)
here's the conf i changed to make it work
changing the version of:
tauri-buildtauritauri-utils
sorry for the late answer, was taken away by some other issues 😄
After changing tauri and tauri-build version it was not working still.
I had to also manually rollback tauri-utils to a previous one to make everything compile again.
Thanks a lot for sharing. Have a great day!
is it working for you?
I'll try it now and let you know.
Tried a few more things and didn't work. I'll just re-install the previous version. That should get it done for now.
Does tauri released new version for plugins-workspace/window-state? I had the same issue with window handle when used beta.2
Got this working. For every error go to the linked file and remove the '_,
Doing that will fix it but messing with the source registry means that you no longer have reproducible builds.
The fixed plugins have been published so you can now safely upgrade to 2.0.0-beta.3 although 2.0.0-beta.4 has also been released now.
gonna try that out in a second as well! nice