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!

评论操作 固定链接

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

3
评论操作 固定链接

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

0
评论操作 固定链接

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

 

Best, Chris

0

请先登录再写评论。