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

Goto Definition, Hover, Signature Help do not work for Dot imported functions #496

Closed
Alexendoo opened this issue Sep 21, 2016 · 6 comments

Comments

@Alexendoo
Copy link

Using 0.6.43

The function details show correctly

image

but argument details do not

image

Becomes an issue in testing when using a different package for the tests or a project such as goconvery

@ramya-rao-a
Copy link
Contributor

The signature help feature uses the godef to get package info and then uses godoc to get the signature help. The godef tool does not support dot imports. See rogpeppe/godef#19

Other features of the Go extension that use the godef and so will not work with dot imports are:

  • Extra Info on hover
  • Goto and Peek definition

@ramya-rao-a
Copy link
Contributor

Closing this as won't fix, as the tools we use don't support the dot imported functions

@ramya-rao-a
Copy link
Contributor

#622 can fix this, so re-opening

@ramya-rao-a ramya-rao-a reopened this Nov 18, 2016
@ramya-rao-a ramya-rao-a changed the title Dot imported functions don't receive argument completion Goto Definition, Hover, Signature Help do not work for Dot imported functions Nov 20, 2016
@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Nov 21, 2016

In the latest update of the Go extension (0.6.50), we now support the use of gogetdoc for Goto/Peek Definition, Hover info and Signature Help features. Add "go.docsTool": "gogetdoc" to your setting to enable the use of gogetdoc, reload/restart VS Code and that should fix this issue.

@paulcalcraft
Copy link

Make sure you have gogetdoc installed by running:
go get github.com/zmb3/gogetdoc

It's not installed as standard by go or vscode's go extension, and the above setting ("go.docsTool": "gogetdoc") will fail silently if it is not installed.

@unix2dos
Copy link

in 1.92 mac , do not work?
@ramya-rao-a

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 23, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants