Skip to content

gogetdoc gets stuck when operating on files with errors #56

@ramya-rao-a

Description

@ramya-rao-a

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.

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