microsoft / build-server-for-gradle

An implementation of the Build Server Protocol for Gradle
MIT License
45 stars 7 forks source link

Support buildTarget/run #145

Open Arthurm1 opened 1 month ago

Arthurm1 commented 1 month ago

Allows running of main methods using buildTarget/run BSP request

Supports scala-main-class RunParamsDataKind as there is no jvm specific data type.

Caveats...

  1. StdIn - not connected since run/readStdin not supported - need to upgrade BSP to 2.2
  2. StdOut - sent as log message since run/printStdout not supported - need to upgrade BSP to 2.2
  3. StdErr - sent as log message since run/printStderr not supported - need to upgrade BSP to 2.2
  4. Env vars are not passed - need to upgrade BSP to 2.2
jdneo commented 1 month ago

Looks like a lot of features are missing before upgrading to 2.2

Is the code change big for upgrading the BSP to 2.2? If not, maybe we can upgrade first.

Arthurm1 commented 1 month ago

Is the code change big for upgrading the BSP to 2.2? If not, maybe we can upgrade first.

I don't think there's much difference. I'll submit a PR