Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

no results for unimported packages when using Go modules #3

Closed
stamblerre opened this issue Sep 27, 2018 · 6 comments
Closed

no results for unimported packages when using Go modules #3

stamblerre opened this issue Sep 27, 2018 · 6 comments

Comments

@stamblerre
Copy link
Owner

In the below case we dont get any completions.

import (
        "rsc.io/quote"
        "fmt"
)

func main() {
        fmt.Println("hello")
        quote.
}

Update the quote. above to quote.Hello(), save the file. The next time auto-completions work

import (
        "rsc.io/quote"
        "fmt"
)

func main() {
        fmt.Println("hello")
        quote.Hello();
        quote.
}
@uudashr
Copy link

uudashr commented Oct 10, 2018

Do we have progress? Had same issue on vscode-go. Please tell me if there is anything that I can help

@stamblerre
Copy link
Owner Author

This is going to require some underlying changes to the go/packages API, so it probably won't be fixed very soon. The current approach is just to save the file and then the completions will work.

@ramya-rao-a
Copy link

@stamblerre I believe this can be closed, correct?

@stamblerre
Copy link
Owner Author

@ramya-rao-a: I don't believe this has been resolved yet.

@stamblerre
Copy link
Owner Author

This should be fixed as of 2f9d39d.

@nezorflame
Copy link

Works, thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants