Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Go 1.11 imports of local packages in a module aren't recognized #1909

Closed
tamasfe opened this issue Sep 3, 2018 · 3 comments
Closed

Go 1.11 imports of local packages in a module aren't recognized #1909

tamasfe opened this issue Sep 3, 2018 · 3 comments

Comments

@tamasfe
Copy link

tamasfe commented Sep 3, 2018

The problem is best described in the screenshot:
screenshot from 2018-09-03 23-39-56
The app builds just fine, but the import doesn't work in vs code.

I cleared both the bin and pkg folders of my GOPATH, and updated all the tools.

To be honest, I haven't got my head around the new go modules yet, so I'm not sure whether this is a bug or me doing something wrong.

@avence12
Copy link

avence12 commented Sep 4, 2018

Try to replace nsf/gocode by mdempsky/gocode ?
It works for me after the migration.

@tamasfe
Copy link
Author

tamasfe commented Sep 4, 2018

Didn't fix it for me, in fact the error remained with gocode removed as well.

I'll try reinstalling the extension whenever the market comes back online,

@tamasfe
Copy link
Author

tamasfe commented Sep 5, 2018

No success, it seems that several tools don't support modules yet at all, including gocode and go-langserver and who knows what else, see mdempsky/gocode#46 and sourcegraph/go-langserver#316 for example.

So it isn't a bug in the extension.

@tamasfe tamasfe closed this as completed Sep 5, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 20, 2018
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

2 participants