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

Definiton finding does not work in one workspace but in other do #3161

@EmadHelmi

Description

@EmadHelmi
  • Run go version to get version of Go
    • go version go1.14.1 linux/amd64
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders
    • 1.43.2
  • Check your installed extensions to get the version of the VS Code Go extension
    • 0.13.1
  • Run go env GOOS GOARCH to get the operating system and processor architecture details
    • Linux
      • amd64

Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or ["go"] prefixes.
- "go.formatTool": "gofmt",
- "go.buildOnSave": "off",
- "go.useLanguageServer": true

Describe the bug

I have two projects in gopath dir (/home/emadhelmi/go).

  1. One of them located in /home/emadhelmi/go/src/xxx/yyy/zzz
  2. And the other one located in /home/emadhelmi/go/src/xxx/yyy/ttt/www
    The first one is totally good, and when I press f12 on a variable (even from a foreign package in other location) it opens the related file very fast.
    But in the second one when I press the f12 on a variable (even in the same package and even in the same file) I takes long time to find and at last it does not find anything (even in the same file).
    I check my both projects for local settings, but there is no such a file and all go settings are the one that I mentioned above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions