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

REPL: triple-quotes don't work in power mode #9450

Closed
scabug opened this Issue Aug 26, 2015 · 8 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug commented Aug 26, 2015

worked in 2.9.3, has been broken since at least 2.10.5, remains broken in 2.11.7 and 2.12.0-M2:

Welcome to Scala version 2.10.5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_65).

scala> :power
** Power User mode enabled - BEEP WHIR GYVE **
** :phase has been set to 'typer'.          **
** scala.tools.nsc._ has been imported      **
** global._, definitions._ also imported    **
** Try  :help, :vals, power.<tab>           **

scala> """3"""
<console>:5: error: ';' expected but integer literal found.
  def $line  = """"""3"""""";
                     ^

it's especially annoying that it doesn't work with quasiquotes, either, which is exactly the thing you're likeliest to want triple quote for in power mode

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Aug 26, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9450?orig=1
Reporter: @SethTisue
Affected Versions: 2.10.5, 2.11.7, 2.12.0-M2
See #9016

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Aug 26, 2015

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Aug 27, 2015

@retronym said:
And: https://groups.google.com/forum/#!topic/scala-user/f_XMki0j9Kg, which points out the likely problem and points the the more general issue #9016.

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Aug 27, 2015

@scabug scabug closed this Aug 27, 2015

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Nov 24, 2015

David Perez said:
Outside of power mode, triple quotes cannot be used. I'm using Scala 2.11.7.

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Nov 24, 2015

@som-snytt said:
2.11.6 -- on Windows!

scala> """hi
     | there"""
res10: String =
hi
there
@scabug

This comment has been minimized.

Copy link
Author

scabug commented Nov 24, 2015

@SethTisue said:
David: Please open a separate ticket on that, if you are able to narrow down the conditions under which it occurs (neither A.P. nor I are able to reproduce that.)

This ticket is about whether triple quotes work in power mode specifically. (They will in Scala 2.11.8, thanks to Jason's fix.)

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Nov 26, 2015

David Perez said (edited on Nov 27, 2015 7:19:54 AM UTC):
When launching Scala REPL from SBT, power mode was activated automatically. So I got confused.
Sorry for the noise.

@scabug scabug added this to the 2.11.8 milestone Apr 7, 2017

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