samber / lo

💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
https://pkg.go.dev/github.com/samber/lo
MIT License
18.06k stars 831 forks source link

Error: could not resolve parametric type of accumulator: could not resolve interface type #461

Open TsubasaEX opened 6 months ago

TsubasaEX commented 6 months ago

Hi there,

I found an interesting issue here. When I try to set a breakpoint in the reduce function, the library shows error messages, but the result is okay. However, if I don't set any breakpoints in the reduce function, it works fine with no error messages. Is it related to some kinds of the internal issues in the library itself?

Thanks in advance. image image

dengyunsheng250 commented 3 months ago

i think you may remove the go.sum file and re-import the dependencies