i have an issue in VS code while importing a package.VS code shows could not find the Package in GOBIN or GOROOT.But the program runs fine.But the issue is when this Problem arise the intellisense stops working to make it work i need to manually update gopls everytime when i import a packageenter image description here
Asked
Active
Viewed 210 times
-1
-
2Please do not post images of text. Make sure to use modules. – Volker Aug 18 '22 at 12:59
1 Answers
-1
In VS Code try these steps:
ctrl + shift + p
- Type
Go
Install/Update tools
Should solve most of such cases.

Sebry
- 137
- 5
-
i usually do this but the problem is i need to do this manually everytime when i import a package – topgiver Aug 20 '22 at 14:19