VS Code Issue reference: microsoft/vscode-go#2084
Turns out gogetdoc gets stuck when operating on files with errors.
Sample code:
package main
import (
"fmt"
"io/ioutil"
"os"
)
func main() {
fmt.Pri ntln("hallo")
ioutil.ReadAll(os.Stdin)
}
Run gogetdoc on the ReadAll symbol with the above code. gogetdoc will be stuck and not return results
Try again after fixing the Println. Everything would be fine now.
VS Code Issue reference: microsoft/vscode-go#2084
Turns out
gogetdocgets stuck when operating on files with errors.Sample code:
Run
gogetdocon theReadAllsymbol with the above code.gogetdocwill be stuck and not return resultsTry again after fixing the
Println. Everything would be fine now.