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

Go 1.18 compatibility: internal error #65

Open
andig opened this issue Mar 21, 2022 · 1 comment
Open

Go 1.18 compatibility: internal error #65

andig opened this issue Mar 21, 2022 · 1 comment

Comments

@andig
Copy link

andig commented Mar 21, 2022

Seems that there are some problems with 1.18 in conjunction with the old x/tools library:

go generate ./...
enumer: internal error: package "fmt" without types was imported from "github.com/evcc-io/evcc/charger/easee"
charger/easee/signalr.go:30: running "enumer": exit status 1

I could not track it down yet; the package in question above does not make use of generics. Code is publicly available if anyone wants to take a stab.

This is actually a duplicate of #62

frebib added a commit to frebib/enumerx that referenced this issue Mar 21, 2022
Fixes failure when running enumer/enumerx with Go 1.18:

    enumerx: internal error: package "encoding/json" without types was imported from "test"
    test.go:12: running "enumerx": exit status 1

See-also: alvaroloes#65
Signed-off-by: Joe Groocock <me@frebib.net>
@ycdesu
Copy link

ycdesu commented Jul 17, 2022

Hope this PR could be merged

frebib added a commit to frebib/enumerx that referenced this issue Dec 24, 2022
Fixes failure when running enumer/enumerx with Go 1.18:

    enumerx: internal error: package "encoding/json" without types was imported from "test"
    test.go:12: running "enumerx": exit status 1

See-also: alvaroloes#65
Signed-off-by: Joe Groocock <me@frebib.net>
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

Successfully merging a pull request may close this issue.

2 participants