Autocomplete inside method brackets

226 views
Skip to first unread message

Ant Kutschera

unread,
Aug 2, 2012, 4:04:48 PM8/2/12
to scala-...@googlegroups.com
Hi,

I don't know if this is a bug, but in Java, if I write the following code, and hit ctrl+space (autocomplete) with the cursor just *after* the *opening bracket*, I get a list of matching method definitions, so for the following example I get println(), println(boolean b), println(char x), etc. etc.

    System.out.println()

I use this feature all the time in Java, since it helps remind me which parameters I need to pass to the method.

In the Scala IDE, I get a list of autocomplete stuff, but it doesn't include the method signatures at the top, like Java does.

Furthermore, if I hit F2 with the cursor in the method name (e.g. after "pri" and before "ntlin" in the example above), then in Java it shows me the Javadoc, including the method signature, even if there is a compiler error.

In the Scala IDE, F2 just shows me the error, which doesn't always include the signature, so I am clueless as to what parameters I have to pass to the parameter.

My wish would be for the Scala IDE to behave the same as the Java IDE, if possible.

Cheers,
Ant

Mirco Dotta

unread,
Aug 2, 2012, 5:02:18 PM8/2/12
to scala-...@googlegroups.com

On Aug 2, 2012, at 10:04 PM, Ant Kutschera wrote:

> Hi,
>
> I don't know if this is a bug, but in Java, if I write the following code, and hit ctrl+space (autocomplete) with the cursor just *after* the *opening bracket*, I get a list of matching method definitions, so for the following example I get println(), println(boolean b), println(char x), etc. etc.
>
> System.out.println()
>
> I use this feature all the time in Java, since it helps remind me which parameters I need to pass to the method.

I don't remember if we have a ticket for this. You could check on our issue tracker and file an enhancement ticket if you can't find one.

http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets

>
> In the Scala IDE, I get a list of autocomplete stuff, but it doesn't include the method signatures at the top, like Java does.
>
> Furthermore, if I hit F2 with the cursor in the method name (e.g. after "pri" and before "ntlin" in the example above), then in Java it shows me the Javadoc, including the method signature, even if there is a compiler error.

This is a missing feature. We have quite a few tickets for it already. For instance: http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000210

We are very aware that this is an important missing feature. However, this is not easy to implement because we need special support from the Scala compiler (to be precise, from the Scala Presentation Compiler).

>
> In the Scala IDE, F2 just shows me the error, which doesn't always include the signature, so I am clueless as to what parameters I have to pass to the parameter.
>
> My wish would be for the Scala IDE to behave the same as the Java IDE, if possible.

That's exactly what we aim for every time we implement something that also exists in the Java side.

Cheers,
Mirco

>
> Cheers,
> Ant
>

Mirco Dotta

unread,
Aug 2, 2012, 5:03:18 PM8/2/12
to scala-...@googlegroups.com
By the way, the scala-ide-user ML (https://groups.google.com/group/scala-ide-user) is a better place for this kind of questions.

-- Mirco

Ant Kutschera

unread,
Aug 2, 2012, 5:13:22 PM8/2/12
to scala-...@googlegroups.com


On Thursday, 2 August 2012 23:02:18 UTC+2, Mirco Dotta wrote:
This is a missing feature. We have quite a few tickets for it already. For instance: http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000210

We are very aware that this is an important missing feature. However, this is not easy to implement because we need special support from the Scala compiler (to be precise, from the Scala Presentation Compiler).


I know - it's something I tried to look into adding, and gave up after a few days.  I thought I would leave it to you more talented guys ;-) 

I'll post an enhancement request for the other thing.  Thanks.

Ant Kutschera

unread,
Aug 2, 2012, 5:29:31 PM8/2/12
to scala-...@googlegroups.com
On Thursday, 2 August 2012 23:02:18 UTC+2, Mirco Dotta wrote:

I don't remember if we have a ticket for this. You could check on our issue tracker and file an enhancement ticket if you can't find one.

        http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets

I've logged in there, but I can't find a link to file a new request.  Is it me, or is it a permission thing?

I had a quick look and couldn't find anything similar which is already in the system. 

Mirco Dotta

unread,
Aug 3, 2012, 2:33:31 AM8/3/12
to scala-...@googlegroups.com
I don't remember if we have a ticket for this. You could check on our issue tracker and file an enhancement ticket if you can't find one.

        http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets

I've logged in there, but I can't find a link to file a new request.  Is it me, or is it a permission thing?

You are right (Assembla really sucks, and this is one of the things I really dislike about it), users can only file tickets via the Support tab


(Go figure...)

I had a quick look and couldn't find anything similar which is already in the system. 

Looks good.

sschaef

unread,
Aug 3, 2012, 5:45:33 PM8/3/12
to scala-...@googlegroups.com


On Friday, August 3, 2012 8:33:31 AM UTC+2, Mirco Dotta wrote:
I don't remember if we have a ticket for this. You could check on our issue tracker and file an enhancement ticket if you can't find one.

        http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets

I've logged in there, but I can't find a link to file a new request.  Is it me, or is it a permission thing?

You are right (Assembla really sucks, and this is one of the things I really dislike about it), users can only file tickets via the Support tab

Do you know the difference between the Tickets and the Support tab? So far I submitted tickets by the Tickets tab but at last I did it with the Support tab. After creation of the ticket I noticed that I'm unable to change the component category - the option is not shown (I can change the component category if I create the ticket by the Tickets tab). This makes it unnecessarily difficult to find the ticket again. The ticket: http://scala-ide-portfolio.assembla.com/spaces/scala-ide/support/tickets/1001193

Mirco Dotta

unread,
Aug 4, 2012, 5:05:21 AM8/4/12
to scala-...@googlegroups.com
On Aug 3, 2012, at 11:45 PM, sschaef wrote:



On Friday, August 3, 2012 8:33:31 AM UTC+2, Mirco Dotta wrote:
I don't remember if we have a ticket for this. You could check on our issue tracker and file an enhancement ticket if you can't find one.

        http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets

I've logged in there, but I can't find a link to file a new request.  Is it me, or is it a permission thing?

You are right (Assembla really sucks, and this is one of the things I really dislike about it), users can only file tickets via the Support tab

Do you know the difference between the Tickets and the Support tab? So far I submitted tickets by the Tickets tab but at last I did it with the Support tab.

If you are a watcher of the Scala IDE space, you can submit tickets both under the Ticket and Support page. If you aren't, then you can only submit tickets via the Support tab.

After creation of the ticket I noticed that I'm unable to change the component category - the option is not shown (I can change the component category if I create the ticket by the Tickets tab).

That should be fixed now. However, I don't see a way to make the "New Ticket" page consistent (the editable fields are different if you start from the Support page or the Ticket page).

This makes it unnecessarily difficult to find the ticket again. The ticket: http://scala-ide-portfolio.assembla.com/spaces/scala-ide/support/tickets/1001193

I've updated the ticket. 

By the way, can you edit the ticket if you use the following url: http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1001193

Ant Kutschera

unread,
Aug 17, 2012, 4:14:44 PM8/17/12
to scala-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages