<p>Hello. I can't seem to be able to install delve for vsCode.</p>
<pre><code>echo $GOPATH
/home/david/go
go get github.com/derekparker/delve
can't load package: package github.com/derekparker/delve: no buildable
Go source files in /home/david/go/src/github.com/derekparker/delve
</code></pre>
<p>Am i being dense? Please help.</p>
<hr/>**评论:**<br/><br/>Shixz: <pre><p><a href="https://github.com/derekparker/delve/tree/master/Documentation/installation" rel="nofollow">Installation guide</a></p></pre>redditfanster: <pre><p>are you on a 32 bit windows os perhaps? delve is not supported in 32 bit windows yet</p></pre>davidmdm: <pre><p>No i am running ubuntu (linux x64). </p>
<p>I have tried everything on the installation guides. I even tried cloning the repo and running make install. This is the response i get: </p>
<pre><code>make install
go install -ldflags="-X
main.Build=74d330a013a5412649aaa069d932b93889c2dbd2"
github.com/derekparker/delve/cmd/dlv
# github.com/derekparker/delve/pkg/dwarf/reader
pkg/dwarf/reader/variables.go:81: vrdr.dwarf.Ranges undefined (type
*dwarf.Data has no field or method Ranges, but does have dwarf.ranges)
Makefile:52: recipe for target 'install' failed
make: *** [install] Error 2
</code></pre>
<p>Which leads me to believe there is a bug relating public / private variables in the package. I tried looking at the source code but didn't have much time.
At this point I may just give up having a debugger in vsCode. </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传