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
Power mode seems to have gotten broken #4719
Comments
@blast-hardcheese Thanks for the report. |
@eed3si9n No worries! I'll give the bisect a shot ASAP. It's clearly not bothering anyone else, so I guess no rush 😄 |
Any updates on this one? Would be really nice to be able to use |
I tried to bisect SBT to figure out what broke, but I discovered that the problem was actually in one of the dependencies, and I didn't try too hard to get the rest of the SBT build environment working, as I figured I wouldn't need :power mode this year. I only use it for REPLesent, which is what I use to do slides from inside the Scala REPL. I can't give any more insight than that, but am interested in this getting fixed as well, at some point this will become a serious problem for me. |
Thanks for the reply @blast-hardcheese. I am a little bit surprised that more people aren't smitten by this. Tools like |
Confirm, it's still broken on on 2.12
|
@blast-hardcheese is there another way to set |
@ivan-awake i created a file
(adapted from this SO comment by @SethTisue - thanks Seth!) |
Still broken for me ❯ sbt console
[info] Loading global plugins from /Users/maxcoplan/.sbt/1.0/plugins
[info] Loading settings for project example-build from plugins.sbt,buildSettings.sbt ...
[info] Loading project definition from /Users/maxcoplan/workspace/scala_coursera/example/project
[info] Loading settings for project example from assignment.sbt,build.sbt ...
[info] Set current project to progfun1-example (in build file:/Users/maxcoplan/workspace/scala_coursera/example/)
[info] Starting scala interpreter...
Welcome to Scala 2.13.0 (OpenJDK 64-Bit Server VM, Java 11.0.10).
Type in expressions for evaluation. Or try :help.
scala> :power
^
error: identifier expected but $XMLSTART$< found.
Power mode enabled. :phase is at typer.
import scala.tools.nsc._, intp.global._, definitions._
Try :help or completions for vals._ and power._
scala> 1+1
}}
^
<synthetic>:11: error: input ended while parsing XML
(To diagnose errors in synthetic code, try adding `// show` to the end of your input.)
scala> ;
scala> 1+1
}}
^
<synthetic>:11: error: input ended while parsing XML
(To diagnose errors in synthetic code, try adding `// show` to the end of your input.)
scala>
|
Is there an update on this? I have the same errors with the latest sbt version. Thanks [info] welcome to sbt 1.6.2 (Oracle Corporation Java 1.8.0_202)
...
[info] Starting scala interpreter...
Welcome to Scala 2.13.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_202).
Type in expressions for evaluation. Or try :help.
scala> :power
^
error: identifier expected but $XMLSTART$< found.
Power mode enabled. :phase is at typer.
import scala.tools.nsc._, intp.global._, definitions._
Try :help or completions for vals._ and power._
scala> val a = 1
}}
^
<synthetic>:11: error: input ended while parsing XML
(To diagnose errors in synthetic code, try adding `// show` to the end of your input.)
|
steps
Launch sbt
Run
console
Type
:power
problem
expectation
notes
I'd like to bisect between 1.1.1 and 1.1.2, though I can't do it at this point. I just wanted to raise awareness, as this breaks https://github.com/marconilanna/REPLesent at the sbt console
sbt version: 1.1.2+
The text was updated successfully, but these errors were encountered: