Closed franciscoBSalgueiro closed 7 months ago
That's odd, will have to look into it. In the meantime can you take the code that's not working and put it into a dedicated repo we can run?
https://github.com/franciscoBSalgueiro/tauri-specta-maximize
There's two different branches with the fixes for not using async and not using specta.
What OS are you on?
I'm on macOS and i'm unable to reproduce the crash with the main
branch of your repo.
It might also be worth upgrading to the main
branch of Tauri Specta which uses Tauri =2.0.0-beta.16
. You should be able to follow the installation guide here to workaround which version of everything you require.
This was tested on Windows.
I tried the new v2 and it works without crashing now! (That guide isn't updated though, into_plugin doesn't exist. I had to look at the new examples to get it to work.)
That's great and thanks for letting me know the examples are broken, will fix them up now.
I've tried to make a minimal example from the issue I was facing. The main problem is with the function
close_splashscreen
. The code below makes the app freeze and crash on startup.Changing
fn close_splashscreen
toasync close_splashscreen
fixes it. Not using specta, and instead just calling normal tauri commands also fixes it, so I believe this is a tauri-specta specific issue.Versions