我有一个代码,我正在使用IntelliJIdea进行开发。它曾经工作得很好,但自从我更改过代码所在的文件夹以来,IntelliJ一直以怪异的方式行事。它向我展示了很多unable to find declaration to go to errors
。在更改过我的项目所在的文件夹之后,我再次更改了GOPATH并从新目录导入。为什么在IntelliJ Idea中找不到声明?
我附上屏幕截图,因为这样会更好地理解。
See the conductor.Start(). This function is right there in the package app. But it can't find this.
PS:我试图从无到有,无效并重新启动多次导入项目,但没有帮助。
列出您的$ GOPATH环境变量。 – eduncan911
@ eduncan911,在我的系统上设置的GOPATH是:'/ Users//Desktop/Work/Cloud/godir'。我的项目位于'/ Users/ Desktop/Work/Cloud/godir/src/stash/cloud/conduc'。 –