Scala Programming Language
  1. Scala Programming Language
  2. SI-8027

Hitting tab button two times in REPL is not recognized anymore

    Details

      Description

      The behavior how it should be:

      Welcome to Scala version 2.10.1 (OpenJDK 64-Bit Server VM, Java 1.7.0_45).
      Type in expressions to have them evaluated.
      Type :help for more information.
      
      scala> List(1)
      res0: List[Int] = List(1)
      
      scala> res0.map // hit tab button the first time
      map           mapConserve   
      
      scala> res0.map // hit tab button the second time
                                                                                          
      def map[B, That](f: A => B)(implicit bf: generic.CanBuildFrom[Repr,B,That]): That   
      
      scala> res0.map
      

      How it is:

      Welcome to Scala version 2.11.0-20131103-143755-4a6882e772 (OpenJDK 64-Bit Server VM, Java 1.7.0_45).
      Type in expressions to have them evaluated.
      Type :help for more information.
      
      scala> List(1)
      res0: List[Int] = List(1)
      
      scala> res0.map // hit tab button the first time
      map           mapConserve   
      
      scala> res0.map // hit tab button the second time
      map           mapConserve   
      
      scala> res0.map
      

      The REPL doesn't recognize anymore that the tab button is pressed two times.

        Activity

        Hide
        A. P. Marki added a comment -

        Would be nice if it worked without the res0, too. (I was just looking at the completion code.)

        Show
        A. P. Marki added a comment - Would be nice if it worked without the res0, too. (I was just looking at the completion code.)
        Hide
        Simon Schäfer added a comment -

        I agree.

        Show
        Simon Schäfer added a comment - I agree.
        Hide
        A. P. Marki added a comment -

        Was not an interesting jline issue.

        https://github.com/scala/scala/pull/3218

        Show
        A. P. Marki added a comment - Was not an interesting jline issue. https://github.com/scala/scala/pull/3218

          People

          • Assignee:
            A. P. Marki
            Reporter:
            Simon Schäfer
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development