I have just started programming in Scala, and I noticed that hitting TAB-completion in the Scala REPL doesn't show all the available methods.
E.g. I want to evaluate this expression -
"Hello".intersect("World")
So, I type
"Hello".inter
and press TAB and expect 'intersect' to be shown as a valid option, but it is not shown.
Why is this so? I am sure that it is not a bug. I don't have any other examples yet.
Intersect
is not a String
method but instead implicitly inferred from ArrayOps
, and the REPL's auto-complete doesn't cover implicits yet. So it's not exactly a bug, just a (desperately) missing feature.
There's no technical barrier for this. It's just that no one had time to implement it yet.
Sources: Scala REPL fails to autocomplete methods that comes from implicit conversion
https://groups.google.com/forum/#!topic/scala-language/B34-TqH8pGU
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With