为什么这个特定的软件包无法自动提出?
我在工作区中使用了一些带有一些GO项目的VSCODE。我拥有非常标准的VSCODE设置,并且使用gopls
使用GO扩展。
在我的代码中,我使用的是已安装在当前模块中的软件包时,它将成功地进行自动构成(即“ github.com/gosimple/slug”
)。
但是,当我使用spew
时,auto-import恰好是“ app/env/env/pkg/pkg/mod/github.com/davecgh/ [email  prectioned] /spew“
” 而不是github.com/davecgh/davecgh/davecgh/go-spew/go-spew/spew/spew/spew/spew/spew'每次
。
它也发生(有时)与另一个软件包有关,“ github.com/google/uuid”
。
现在,我认为它与这些特定的包裹无关,但是我正在努力寻找原因,以及为什么只有这些包裹。
VSCODE 1.68.1 走1.18 GOPLS 0.9.0
I'm using VSCode with a few Go projects, in a workspace. I've got pretty standard VSCode settings, and I'm using the Go extension with gopls
.
When in my code I'm using a package which has been installed in my current module, it is auto-imported successfully (i.e. "github.com/gosimple/slug"
).
But when I'm using spew
the auto-import happens to be "app/env/pkg/mod/github.com/davecgh/[email protected]/spew"
instead of "github.com/davecgh/go-spew/spew"
, everytime.
It also happens (only sometimes) with another package, "github.com/google/uuid"
.
Now I don't think it's related to these particular packages in any way, but I'm struggling to find a cause to this, and why only these packages.
vscode 1.68.1
go 1.18
gopls 0.9.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论