为什么这个特定的软件包无法自动提出?

发布于 2025-02-13 21:17:53 字数 723 浏览 0 评论 0原文

我在工作区中使用了一些带有一些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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文