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.

"Error: Type Error: Bad argument" when opening a folder containing GO code when go is not on the path #246

Description

@egamma

From Pavan Patel (@v-pavanp) on March 15, 2016 4:14

  • VSCode Version: Windows10
  • OS Version:

Steps to Reproduce:

  1. Install go from this location:https://visualstudiogallery.msdn.microsoft.com/bd7675ba-1bf5-4395-8c5a-4fc19dfc0d76
  2. Create directory structure and set environment variable for GOPATH, GOBIN. by following instruction provided at : https://golang.org/doc/install?download=go1.6.windows-amd64.msi
  3. Now add a .go file under workspace dir and execute below command to generate a EXE under GOBIN file.
  4. Once exe is generated successfully, open the workspace folder in VSCODE.
  5. Open go file and install GO extension.
  6. Verify extension installed successfully without any error.
  7. Verify GOPATH error should not be displayed as environment variables are already been set.

Actual: Getting error message "Error : Type Error: Bad argument".
image

Expected: There should not be any error message like this.

Copied from original issue: microsoft/vscode#4224

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions