go-python/gopy

Broken with Go 1.20 - empty sections in Python output

mlange-42 opened this issue · 1 comments

With the new Go version 1.20 released yesterday, gopy is broken.

It produces only empty .py files, except for the preamble. I.e. all the Types, Enums, Interfaces, Structs etc. sections are emptly.
When I switch back to Go 1.19.5, it works as expected again.

I also observed that some warnings like these diappeared with the non-working 1.20:

ignoring python incompatible method: ... gopy: return type is signature

(i.e. the respective functions are probably not even processed)

EDIT/Further observations:

Under Go 1.20, the package types are already empty here:

gopy/gen.go

Line 138 in 7a98aa5

p := bpkg.Types

Also, when it comes to collecting symbols, the package is marked as incomplete (complete=false) in 1.20, while it is complete in 1.19.

See #312. I have no idea why it works with Go < 1.20.