This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Code completion doesn't pop up?

3 replies
jlist9
Joined: 2009-09-29,
User offline. Last seen 42 years 45 weeks ago.

Hi,

If I have code

val s = "a"
s.

After typing the dot, the code completion menu doesn't pop up. I have to press
Ctrl+Space for it to pop up. Is this by design or a bug?

Also, I often see pink wave underlines in code. When the mouse hovers over it,
a blank details window shows up. I wonder what these pink underlines are for?

Thanks

Randall R Schulz
Joined: 2008-12-16,
User offline. Last seen 1 year 29 weeks ago.
Re: Code completion doesn't pop up?

On Thursday October 29 2009, jlist9 wrote:
> Hi,
>
> If I have code
>
> val s = "a"
> s.
>
> After typing the dot, the code completion menu doesn't pop up. I have
> to press Ctrl+Space for it to pop up. Is this by design or a bug?
>
> Also, I often see pink wave underlines in code. When the mouse hovers
> over it, a blank details window shows up. I wonder what these pink
> underlines are for?
>
> Thanks

There are three IDEs with Scala support. I use IDEA and don't recognize
the precise behavior you describe, so I suppose it's something else,
but you should say which editor you're using.

Randall Schulz

anli
Joined: 2008-08-19,
User offline. Last seen 1 day 1 hour ago.
Re: Code completion doesn't pop up?

On Friday 30 October 2009 01:54:47 Randall R Schulz wrote:
> There are three IDEs with Scala support. I use IDEA and don't recognize
> the precise behavior you describe, so I suppose it's something else,
> but you should say which editor you're using.
>
>
> Randall Schulz
>

Agree, the question is funny! :-) Probably it is good idea to add [netbeans]
or [eclipse] or [idea] to message subject.

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Code completion doesn't pop up?

On Thu, Oct 29, 2009 at 10:38 PM, jlist9 wrote:
> After typing the dot, the code completion menu doesn't pop up. I have to press
> Ctrl+Space for it to pop up. Is this by design or a bug?

This is Eclipse 2.7.x? Yes you have to hit ctrl+space.

> Also, I often see pink wave underlines in code. When the mouse hovers over it,
> a blank details window shows up. I wonder what these pink underlines are for?

They're there to confuse you. Ignore them. They're gone in 2.8.

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland