【发布时间】:2018-04-24 11:18:58
【问题描述】:
在我的Ubuntu 16.10中使用VSCODE编译我的go项目时,无法成功并提示:
compile: cannot disable optimizations while compiling runtime
exit status 2
Process exiting with code: 1
我检查了我的 launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${fileDirname}",
"env": {
"GOPATH":"/home/bill/test/go",
"GOROOT":"/usr/local/go"
},
"args": [],
"showLog": true
}
]
}
我能做些什么来改变这个?
【问题讨论】:
标签: go visual-studio-code