Cannot Navigate to declaration (cmd + click) with IntelliJ + Scala plugin

Cannot Navigate to declaration (cmd + click) with IntelliJ + Scala plugin

Hello,

I have imported a Scala project with IntelliJ and installed the Scala plugin however when I try to cmd + click on a method
It says "Cannot find declaration to go"

I have already tried to Invalidate + restart but I still cannot got to methods.


Note that it works fine when using a Java project for example.

Is there something extra I need to setup ?

Thanks!

3 comments
Comment actions Permalink

The trick was to mark the "scala" folder as src root

3
Comment actions Permalink

That trick does not work for me. What else i can do?

0
Comment actions Permalink

Thank you for coming back to comment, marking my src/scala folder as "Sources root" also fixed for me.

 

Best, Chris

0

Please sign in to leave a comment.