Skip to content

fails to import "sync" package #263

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

Closed
sudipidus opened this issue Jan 26, 2024 · 1 comment
Closed

fails to import "sync" package #263

sudipidus opened this issue Jan 26, 2024 · 1 comment
Assignees

Comments

@sudipidus
Copy link

While I try to import "sync" package I get the following error

Converter.Type(): unsupported types.Type: *types.TypeParam

I randomly tried importing other packages and it works just fine.

What am I missing?

ps: adding this as an issue since I don't see discussion column

@cosmos72
Copy link
Member

That's because importing generic types and generic functions is not yet supported,
and [email protected] chokes on them.

There's a partial fix in the latest version, which just skips generic types and generic functions while importing a package.
To install the latest version, follow the usual installation instructions but replace @v0.7.5 with @latest

@cosmos72 cosmos72 self-assigned this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants