scalacenter/bloop

Make infinite compilation cancellable

rochala opened this issue · 0 comments

Infinite compilations are not cancelled at all. To my understanding, the cancellation happens on the next file and doesn't interrupt current source compilation.

example code with inifite compilation:
Warning: it eats a lot of CPU and RAM so make sure to kill it afterwards.

//> using scala "3.2.2"
//> using lib "co.fs2::fs2-io:3.6.1"

import cats.effect.*
import fs2.*

object Main extends IOApp.Simple:
  def run: IO[Unit] = Stream.duration