"Mac OSX" runs some small pits in eclipse for go test

Source: Internet
Author: User

    1. Project build could not find the package

Workaround:

    1. Eclipse Read Gopath is not correct, in the project properties go Compiler The default option is removed, complete gopath

    2. Check Godep.json confirm the corresponding code in the corresponding location can be found, here is the main code.google.com code, because Google closed the relevant site, in GODEP save when the code is not captured, Generally go to GitHub to find the corresponding clone on it, note rev to change to the SHA string on GitHub, note that there are version differences

    3. Go get get to the DEP version is not correct, use GODEP Restore to get the code again

Goclipse Debug/run cannot execute go Test error: program file does not exist

Workaround:

Modify Debug Conifgration

A.build arguments:

Test-x-c-v-gcflags "-n-l" xxx.com/xxx/xxx

B.path of Launtch:

${workspace}/bin/xxxx_xxx.test

C.build-type:

Build-tests

3.run gdb--version:unknow Reason

Configuring Debug Conifgration

Debugger Tab,gdb Path:

/usr/local/bin/gdb

This article from "Wei View the World" blog, reproduced please contact the author!

"Mac OSX" runs some small pits in eclipse for go test

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.