6

intellij has problems with when a subclass specifies a more specific return type. This is the case for Akka's Http.get(ActorSystem) method. This is issue is reported to JB but they have not responded yet.

SCL-12302

Thomas W.
  • 652
  • 1
  • 7
  • 18

1 Answers1

7

I found a simple solution for the problem. Simply install the Scala plugin from JetBrains:

File -> Settings... -> Plugins -> Install JetBrains plugin... -> search for Scala.

After restarting the IDE the failure is gone.

Thomas W.
  • 652
  • 1
  • 7
  • 18
  • 1
    FYI: after installing the scala plugin, the compilation process slows down significantly. it takes 5-6 seconds for almost everything. – Yeshodhan Kulkarni Apr 19 '18 at 00:23
  • @YeshodhanKulkarni , hmm I am not facing the problem you mentioned. Everything is as fast as before. Nevertheless you should raise your issue at the intellij plugin tracker – Thomas W. Apr 20 '18 at 03:27
  • This does get rid of the inspection error for me but it still fails to compile with the same ambiguous method error in Intellij CE. From the Scala plugin's info section : "Support for Play Framework, Akka and Scala.js is enabled only with IntelliJ IDEA Ultimate." Maybe that's why. – Taha Oct 30 '18 at 08:12