You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing any external library in mylibrary module (and even myapp/myotherapp), causes intellisense suggestions to not show up. However, opening any of the folders individually (like opening only folder mylibrary or myapp), resolves the error.
Steps to reproduce the behavior:
Create a similar project directory structure as above
Try importing an external package (in my example, github.com/urfave/cli/v2).
You will observe intellisense suggestions not appearing.
Doing the same by opening only the folder myapp on vscode, causes the intellisense to work correctly.
Screenshots or recordings
The text was updated successfully, but these errors were encountered:
@infixint943 thanks for the report. That's a known issue. golang/go#36899 describes the current limitation and the improvement plan. Currently the best workaround is to use Workspace Folders per module - for every go.mod, add the module root using "File" > "Add Folder to Workspace". (golang/go#32394)
@stamblerre Let's create a pinned issue on vscode-go side. It became the most common issues users face nowadays.
What version of Go, VS Code & VS Code Go extension are you using?
Share the Go related settings you have added/edited
Describe the bug
Here is what my project directory looks like
Importing any external library in
mylibrary
module (and evenmyapp/myotherapp
), causes intellisense suggestions to not show up. However, opening any of the folders individually (like opening only foldermylibrary
ormyapp
), resolves the error.Steps to reproduce the behavior:
github.com/urfave/cli/v2
).myapp
onvscode
, causes the intellisense to work correctly.Screenshots or recordings
The text was updated successfully, but these errors were encountered: