Framework gotest is not available on any file E:\Goland\src\study

来源:4-1 测试

weixin_慕工程8580588

2021-05-18 20:28:26

IDE爆错 

Framework gotest is not available on any file E:\Goland\src\study


是为什么?

写回答

1回答

ccmouse

2021-05-19

我没有见过这个错,搜索也没搜到任何内容。

同学这个目录里都是什么文件,能列一下吗?

另外使用命令行试试,在这个study目录下打go test ./... 它输出什么

0
heixin_慕工程8580588
hp dir="ltr">昨天解决了,我在ide中取消了enable go modules的勾选,然后手动在study目录下初始化go mod就行了。最先就觉得是环境问题,又建了个linux虚拟机,来运行就好好的。windos下设置gopath,总是自己要切换,环境变量后来从用户,改到全局就好了。

h021-05-19
共1条回复

0 学习 · 1399 问题

查看课程

相似问题

回答 1

回答 1

回答 1

回答 1