简体   繁体   English

无法使用 vscode 解析自己定义的 golang package

[英]cannot resolve own defined golang package with vscode

I have no clue but suddenly my vscode became unable to resolve to own package.我不知道,但突然我的 vscode 变得无法解决拥有 package。

在此处输入图像描述

building main.go succeeds so I think the code itself does not have a problem.构建 main.go 成功所以我认为代码本身没有问题。

I'm sorry for lucking information but if anyone encountered the same problem and solved it, please tell me how.很抱歉提供了运气信息,但如果有人遇到同样的问题并解决了它,请告诉我如何解决。 I really appreciate it对此,我真的非常感激

this was due to I updated to experimental version for golang language server这是因为我更新到了 golang 语言服务器的实验版本

I completely reinstalled vscode and it worked again我完全重新安装了 vscode 并且它再次工作

Same situation Happend for me long time main reasons vscode crash/old versions compatibility or may be other issue.同样的情况发生在我很长一段时间内,主要原因是 vscode 崩溃/旧版本兼容性或可能是其他问题。 go side pkg section not able 'get' the proper info go 侧 pkg 部分无法“获取”正确的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM