eugene yokota
eugene yokota
> A workaround is to define a subProject which only publishes the Maven POM, and a root project that publishes Ivy metadata: This sounds like a pretty good solution to...
Thanks for the report! Likely relevant parts of the code is - https://github.com/sbt/sbt/blob/1.10.x/server-test/src/test/scala/testpkg/BuildServerTest.scala - https://github.com/sbt/sbt/blob/978dd5779dc9f17d19cd1d07229215a570739dc3/main/src/main/scala/sbt/internal/server/BuildServerProtocol.scala#L176-L186 Specifically, `allOrThrow(statusCodes)` will throw, and bypass `state.respondEvent(...)`. In hindsight returning success at the JSON-RPC layer...
1. `Keys.bspBuildTargetCompileItem.result` is sbt-equivalent to wrapping in `Try(...)`. See https://www.scala-sbt.org/1.x/docs/Tasks.html#Handling+Failure for details. 2. `.all(filter)` broadcasts that to the BSP-requested targets. See https://www.scala-sbt.org/1.x/docs/Tasks.html#Getting+values+from+multiple+scopes 3. `statusCodes`, which is `.all(filter).value` should then return...
https://github.com/sbt/sbt/blob/978dd5779dc9f17d19cd1d07229215a570739dc3/main/src/main/scala/sbt/internal/server/BuildServerProtocol.scala#L788-L798 I see. Earlier I missed the fact that `bspBuildTargetCompileItem` / `bspCompileTask` itself is calling regular `compile` task with `.result`. So I guess what could be happening is that when...
Yea, I guess we don't really know since incremental test hasn't been put to test much. It might be good to look into Analysis caching like https://github.com/sbt/sbt/blob/develop/main/src/main/scala/sbt/internal/server/Definition.scala is doing, potentially...