Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typegen: de-novo use fails silently -- serious bug! #1408

Open
rcoreilly opened this issue Dec 30, 2024 · 0 comments
Open

typegen: de-novo use fails silently -- serious bug! #1408

rcoreilly opened this issue Dec 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working correctly

Comments

@rcoreilly
Copy link
Member

Describe the bug

if you run typegen (i.e., core generate) on a type that embeds a core Widget (e.g., core.Frame), in a directory that has no prior successful tree.Node types added, it fails to recognize this as a tree.Node type, and does not generate the proper set of methods (e.g., the New function).

A workaround is to explicitly include the tree type:

var _ tree.Node = (*MyType)(nil)

and then generate. Once this succeeds, then this line can be deleted and it will continue to work.

How to reproduce

see above.

Example code

No response

Relevant output

No response

Platform

macOS

@rcoreilly rcoreilly added the bug Something isn't working correctly label Dec 30, 2024
@github-project-automation github-project-automation bot moved this to Todo in Bugs Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
Status: Todo
Development

No branches or pull requests

2 participants