edolphin-ydf / goimpl.nvim

Generate stub for interface on a type
56 stars 6 forks source link

Generics with https://github.com/josharian/impl/releases/tag/v1.3.0(master) doesn't work #15

Open Solverj opened 7 months ago

Solverj commented 7 months ago

How to reproduce:

  1. MasonInstall or install by go install github.com/josharian/impl@latest (v1.3.0)
  2. Create any generic interface
  3. Implement the generic interface
  4. Error stating that interface doesn't exist.

Fix for me personally:

go install github.com/josharian/impl@v1.2.0

Fix that would be community-wise great:

  1. Require [type] at end of interface you want to implement.
Solverj commented 4 months ago

Also remember to delete v1.3.0(linux)

sudo rm -rf ~/go/pkg/mod/github.com/josharian/impl@v.1.3.0