dougudu3564 2016-10-09 12:10
浏览 3788

为什么在IntelliJ Idea中找不到要去的声明?

I have a code in go, and I am using IntelliJIdea for development. It used to work fine, but since the time I have changed the folder where the code used to be, IntelliJ has been behaving in a weird manner. It shows me a lot of unable to find declaration to go to errors. After changing the folder where my project used to be, I changed the GOPATH and imported from the new directory once again.

I am attaching the screenshot as that will be better for understanding.

See the conductor.Start(). This function is right there in the package app. But it can't find this.

PS: I have tried importing the project from scratch and invalidating and restarting multiple times, but that didn't help.

  • 写回答

1条回答 默认 最新

  • doulang6013 2017-10-05 16:15
    关注

    I'm using Gogland, which is also a JetBrains IDE, but I also had a problem with symbols not getting resolved.

    I fixed it by deleting the project's index file.

    1. Close the IDE.
    2. In your project directory, find a directory named ".idea".
    3. Delete all files with the extension ".iml" in that directory.
    4. Restart the IDE.

    The project should get reindexed and symbols will be resolved.

    https://www.jetbrains.org/intellij/sdk/docs/basics/project_structure.html?search=.iml

    评论

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100