Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

impl not generating stubs from interface #1769

Description

@danf0rth

Cannot stub interface: unrecognized interface: user.UserRepository

go version go1.10.2 linux/amd64
Extension version 0.6.84, and i also tried 0.6.85-Beta1

Steps to Reproduce:

  1. Download this repository, if your cannot reproduce bug on your existed projects
  2. Call command Go: Generate interface stubs
  3. Type m MySQLUserRepository user.UserRepository
  4. Error occurred: Cannot stub interface: unrecognized interface: user.UserRepository

File structure is similar to this repo, except all located in internal folder inside of my package.

If I run in terminal impl 'm MySQLUserRepository' user.UserRepository, it works:

func (m MySQLUserRepository) GetByID(ctx context.Context, id int64) (*model.User, error) {
        panic("not implemented")
}

func (m MySQLUserRepository) Update(ctx context.Context, user *model.User) (*model.User, error) {
        panic("not implemented")
}

func (m MySQLUserRepository) Store(ctx context.Context, user *model.User) (*model.User, error) {
        panic("not implemented")
}

func (m MySQLUserRepository) Delete(ctx context.Context, user *model.User) (bool, error) {
        panic("not implemented")
}

Thanks for your attention!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions