Skip to content
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

; reload; compile makes sbt 0.12.0/0.12.3 exit if compilation fails #732

Closed
Blaisorblade opened this issue Apr 17, 2013 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@Blaisorblade
Copy link
Contributor

When compile fails and is part of the composite command ; reload; compile, SBT exits with error code 1, while it should present me a new prompt; in comparison, ; compile does not make SBT exit.

To reproduce:

  • introduce a compile error in an SBT-built software. A build.sbt containing just scalaVersion := "2.10.0" is enough.
  • if you invoke compile, sbt will report a compile error and bring back to the SBT prompt.
  • if you invoke ; reload; compile, sbt will report the same compile error and exit SBT, whether build.sbt changed or not. It doesn't matter whether you run compile before.

The error seems robust with all variations of the instructions I could try. In particular, I can take a software which compiles, change build.sbt so that it stops compiling (by changing Scala compiler version, in my case), and type ; reload; compile: I'll get the compilation error and SBT will exit automatically.

@ghost ghost assigned harrah Apr 19, 2013
@harrah harrah closed this as completed in 6a70b9f Apr 30, 2013
@harrah
Copy link
Member

harrah commented Apr 30, 2013

Thanks for the report. The first command did have to be reload, but it could be any failing command afterwards. This should be fixed for 0.13.0.

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

No branches or pull requests

2 participants