You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brick:tmp.7n30pDvX7u blast$ sbt
[info] Loading project definition from /private/var/folders/mm/g56v4k7n6dv5qfg0gf4hllx8kjwmvc/T/tmp.7n30pDvX7u/project
[info] Updating ProjectRef(uri("file:/private/var/folders/mm/g56v4k7n6dv5qfg0gf4hllx8kjwmvc/T/tmp.7n30pDvX7u/project/"), "tmp-7n30pdvx7u-build")...
[info] Done updating.
[info] Loading settings for project tmp-7n30pdvx7u from build.sbt ...
[info] Set current project to tmp-7n30pdvx7u (in build file:/private/var/folders/mm/g56v4k7n6dv5qfg0gf4hllx8kjwmvc/T/tmp.7n30pDvX7u/)
[info] sbt server started at local:///Users/blast/.sbt/1.0/server/6b0fd817c0a02f522edb/sock
sbt:tmp-7n30pdvx7u>
Confirm that test in the primary sbt shell results in an error:
sbt:tmp-7n30pdvx7u> test
[info] Updating ...
[info] Done updating.
[info] Compiling 1 Scala source to /private/var/folders/mm/g56v4k7n6dv5qfg0gf4hllx8kjwmvc/T/tmp.7n30pDvX7u/target/scala-2.12/test-classes ...
[error] /private/var/folders/mm/g56v4k7n6dv5qfg0gf4hllx8kjwmvc/T/tmp.7n30pDvX7u/src/test/scala/Test.scala:1:1: expected class or object definition
[error] bogus
[error] ^
[error] one error found
[error] (Test / compileIncremental) Compilation failed
[error] Total time: 1 s, completed Jan 7, 2019 12:42:11 AM
sbt:tmp-7n30pdvx7u>
sbt-client to run test, confirming the expected output:
brick:tmp.7n30pDvX7u blast$ sbt-client test
[info] Processing
[info] Compiling 1 Scala source to /private/var/folders/mm/g56v4k7n6dv5qfg0gf4hllx8kjwmvc/T/tmp.7n30pDvX7u/target/scala-2.12/test-classes ...
[error] /private/var/folders/mm/g56v4k7n6dv5qfg0gf4hllx8kjwmvc/T/tmp.7n30pDvX7u/src/test/scala/Test.scala:1:1: expected class or object definition
[error] bogus
[error] ^
[error] one error found
[error] (Test / compileIncremental) Compilation failed
[error] Error from sbt
Now, use the same sbt client to run the foo alias, notice that the output is lost to the aether:
Yes, it looks like sbt is returning the responses in a strange order. It returns the "result" response before the log messages.
While that's totally fine in terms of LSP, sbt-client doesn't like it. sbt-client needs some way to decide that it's finished communicating with sbt and it's time to exit the process. It uses the "result" response for this, with the implicit assumption that this is the final message it will receive.
I'm not really sure what to do about this. sbt-client can't hang around forever on the off chance sbt might want to send it some more messages.
Might be worth opening an sbt issue? This behaviour does seem strange to me.
test
in the primary sbt shell results in an error:test
, confirming the expected output:foo
alias, notice that the output is lost to the aether:The text was updated successfully, but these errors were encountered: