Skip to content

Gopls test autocompletion issue #3699

Closed
@vadimi

Description

@vadimi

Thank you for the bug report

  • I am using the latest version of lsp-mode related packages.
  • I checked FAQ and Troubleshooting sections
  • You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

gopls offers test method generation autocompletion by typing in func Tes. But for some reason after test method is generated the text used for method generation gets copied outside of the method declation, please see this video:

go_autocomplete.mov

Steps to reproduce

  1. open any go test file (xxx_test.go)
  2. type in func Tes to see the autocompletion popup
  3. press Enter

Expected behavior

test method should get generated without copying text to the end of the method declaration

Which Language Server did you use?

lsp-go with gopls

OS

MacOS

Error callstack

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions