4 Replies Last post: Feb 12, 2010 7:22 PM by TomasJ  
jaco uys Newbie 5 posts since
Apr 7, 2009
Currently Being Moderated

Feb 3, 2010 9:20 AM

no code insight

Hi,

 

I just started using the scala plugin.

For some reason I do not get any code insight etc... It seems that it can not find any of the scala libraries.

 

I did change the scala pluging configuration to point to my local scala 2.8 beta1 libraries.

 

Does anybody have any tips?

 

Regards Jaco

TomasJ Newbie 2 posts since
Feb 11, 2010
Currently Being Moderated
Feb 11, 2010 5:37 PM in response to: jaco uys
Re: better code insight wanted ( Re: no code insight )

For example, if you write the following code:

    val ten: RichInt = 10
    val range = ten.to(20)

 

Then you will indeed get intellisense/auto completion/code insight help when you press the "." after the "ten" in the second row.

 

However, for the following code (which compiles and works fine) you will _not_ get any auto completion help:

    val ten: Int = 10
    val range = ten.to(20)

 

and also (not surprisingly, considering that the above neither gave you any auto completion help) the following working code will neither offer any auto completion:

    val range = 10.to(20)

 

So, I think it would be very desirable that the IDE can offer autocompletion for the kind of methods that indeed will work, including methods which will be available through  implicit conversions.

 

/ Tomas

Alexander Podkhalyuzin JetBrains 1,101 posts since
Jun 7, 2008
Currently Being Moderated
Feb 12, 2010 12:47 PM in response to: TomasJ
Re: better code insight wanted ( Re: no code insight )

Which version of Scala plugin are you using? May this is old version, in which you should to hit completion twice to get 'to' completed.

 

Best regards,

Alexander Podkhalyuzin.

TomasJ Newbie 2 posts since
Feb 11, 2010
Currently Being Moderated
Feb 12, 2010 7:22 PM in response to: Alexander Podkhalyuzin
Re: better code insight wanted ( Re: no code insight )

I am using version 0.3.473, which currently (2010-02-12) is listed at the latest version at the page http://confluence.jetbrains.net/display/SCA/Version+History.

 

I can also mention that I am using the Intellij IDEA community edition 9.0.1.

 

I am not sure what actual keystrokes you are talking about when writing "hit completion twice".

 

When I press the dot once I get the popup list, and then I have tried to press the combinations of CTRL+SPACE , and CTRL+SPACE+SHIFT , and CTRL+SPACE+ALT.

 

I have also tried these key combinations twice in a row, but that does not seem to offer any more alternatives in the dropdown list.

 

/ Tomas

More Like This

  • Retrieving data ...