dqxz96998 2017-09-18 18:56
浏览 34
已采纳

无法在macOS Sierra上的Gogland 1.0 EAP中启动调试

I've switched to Go not so long ago. I've chosen JetBrains Gogland as IDE. I like both: Go and IDE, except a one issue. I don't know whether it is an issue with IDE or with Go lang configuration on macOS Sierra. But when I'm trying start debuging for a test from Gogland, the build fails with message:

GOROOT=/usr/local/go
GOPATH=/Users/username/project/go
/usr/local/go/bin/go test -c -i -o /private/var/folders/3b/hlrss45s1p93cgtq9xgsw4gh0000gn/T/All_in__bitbucket_org_ username_package_matrix_go -gcflags "-N -l" -a bitbucket.org/usaername/package/matrix
go install runtime/internal/sys: open /usr/local/go/pkg/darwin_amd64/runtime/internal/sys.a: permission denied

I use Go 1.9

$ go version
go version go1.9 darwin/amd64
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/azagretdinov/project/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.9/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.9/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3b/hlrss45s1p93cgtq9xgsw4gh0000gn/T/go-build006508560=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

Information about Gogland

Gogland (1.0 Preview) 1.0 EAP
Build #GO-172.3757.46, built on August 11, 2017
Gogland EAP User
Expiration date: November 9, 2017
JRE: 1.8.0_152-release-915-b10 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
  • 写回答

1条回答 默认 最新

  • douyi8408 2017-09-18 19:11
    关注

    You are using an old version of the IDE, please upgrade to the latest one and it will work as expected.

    For reference, this issue was addressed in EAP 13 / 14 (which is the latest), see the original issue here: https://youtrack.jetbrains.com/issue/GO-4430

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

    报告相同问题?

    悬赏问题

    • ¥15 Google Chrome 所有页面崩溃,三种解决方案都没有解决,我崩溃了
    • ¥18 如何用c++编写数学规律题
    • ¥20 使用uni-app发起网络请求,获取重定向302返回的cookie
    • ¥20 手机外部浏览器拉起微信小程序支付 (相关搜索:微信小程序)
    • ¥20 怎样通过一个网址找到其他同样模版的网址
    • ¥30 XIAO esp32c3 读取FDC2214的数据
    • ¥15 在工控机(Ubuntu系统)上外接USB蓝牙硬件进行蓝牙通信
    • ¥15 关于PROCEDURE和FUNCTION的问题
    • ¥100 webapi的部署(标签-服务器)
    • ¥20 怎么加快手机软件内部计时的时间(关键词-日期时间)