Tauri v2 (for real this time probably)
Porting to Tauri v2
Awesome progress
This is apparently due to the preinject script. Assuming I can get that working this actually doesn't seem too difficult
Some discoveries related specifically to Windows:
- Replacing inbuilt
windowproperties (e.gfetchorXMLHttpRequest) causesSTATUS_ACCESS_VIOLATIONwhen done too early, and I suspect Tauri v2'sinitialization_scriptruns earlier than v1. These were moved to a later part of the loading process. -
tauri-plugin-httphangs when sending requests for some reason. Does not throw an error, even if URL is something nonsensical like__TAURI__.http.fetch('test'). -
load_pluginscommand hangs when invoked in the frontend. It is not an infinite loop and the function does exit, so idk what's going on there.
TODO see if this happens on Linux too.
Regarding the above ^
Tauri commands that return primitive values (string, number, bool, etc.) all work fine. Commands that return complex values, like HashMaps or other structs, will infinitely hang. I have not observed higher CPU usage or anything weird. The reason the HTTP module hangs is for the same reason - it returns a complex object here. I have no idea where this issue resides and it's driving me insane.
Can also confirm that this happens on Linux too, so it's definitely an internal Tauri IPC issue
Hey spike, not sure if you want bug reports with this yet, but here are my observations while running windows 11.
After installing i also got STATUS_ACCESS_VIOLATION, but pressing refresh fixed.
I can't send messages (this is in your server, dms dont work either)
(never seen that message in a public server 👀)
It seems all the api stuff is a bit whack
Last issue i found (as it's very hard to find an issue when nothing works) is with the tray icon
The button with the icon focuses dorion when left clicked, but does nothing when right-clicked
The button with no icon (left of dorion icon) does nothing when left clicked, but shows Open|Reload|Restart|Quit menu when right clicked)
If you need anymore testing I have both windows 11 and debian to test on
Clicking the add reaction button causes this
Reactions still work
That's fine those warnings are everywhere (and happen in current Dorion too, probably), they don't seem to mean anything
Also yes that spam of errors is (likely) due to the issues I've outlined above, this branch is very much not finished yet
Related: https://github.com/tauri-apps/tauri/issues/10327