Scala plugin and code completion

I started playing with Scala (2.7.7) and the Scala plugin (0.3.752) and Intellij 9.  The scala plugin does what I expect except for code completion.  When coding java, I have learned to rely on code completion to supply suggestions for methods given a variable or class.  Is it expected that the scala plugin does not provide this functionality?  If not, what am I missing to turn on code completion?

Thanks,
Sean

5 comments

There have been language changes between Scala 2.7 and 2.8, and IIRC also binary changes (signature pickling)
The Jetbrains Scala plugin is targetting Scala 2.8.

I'm using the latest version of the plugin with Scala 2.8, and have no (major) issues with completion.

0

does the completition not work at all, or are you simply getting lots of methods that don't make sense to you, and smart type completition does not work?
i assumed you meant the latter and agreed with a +1

0

Perhaps the fact that implicit conversions are taken into account makes methods available in the completion pop-up that you're not expecting?

E.g., type a string literal, dot, "r", CTRL-SPACE and you'll see a method "r". That's the "r" method of RichString (Scala 2.7) / StringOps (Scala 2.8), not of String (obviously). There's an implicit conversion from String to RichString / StringOps and it is taken into account when populationg the completion menu in IDEA.


Randall Schulz

0

Thanks, all.  I installed scala 2.8.0 and everything works as I had expected.  I also moved to a different machine when I did this, so two variables are in play.  In any case, I can now confirm that scala 2.8.0 and the other details in my original post produce a fantastic IDE for scala.

I'll trouble-shoot on the other machine to see if there is something to be learned there.  If I find anything, I'll forward the information.

Thanks,
Sean

0

Please sign in to leave a comment.