Closed Ace4896 closed 1 year ago
Should be fixed with https://github.com/affederaffe/Tmds.DBus.SourceGenerator/commit/7258a96676c96375075657aae8c68a8d0ca6ebce and 0.0.11. Properties were read as the actual type instead of as a variant.
Thanks for pushing a fix! Just tried 0.0.11 and everything seems to be working now :+1:
Hi, I've been using this source generator to write a wrapper over the D-Bus Secret Service API. I've run into an issue where reading individual properties (i.e.
GetSomePropertyAsync
) appears to be broken, but reading all properties at once (i.e.GetAllPropertiesAsync
) works fine.I've created a minimal repro here: https://github.com/Ace4896/SecretsTest
bool
andulong
values, the returned values seem to be incorrectIndexOutOfRangeException
is thrown:ObjectPath
values, anArgumentOutOfRangeException
is thrown:Based on the stack traces, I'm not sure if it's the protocol library or generated code that's causing the issue...
If it helps, I'm running Fedora 38, kernel 6.4.14-200, KDE 5.27.7.