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

Rebuild after running Go Get Package cmd if current file has "package not found" errors #2087

Closed
ramya-rao-a opened this issue Nov 4, 2018 · 1 comment

Comments

@ramya-rao-a
Copy link
Contributor

Add a package to the import block which you haven't downloaded yet. You will get the error cannot find package...

At this point, you can run the command Go Get Package with the cursor on the package in the import block, and the package will get downloaded and installed.

But the error still remains. We need to rebuild the file for the error to go away.

PRs are most welcome to fix this
Code Pointers:

  • Build and Debug extension
  • File to update: goGetPackage.ts
  • To build current package use the buildCode() function from goBuild.ts file.
@ramya-rao-a
Copy link
Contributor Author

The fix for this is now out in the latest update to the Go extension (0.8.0)
Thanks @Ashniu123!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant