Method parameters content assist

141 views
Skip to first unread message

Nils Kilden-Pedersen

unread,
Nov 23, 2011, 9:46:06 AM11/23/11
to scala-i...@googlegroups.com
One of the biggest interrupters of my coding workflow, is the missing display of method parameters when doing content assist. It means I have to switch to either API docs or the code itself to remember what the parameters are.

I assume this feature is already planned, but I wondered what the priority and/or perhaps even ETA is?

Besides that, I find the current Scala Eclipse plugin to be eminently usable, so thanks for the great work.

Nils

iulian dragos

unread,
Nov 23, 2011, 12:28:44 PM11/23/11
to scala-i...@googlegroups.com
On Wed, Nov 23, 2011 at 3:46 PM, Nils Kilden-Pedersen <nil...@gmail.com> wrote:
> One of the biggest interrupters of my coding workflow, is the missing
> display of method parameters when doing content assist. It means I have to
> switch to either API docs or the code itself to remember what the parameters
> are.
> I assume this feature is already planned, but I wondered what the priority
> and/or perhaps even ETA is?

None of that, unfortunately. But contributions are always welcome, and
I don't say that just to say it. Once 2.0 is out we can have a look at
all these little things, but I can't say any more than that. Truth is,
Eclipse might have a lot of the infrastructure required to do it, so
it may be a very good stepping stone.

I created a new ticket in the milestone enhancements, which aims to be
a pool of ideas for people who want to contribute to the IDE:
https://www.assembla.com/spaces/scala-ide/tickets/1000772

> Besides that, I find the current Scala Eclipse plugin to be eminently
> usable, so thanks for the great work.

thank you!

iulian

> Nils

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Nils Kilden-Pedersen

unread,
Nov 23, 2011, 2:07:01 PM11/23/11
to scala-i...@googlegroups.com
On Wed, Nov 23, 2011 at 11:28 AM, iulian dragos <jagu...@gmail.com> wrote:
I created a new ticket in the milestone enhancements, which aims to be
a pool of ideas for people who want to contribute to the IDE:
https://www.assembla.com/spaces/scala-ide/tickets/1000772

If I understand the ticket description correctly, it's for auto-completing the code, correct? While that's helpful for some people, that wasn't what my poorly worded question was about. Rather, I'm asking to see, on the content assist drop-down window, the parameter names alongside the types. In Java, both are shown, in Scala only the types. And then below the drop-down, the Javadocs are shown for Java, which would also be a nice addition to Scala, but less important for workflow.

I've appended two screenshots to illustrate.

Java shows parameter names:

java-content-assist.png

while Scala does not:
scala-content-assist.png

I hope that clarifies.

Thanks again!
scala-content-assist.png
java-content-assist.png

bryan

unread,
Nov 23, 2011, 3:12:37 PM11/23/11
to Nils Kilden-Pedersen, scala-i...@googlegroups.com
> content assist drop-down window, the parameter names alongside the types.
> In Java, both are shown, in Scala only the types. And then below the
[ 12 more citation lines. Click/Enter to show. ]

> drop-down, the Javadocs are shown for Java, which would also be a nice
> addition to Scala, but less important for workflow.
>
> I've appended two screenshots to illustrate.
>
> Java shows parameter names:
>
> [image: java-content-assist.png]
>
> while Scala does not:
> [image: scala-content-assist.png]
>
> I hope that clarifies.
>
> Thanks again!

Is that stuff dependent upon the presentation compiler?

In the REPL it does not show that information either.

Regards,

Bryan Hunt

Alex Black

unread,
Nov 23, 2011, 5:44:51 PM11/23/11
to Scala IDE User
+1 :)

iulian dragos

unread,
Nov 24, 2011, 5:27:05 AM11/24/11
to scala-i...@googlegroups.com
On Wed, Nov 23, 2011 at 8:07 PM, Nils Kilden-Pedersen <nil...@gmail.com> wrote:
On Wed, Nov 23, 2011 at 11:28 AM, iulian dragos <jagu...@gmail.com> wrote:
I created a new ticket in the milestone enhancements, which aims to be
a pool of ideas for people who want to contribute to the IDE:
https://www.assembla.com/spaces/scala-ide/tickets/1000772

If I understand the ticket description correctly, it's for auto-completing the code, correct? While that's helpful for some people, that wasn't what my poorly worded question was about. Rather, I'm asking to see, on the content assist drop-down window, the parameter names alongside the types. In Java, both are shown, in Scala only the types. And then below the drop-down, the Javadocs are shown for Java, which would also be a nice addition to Scala, but less important for workflow.

Oh, I see. Sorry for the confusion (I still like my ticket though).

This is much easier to fix. I'm not sure if there's a ticket already, but I'll put it in.

iulian
 

I've appended two screenshots to illustrate.

Java shows parameter names:

java-content-assist.png

while Scala does not:
scala-content-assist.png

I hope that clarifies.

Thanks again!
java-content-assist.png
scala-content-assist.png
Reply all
Reply to author
Forward
0 new messages