[SI-4438] Tab completion in the REPL doesn't work in certain cases Created: 03/Apr/11  Updated: 20/Nov/15  Resolved: 20/Nov/15

Status: CLOSED
Project: Scala Programming Language
Component/s: Repl / Interpreter
Affects Version/s: None
Fix Version/s: Scala 2.11.8

Type: Improvement Priority: Major
Reporter: Sciss Assignee: Jason Zaugg
Resolution: Fixed Votes: 1
Labels: None
Environment:

REPL tab completion


Issue Links:
Duplicate
is duplicated by SI-6659 Spurious unclosed string literal warn... CLOSED
TracCC:
Paul Phillips, Simon Ochsenreither

 Description   

=== What steps will reproduce the problem (please be specific and use wikiformatting)? ===

For example:

   scala> List( 1, 2, 3 ).redu<tab>

=== What is the expected behavior? ===

I should see the following options:

   reduceLeft          reduceLeftOption    reduceRight         reduceRightOption

=== What do you see instead? ===

   <console>:1: error: illegal start of definition

=== What versions of the following are you using? ===

  • Scala: 2.8.1 and 2.9.0.RC1
  • Java: 1.6.0_20
  • Operating system: 10.6.4


 Comments   
Comment by Simon Ochsenreither [ 09/May/11 ]

On 2.10.0.r24908-b20110508020204 too. Actually this one exists for a long time already.

Array(1,2,3) has the same problem.

Comment by Li Haoyi [ 19/Apr/15 ]

This is fixed in the Ammonite REPL

@ List( 1, 2, 3 ).reduce<TAB>
reduce              reduceLeft          reduceLeftOption    reduceOption        reduceRight
reduceRightOption
@ List( 1, 2, 3 ).reduce

Comment by A. P. Marki [ 26/Jul/15 ]

github.com/scala/scala/pull/4659 part of https://github.com/scala/scala/pull/4725

Generated at Wed Aug 15 14:52:25 CEST 2018 using JIRA 7.9.1#79001-sha1:60970b42586a2ec2760ed6cfe825b26961e62b9e.