JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

goland Cannot resolve import 'google/api/annotations.proto'

发布时间 2023-06-30 07:17:34作者: 牛奔

前言

kratos 项目出现 import 标红,但是 $GOPATH/src/google/api/annotations.proto 已经存在了。

解决

路径:Goland > Settings > Languages & Frameworks > Protocol Buffers

取消勾选 Configure automatically,添加自定义 Protocol Buffers 文件夹

这样 goland,就能加载到 proto 文件了。

    本栏目推荐文章
  • nginx反向代理时报no resolver defined to resolve
  • import在vue中使用
  • cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
  • Cannot load driver class: oracle.jdbc.OracleDriver
  • 不是银趴~是@Import!
  • 解决mac arm 中 goland 无法 debug 问题
  • goland下提交gitlab上如何将制表符tab变成4个空格
  • Cannot re-initialize CUDA in forked subprocess.
  • An unexpected error has occurred while opening the workflow. See the event log on the AOS and contact your system administrator to resolve the issue.
  • oneforall配置环境,报错cannot import name 'sre_parse' from 're' 解决方法
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们