Skip to content

REPL tab completion shows methods in unsorted order #11488

Closed
@alvinj

Description

@alvinj

Compiler version

3.0.0-RC1

Minimized code

Start the REPL, then type "a.", followed by a [Tab], then type y when prompted:

scala> "a".[tab]

Output

The output looks like this:

scala> "a".
toCharArray               stripSuffix               drop                      :+                                                                 
takeWhile                 seq                       coll                      combinations              stringPrefix                               
unapply                   tapEach                   dropRight                 compose                   strip                                      
toByte                    ##                        companion                 sizeIs                    split                                      
andThen                   intern                    notifyAll                 PermutationsItr           runWith                                    
patch                     getChars                  nonEmpty                  isInstanceOf              lengthCompare                              
iterator                  tail                      lastIndexOfSlice          lift                      toBoolean                                  
trim                      forall                    regionMatches             segmentLength             find                                       
prependedAll              maxByOption               isBlank                   stripLeading              
applyPreferredMaxLength                    toDouble                  sameElements              scanLeft                  
toIterator                reduceLeftOption                           sortBy                    maxOption                 
replaceAll                repr                      indexOf                                    mkString                  union                     
foldLeft                  prepended                 ==                                         equalsIgnoreCase          orElse                    
hasDefiniteSize           wait                      toLong                                     toFloatOption             findLast                  

I don’t show all the lines, but that’s how it starts.

Expectation

The Scala 2 REPL shows the same output in sorted order, which is much more helpful.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions