Broken with Go 1.20 - empty sections in Python output · Issue #311 · go-python/gopy · GitHub
Skip to content

Broken with Go 1.20 - empty sections in Python output #311

Closed

Description

@mlange-42

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

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.

Activity

  1. mlange-42 commented on Feb 2, 2023

    @mlange-42
    ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions