Tag Archives: Just go

Solve the problem of failure in installation of golang plug-in dependency in vscode

Solved the Golang plugin dependency installation failure issue in VS Code
Vscode installed in ms - vscode. Go after plugins can open support for the language, the ms - vscode. Go plugins need to rely on some tools, prompt after the installation is complete


Installing github.com/nsf/gocode SUCCEEDED
Installing github.com/uudashr/gopkgs/cmd/gopkgs SUCCEEDED
Installing github.com/ramya-rao-a/go-outline FAILED
Installing github.com/acroca/go-symbols FAILED
Installing golang.org/x/tools/cmd/guru FAILED
Installing golang.org/x/tools/cmd/gorename FAILED
Installing github.com/fatih/gomodifytags SUCCEEDED
Installing github.com/haya14busa/goplay/cmd/goplay SUCCEEDED
Installing github.com/josharian/impl FAILED
Installing github.com/rogpeppe/godef SUCCEEDED
Installing sourcegraph.com/sqs/goreturns FAILED
Installing golang.org/x/lint/golint FAILED
Installing github.com/cweill/gotests/... FAILED
Installing github.com/derekparker/delve/cmd/dlv SUCCEEDED

8 tools failed to install.

Due to network problems, some dependent tools cannot be installed properly, so manual installation is required.
Here are the steps for manually installing the tool:
GOPATH

    in % % \ SRC \ directory and establish a path \ x golang.org into GOPATH%\src\golang.org % \ x , download tools, source code git clone https://github.com/golang/tools.git tools after the completion of the clone, A Tools folder will be generated so that the source code for the tool is ready to execute under % goPath %

        go install github.com/ramya-rao-a/go-outline
    
        go install github.com/acroca/go-symbols
    
        go install golang.org/x/tools/cmd/guru
    
        go install golang.org/x/tools/cmd/gorename
    
        go install github.com/rogpeppe/godef
    
        go install github.com/sqs/goreturns
    
        go install github.com/cweill/gotests/gotests
    
    

    Separate processing golint golint source is located in the https://github.com/golang/lint , enter GOPATH%\src\golang.org % \ x after the execution of git clone https://github.com/golang/lint download golint GOPATH need source code to the % % , the execution of go install github.com/golang/lint/golint
    This completes the installation of the tools on which VS Code's Golang plug-in depends.

Three methods of referencing DLL in Visual Studio 2015

Copy the DLL file to the directory where the executable is located
 
2. Transfer engineering attributes ->; Configure properties ->; Debugging – & gt; Change the working directory to the directory where the DLL files reside
 
3. Transfer engineering attributes ->; Configure properties ->; Debugging – & gt; Set the environment to the Path= DLL directory, for example: Path=$(SolutionDir)bin
 

Reproduced in: https://www.cnblogs.com/buyishi/p/10236780.html