Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

SubProcess::communicate_utf8_async() is nullable for the returned std… #292

Merged
merged 3 commits into from
May 3, 2020
Merged

SubProcess::communicate_utf8_async() is nullable for the returned std… #292

merged 3 commits into from
May 3, 2020

Conversation

sdroege
Copy link
Member

@sdroege sdroege commented Apr 25, 2020

…in/stderr strings


Same bug in the autogenerated code with the glib::Bytes... @GuillaumeGomez didn't you fix that in the code generator at some point? It's annotated correctly.

@EPashkin
Copy link
Member

👍

@sdroege
Copy link
Member Author

sdroege commented Apr 25, 2020

Nobody was reading my comment? :P This is not complete yet.

@GuillaumeGomez
Copy link
Member

I don't remember doing anything on async functions except adding the init macro call? And the current code still looks good to me. :)

@EPashkin
Copy link
Member

I read but I think that you need separate fix for it.
And PR has no WIP: 😉

@sdroege
Copy link
Member Author

sdroege commented Apr 25, 2020

@GuillaumeGomez I was thinking of gtk-rs/gir#742 . So that doesn't seem to fully work :) Any ideas what is different here?

@GuillaumeGomez
Copy link
Member

I think callbacks for non-async functions are handled differently. Please open an issue on gir (and add it into the release issue too please :) ).

@sdroege
Copy link
Member Author

sdroege commented Apr 25, 2020

I'll take a look in a bit. Why are all these handled differently :)

@GuillaumeGomez
Copy link
Member

The conversions are different iirc. However I don't know what started this split. Maybe it's time to put it back?

@sdroege
Copy link
Member Author

sdroege commented Apr 25, 2020

I don't know what started this split

I think you did when adding support for generating the (non-async) callbacks :)

@GuillaumeGomez
Copy link
Member

That'd be surprising because we had the callbacks generated before we added support for the async functions. But maybe I'm wrong, not sure... In any case, it'd be nice to see how similar both codes are and check if they can be merged.

@sdroege
Copy link
Member Author

sdroege commented Apr 25, 2020

It was the other way around, we first had async functions :)

@GuillaumeGomez
Copy link
Member

Then I completely missed it, my bad...

@sdroege
Copy link
Member Author

sdroege commented Apr 26, 2020

Looking in any case, shouldn't be too hard to add this. Merging the two code paths is more tricky, we should do that together with moving to quote for generating the code.

@sdroege
Copy link
Member Author

sdroege commented May 3, 2020

Regenerated with updated gir, so let's get this in once the CI is happy

@sdroege sdroege merged commit 82038aa into gtk-rs:master May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants