Comments (13)
I have the same problem as you, all the env set up, all the env vars set but vscode keep saying me "goxxx is not installed please run..."
I suggest you to modify the path you supply in your user config file from "go.gopath": "F:\Data\Projects\GO\src"
to "go.gopath": "F:\\Data\\Projects\\GO\\src"
, backslashes need to be escaped ! (:
from vscode-go.
Yes - string literals in the settings file need to use escaped backslashes. You should see an error reported in your settings file about the literal not being valid.
from vscode-go.
That didn't resolved the problem, I'm. in the same case, string is formatted as it should but it's not working..
Should the go.gopath
points to the directory where all the utilities are installed ?
from vscode-go.
The go.gopath
should point to the same place as you GOPATH
.
Could you share OS, go env
and result of Go: current gopath
?
from vscode-go.
I'm using W10 Pro
This is the result of go env
:
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=E:\GoWorkspace
set GORACE=
set GOROOT=E:\Go
set GOTOOLDIR=E:\Go\pkg\tool\windows_amd64
set GO15VENDOREXPERIMENT=
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
Result of : Go: current gopath
:
No handler found for the command: 'go.gopath'
Thanks for caring !
from vscode-go.
@Mistermatt007 Two things:
- Can you open a
.go
file before runningGo: Current GOPATH
? - How is your
GOPATH
set up? Do you have this in your system or user environment globally? Or do you set it locally in a command shell?
from vscode-go.
- WIth a file open
Go: Current GOPATH
returns :Current GOPATH:E:\GoWorkspace
- GOPATH, and GOROOT are set up system-wide, not in a command shell
from vscode-go.
@Mistermatt007 Okay thanks. And what exactly do you see then? Does "Analysis Tools Missing" show in the bottom right? What happens if you click it? What is the contents of your e:\GoWorkspace\bin
folder? Have you tried running the go get
commands that the popups suggest manually in your shell, what do you see if you run those?
from vscode-go.
I have also updated my path in settings.json "F:\Data\Projects\GO\src" but still same error is there. Still its saying golint is not there.
The current Go:Current Path returns F:\Data\Projects\GO\src
And still this errors comes.
I am using windows 10 Single language.
from vscode-go.
Yes, "Analysis tools missing" was on the bottom, but when I clicked on it and accepted to install missing softwares, the output was blocked on
github.com/lukehoban/go-outline (download)
github.com/lukehoban/go-outline
from vscode-go.
For some unknown reasons, now it's building fine, I don't know how...
from vscode-go.
FWIW - It's possible the issue you were seeing was related to this: microsoft/vscode#560 (comment).
from vscode-go.
@lukehoban - Now its working fine after adding Analysis tool!
from vscode-go.
Related Issues (20)
- go.formatFlags not working with gofmt -s (simplify) HOT 5
- Couldn't start client gopls HOT 5
- Unable to run Go in VS Code - command not found HOT 4
- Adding a module using `go get` from outside vscode is not recognized until go.mod is reopened HOT 5
- Can not use VS code for GO: Installing github.com/go-delve/delve/cmd/dlv FAILED HOT 5
- Disable real-time syntax error highlighting with gopls HOT 1
- Problem in mouse hover tooltip HOT 3
- Automatically Infer Path Mapping for Remote Debugging
- // .*DO NOT EDIT.?$ HOT 6
- Extension issue HOT 1
- 0.14.2 broken on macos HOT 3
- Extension Repository Migration Plan HOT 1
- Region comments not working when extension is enabled HOT 3
- Debugging uses wrong working directory HOT 4
- Background of covered and not covered code cannot be removed after running package test HOT 9
- Extension Migration Plan HOT 4
- numeric constants containing underscore are not colored correctly HOT 1
- Gopls does not support versions of go <=1.12 HOT 2
- Unable to set breakpoint when using gutter and clear Code coverage HOT 3
- Updated to 0.14.3 or the nightly and entirely stopped working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-go.