alvaroloes / enumer

A Go tool to auto generate methods for your enums
Other
480 stars 111 forks source link

Go 1.18 compatibility: internal error #65

Open andig opened 2 years ago

andig commented 2 years ago

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

ycdesu commented 2 years ago

Hope this PR could be merged