Skip to content

Alternative to gogetdoc for :GoDoc #2808

@mgartner

Description

@mgartner

I'm curious if there are any plans for replacing gogetdoc for the :GoDoc command.

Currently, gogetdoc doesn't work well for large projects (and possible projects with cgo). It uses 100% CPU and hangs for minutes or longer. I think this issue is related to microsoft/vscode-go#1907, zmb3/gogetdoc#47, golang/go#29427.

Could gopls be used to provide documentation? Are there any other options?

I was working on a PR to add an option to use go doc only, but couldn't think of a consistent way to get the correct package name, so it'd be a lot less accurate than gogetdoc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions