Code completion can't find member of an inner class?

IDEA version: 11.1.3
Scala plugin version: 0.5.983
Scala compiler version: 2.9.2
Graph4Scala version: 1.5.1 (https://www.assembla.com/spaces/scala-graph/wiki)

Anyone have trouble with IntelliJ Idea's code completion when it comes to inner classes in Scala?

I don't know how common the problem is, but it certainly shows when I use the Graph4Scala library: IDEA in this case is not able to parse the NodeT member, which is the inner class of Graph[T, E]:

[quote]
    import scalax.collection.Graph
    import scalax.collection.GraphEdge._
    import scalax.collection.GraphPredef._

    ...

    private def traverseRecursive(current: Graph[Value, DiEdgePort]#NodeT) {
        ...
        current.diPredecessor // <--- really a member of NodeT inner class yet IDEA complains about not being able to find it
    }
[/quote]

The code compiles fine which means that it's an error in the code completion part so it's just a bit of an annoyance. In my instance it's double the annoyance though because Graph4Scala seem to have no scaladoc documentation.

I wonder if there's any fix for this?

Regards,

Ganeshwara Putra

3 comments
Comment actions Permalink

Thank you for report, this is fixed now in Leda branch (you can download next nightly build with IDEA 12 EAP 122.511). And later will be backported to Nika branch (probably new plugin version will be available next week).

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Thank you for the clarification.

Is it already in the github here https://github.com/JetBrains/intellij-scala ?

I can wait for the fix next week but if I can clone and compile it right this second it's even better.

Regards,

Ganesh

0
Comment actions Permalink

You can clone Nika branch, cherry-pick commit from master branch and then compile it. Commit hash is 47e262b

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.