Skip to content

scala 2.12.4: ParSeq broken in REPL? #10620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
borice opened this issue Nov 21, 2017 · 2 comments
Closed

scala 2.12.4: ParSeq broken in REPL? #10620

borice opened this issue Nov 21, 2017 · 2 comments

Comments

@borice
Copy link

borice commented Nov 21, 2017

In REPL:

Welcome to Scala 2.12.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_151).
Type in expressions for evaluation. Or try :help.

scala> List("Smith","Jones","Frankenstein","Bach","Jackson","Rodin").par.map(_.toUpperCase)
... waits forever - no result ...

Same machine, now using Scala 2.11.7:

Welcome to Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_151).
Type in expressions to have them evaluated.
Type :help for more information.

scala> List("Smith","Jones","Frankenstein","Bach","Jackson","Rodin").par.map(_.toUpperCase)
res0: scala.collection.parallel.immutable.ParSeq[String] = ParVector(SMITH, JONES, FRANKENSTEIN, BACH, JACKSON, RODIN)

What's going on?

@borice
Copy link
Author

borice commented Nov 21, 2017

Apparently this is only broken in the REPL.
A small compiled test app works fine:

object Main {

  def main(args: Array[String]): Unit = {
    List("Smith","Jones","Frankenstein","Bach","Jackson","Rodin").par.map(_.toUpperCase).foreach(println)
  }

}

@borice borice changed the title scala 2.12.4: ParSeq broken? scala 2.12.4: ParSeq broken in REPL? Nov 21, 2017
@SethTisue
Copy link
Member

duplicate of #9076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants