douchenzhan3050 2018-03-01 20:07
浏览 1366

IntelliJ Golang插件无法导入默认软件包

I just downloaded the latest plugin for Go support in IntelliJ. I'm not able to use intellisense for Go programming because IntelliJ is not able to import packages like fmt and float64.

However, if I run the program from within IntelliJ, it works just fine!

GOROOT is usr/local/go Project GOPATH is /Users/myname/go where the go file is.

What am I missing?

enter image description here

  • 写回答

2条回答 默认 最新

  • duanbi9202 2018-03-01 20:35
    关注

    Go to Settings | Languages & Frameworks | Go | GOROOT and make sure your GOROOT is selected there. Then to the same place, but in GOPATH, make sure that's also set correctly.

    Also, make sure that you follow the Go Workspace requirements.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于无人驾驶的航向角
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退