I only got mine working 99% of the time with a language server configured in my settings:
{ "go.useLanguageServer": true, "go.languageServerExperimentalFeatures": { "diagnostics": true // for diagnostics as you type }, "[go]": { "editor.snippetSuggestions": "none", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.organizeImports": true }, }, "gopls": { "usePlaceholders": true, // add parameter placeholders when completing a function "enhancedHover": true, // experimental to improve quality of hover (will be on by default soon) }, "eslint.autoFixOnSave": true, "prettier.eslintIntegration": true } On Tuesday, May 28, 2019 at 5:32:51 AM UTC-5, Subramanian Sridharan wrote: > > I cannot use intellisense and have my own source packages be recognized at > the same time. > > Golang Server - ON > Infer GOPATH from root - False > GOPATH - Empty > Result - I get details on hover. But my own source package imports fail. > > Golang Server - ON > Infer GOPATH from root - True > GOPATH - Empty > Result - Source package imports don't show error. No information on hover. > > Golang Server - ON > Infer GOPATH from root - False > GOPATH - ~/go:~/dc_native // The src is actually in ~/dc_native/x/y/ > Result - I get details on hover. But my own source package imports fail. > > Golang Server - ON > Infer GOPATH from root - False > GOPATH - ~/go:~dc_native/x/y // Inside which src containing own source > packages are present. > Result - Source package imports don't show error. No information on hover. > > At some point, intellisense was working where I was able to get > suggestions for structure members from another file of the same package. > I can't get that to work now. > > Where am I going wrong? > > PS: The GOPATH paths are actually absolute and not relative. > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/30ac3372-a454-4173-8326-cac893894d0a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.