Goland Scanning files to index

Flutter、Golang、Python、编译原理、算法、Chrome原理学习系列文章抢先看请关注【码农帮派】

Goland Scanning files to index

【Golang学习系列文章,请扫二维码】

 

方法一:

清Idea的缓存,Restart:(File -> Invalidate Cache / Restart...)

Goland Scanning files to index

点选:Invalidate and Restart.

Goland Scanning files to index

 

方法二:

要是上面的方法不管用,而且你的Go项目中包含了前端代码,Golang会遍历你的node_modules文件下的内容,有可能造成了死循环,此时可以如下:

Goland Scanning files to index

选中node_modules文件夹,点选"Mark Directory as" -> "Excluded",之后我们会发现node_modules的颜色发生改变,此时重启Golang,就不会再Scanning files to index了。

Goland Scanning files to index