Intellij "go to > implementation/declaration" navigation feature not working

Ben picture Ben · Jun 7, 2017 · Viewed 12.8k times · Source

I have a maven java project that I would like to use IntelliJ for development on. One of my favorite navigation features of IntelliJ is the 'go to > implementation' feature that appears when you right click on a method or function.

My problem is that this feature is not working for me; when I choose it nothing happens, no error, it just sits right where it is. It also isn't suggesting functions and methods as I type, so it's as if IntelliJ is failing to recognize dependencies and relationships among the various classes in my project.

I know the code is fine because it compiles and runs, has anyone else experienced this? I made sure to open the project as a maven project using the pom.xml file but that made no difference.

Answer

Akhilraj N S picture Akhilraj N S · Nov 22, 2019

Right click on the root folder of your project (Application code folder) and

select -> Mark Directory as -> Sources root