Limit the size of `.bsp/mill-bsp.stderr`
Currently, this file is growing unlimited, which can become an issue if disc space gets low.
I think it should be implemented like some kind of log rotation with specifying somewhere (or just harcoding) values like logMaxSize, logFileLimit. There are a lot of examples of such problem (the first one which I googled: link) and looks like we should implement something like this.
Yeah, log-rotation might be nice. This topic seems simple and very common, yet it provides lots of ways to shot yourself in the foot. Especially, as we target different platforms including Windows, which provides lots of stumbling blocks like file locking. Using some small proven library is probably a good idea.
rotating-fos looks suitable here, it provides just some extensible OutputStream. I will try to implement it in near time.